wrong ownership on /dev/kvm (Maverick)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qemu-kvm (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: qemu-kvm
Installed qemu-kvm, but it was *very* slow (while using virt-manager). Looked in /var/log/
Looked at /dev/kvm an noticed it was own by root.
Changed group ownership to kvm and, in combination with libvirt-qemu being in the kvm-group, this dramatically increased the performance!
ls -al /dev/ | grep kvm
crw-rw---- 1 root kvm 10, 232 2011-01-15 22:06 kvm
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.10
Release: 10.10
Codename: maverick
Okay, the error came back... (can't go unnoticed, it was painfully slow again)
open /dev/kvm: Permission denied
Could not initialize KVM, will disable KVM support
Turns out that the ownership is reset after 'qemu-kvm' is restarted. As a workaround I added 'chgrp kvm /dev/kvm' in the 'pre-start script' section of /etc/init/ qemu-kvm. conf.