You are not logged in.
with latest kvm
sudo virsh
start mydomain
process exited while connecting to monitor: Could not access KVM kernel module: Permission denied
failed to initialize KVM: Permission denied
ls -al /dev/kvm
crw-rw----+ 1 root kvm
Offline
here is a http://pastebin.com/UPxCjNUY
Offline
Same story here. Executing manually, seems to start normally:
qemu -enable-kvm
But Libvirtd cannot run a domain.
Last edited by insonifi (2013-01-30 15:22:30)
Offline
Looks like it has been reported already https://bugs.archlinux.org/task/33636.
Offline
Described workaround is working for me. What I did was:
1. Created user qemu and added it to kvm group
useradd -MrG kvm qemu
2. then modified /etc/libvirt/qemu.conf
user = "qemu"
group = "kvm"
3. Restarted libvirtd
systemctl restart libvirtd.service
Now, VM starts as usual!
Offline
I've a lot of auth problems in such case using virsh console does not find any domains
Only root/kvm rights works fine for me
Offline
this doesn't work for me either.. I originally downgraded libvirt to 1.0.1-2 to fix this but I just upgraded to today's version (1.0.2-2) and edited the conf file as insonifi noted, but no dice. The errors I get are different, and what's odd is that it complains that it doesn't have permission to the actual disk image file. All of the files were chowned qemu:kvm and chmod 660, and libvirtd restarted. When I attempt to run a guest, I still get the permissions error and afterwards, the ownership on the disk image has changed to root:root. Every guest I attempt to start has its ownership updated this way.. very odd.
Offline
gah! Always the way.. as soon as you post to a forum or IRC you immediately find the solution to the problem. In my case the file permissions for the disk images were correct, but perms for the directory they were in were wrong (no rw access for group kvm). All works now for me with latest version of libvirtd.
Offline