Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
accessing /dev/kvm
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
curmudgeon
Veteran
Veteran


Joined: 08 Aug 2003
Posts: 1543

PostPosted: Mon Oct 17, 2016 3:57 am    Post subject: accessing /dev/kvm Reply with quote

Have no idea if I am posting this to the right place, but here goes.

I am administering a machine where I just installed Android Studio for the user. I know absolutely nothing about Android Studio.

The user has told me that using /dev/kdm is recommended. I recompiled the kernel with the kvm stuff enabled, but the permissions are:

Code:

crw------- 1 root root 10, 232 2016-10-17 03:51:03 /dev/kvm


When the user tries to create a new virtual device, he is (of course) getting "permission" denied.

What is the preferred (easiest and least risky) way of allowing an ordinary user access to /dev/kvm?
Back to top
View user's profile Send private message
fturco
l33t
l33t


Joined: 08 Dec 2010
Posts: 628
Location: Italy

PostPosted: Mon Oct 17, 2016 6:58 am    Post subject: Reply with quote

On my system:
Code:
$ ls -l /dev/kvm
crw-rw---- 1 root kvm 10, 232 Oct 16 11:21 /dev/kvm

And my user belong to the kvm group.
Back to top
View user's profile Send private message
curmudgeon
Veteran
Veteran


Joined: 08 Aug 2003
Posts: 1543

PostPosted: Mon Oct 17, 2016 8:55 am    Post subject: Reply with quote

I don't have a kvm group.

Am I supposed to have some other package installed?

Should I change the permissions manually (and create the group myself)?

If I do, will that be remembered across reboots?
Back to top
View user's profile Send private message
fturco
l33t
l33t


Joined: 08 Dec 2010
Posts: 628
Location: Italy

PostPosted: Mon Oct 17, 2016 9:29 am    Post subject: Reply with quote

On my system the kvm group was created by installing app-emulation/qemu. From its ebuild:
Code:
pkg_setup() {
        enewgroup kvm 78
}

It seems android-studio ebuild doesn't do the same thing.

Also, did you load the kvm/kvm-intel (or amd) module?
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5761

PostPosted: Mon Oct 17, 2016 2:37 pm    Post subject: Reply with quote

curmudgeon wrote:
Am I supposed to have some other package installed?

qemu installs udev rules, or you can write an mdev.conf yourself.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum