Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 282601 - qemu-0.10.5 needs kvm udev rule to set permissions
Summary: qemu-0.10.5 needs kvm udev rule to set permissions
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo QEMU Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-24 19:19 UTC by David Williams
Modified: 2012-12-04 22:40 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Williams 2009-08-24 19:19:19 UTC
qemu doesn't include a udev rule to set the permissions on /dev/kvm. Without this you can't use qemu -enable-kvm unless you are root or you set the permissions manually.

Reproducible: Always




I put the udev rule file 65-kvm.rules from the kvm build into /etc/udev/rules.d/ and it works fine. Just for convenience the file contains:

KERNEL=="kvm", NAME="%k", GROUP="kvm", MODE="0660"
Comment 1 kavol 2009-11-30 11:17:25 UTC
(In reply to comment #0)
> qemu doesn't include a udev rule to set the permissions on /dev/kvm. Without
> this you can't use qemu -enable-kvm unless you are root or you set the
> permissions manually.

I've just run into this too ... :-(

> I put the udev rule file 65-kvm.rules from the kvm build into
> /etc/udev/rules.d/ and it works fine. Just for convenience the file contains:
> 
> KERNEL=="kvm", NAME="%k", GROUP="kvm", MODE="0660"

but the current qemu (0.11.0) nor any package that got installed along on my system does not create the "kvm" group, so the above rule is not enough

I've chosen to go with the "qemu" group, which got created, and adding the rule
KERNEL=="kvm", NAME="%k", GROUP="qemu", MODE="0660"
into 48-qemu.rules plus the user being in the qemu group works just fine for me
Comment 2 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2010-06-10 20:06:30 UTC
Do you still have this issue with the latest qemu-kvm version in the tree?
Comment 3 Jonathan-Christofer Demay 2010-06-10 21:58:30 UTC
I don't know about the latest qemu-kvm in the tree, but the lastest qemu (which also provides kvm) still lacks this file.
Comment 4 David Williams 2010-06-11 07:40:32 UTC
qemu-kvm-0.12.4 contains a udev rule and works fine for me.
Comment 5 kavol 2011-02-12 15:57:15 UTC
(In reply to comment #2)
> Do you still have this issue with the latest qemu-kvm version in the tree?

um, should we read that as "'USE=kvm emerge qemu' is dead, long live 'emerge qemu-kvm'"?

I am a bit confused about relation of these two ...
Comment 6 Doug Goldstein (RETIRED) gentoo-dev 2012-12-04 22:40:44 UTC
(In reply to comment #5)
> (In reply to comment #2)
> > Do you still have this issue with the latest qemu-kvm version in the tree?
> 
> um, should we read that as "'USE=kvm emerge qemu' is dead, long live 'emerge
> qemu-kvm'"?
> 
> I am a bit confused about relation of these two ...

Everything is now all back in app-emulation/qemu so rejoice that the confusion is fixed.

udev rules are all in place and everything now works.