You are not logged in.

#1 2013-01-30 15:08:32

dront78
Member
From: Moscow
Registered: 2010-11-24
Posts: 47

kvm failure after upgrade

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

#2 2013-01-30 15:14:28

dront78
Member
From: Moscow
Registered: 2010-11-24
Posts: 47

Re: kvm failure after upgrade

Offline

#3 2013-01-30 15:21:55

insonifi
Member
Registered: 2012-12-02
Posts: 9

Re: kvm failure after upgrade

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

#4 2013-01-30 15:46:28

insonifi
Member
Registered: 2012-12-02
Posts: 9

Re: kvm failure after upgrade

Looks like it has been reported already https://bugs.archlinux.org/task/33636.

Offline

#5 2013-01-30 15:57:36

insonifi
Member
Registered: 2012-12-02
Posts: 9

Re: kvm failure after upgrade

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

#6 2013-01-31 04:36:46

dront78
Member
From: Moscow
Registered: 2010-11-24
Posts: 47

Re: kvm failure after upgrade

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

#7 2013-01-31 20:47:40

darrend
Member
From: Blighty
Registered: 2012-10-16
Posts: 5

Re: kvm failure after upgrade

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

#8 2013-01-31 20:54:51

darrend
Member
From: Blighty
Registered: 2012-10-16
Posts: 5

Re: kvm failure after upgrade

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

Board footer

Powered by FluxBB