Hi there.
I'm having a problem with KVM virtual machines. Since one of the last updates I cannot power the virtual machines off.
When I shut the machine down from the virtualised OS, the machine hangs in the "shutting down" state and it cannot be powered off.
here's what I see on /var/log/libvirt/libvirtd.log
2014-06-10 20:31:06.612+0000: 2248: error : virQEMUCapsInitQMP:2748 : Failed to kill process 22858: Permission denied
2014-06-13 11:22:18.579+0000: 2240: error : qemuMonitorIO:656 : internal error: End of file from monitor
2014-06-16 00:36:29.385+0000: 2255: error : virProcessKillPainfully:308 : Failed to terminate process 2844 with SIGTERM: Permission denied
If I try to destroy the domain with virsh I get:
root@fgleiser-laptop:~# id
uid=0(root) gid=0(root) groups=0(root)
root@fgleiser-laptop:~# virsh destroy windows
error: Failed to destroy domain windows
error: Failed to terminate process 2844 with SIGTERM: Permission denied
Here's what I see from ps:
libvirt+ 2714 0.0 0.0 320740 464 ? S Jun10 0:00 /usr/bin/qemu-system-i386 -S -no-user-config -nodefaults -nographic -M none -qmp unix:/var/lib/libvirt/qemu/capabilities.monitor.sock,server,nowait -pidfile /var/lib/libvirt/qemu/capabilities.pidfile -daemonize
libvirt+ 2720 0.0 0.0 259364 460 ? S Jun10 0:00 qemu-system-x86_64 -enable-kvm -S -no-user-config -nodefaults -nographic -M none -qmp unix:/var/lib/libvirt/qemu/capabilities.monitor.sock,server,nowait -pidfile /var/lib/libvirt/qemu/capabilities.pidfile -daemonize
libvirt+ 2723 0.0 0.0 322856 460 ? S Jun10 0:00 /usr/bin/qemu-system-x86_64 -S -no-user-config -nodefaults -nographic -M none -qmp unix:/var/lib/libvirt/qemu/capabilities.monitor.sock,server,nowait -pidfile /var/lib/libvirt/qemu/capabilities.pidfile -daemonize
libvirt+ 2844 1.3 25.0 1574424 1012092 ? Sl 17:55 3:08 qemu-system-x86_64 -enable-kvm -name windows -S -machine pc-0.12,accel=kvm,usb=off -m 1024 -realtime mlock=off -smp 1,sockets=1,cores=1,threads=1 -uuid 068283ca-4d0f-6017-dcbb-5fefac976ee1 -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/windows.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=localtime -no-shutdown -boot strict=on -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive file=/var/lib/libvirt/images/windows.img,if=none,id=drive-ide0-0-0,format=raw -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1 -drive if=none,id=drive-ide0-1-0,readonly=on,format=raw -device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev tap,fd=24,id=hostnet0 -device rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:43:2a :ef,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -device usb-tablet,id=input0 -vnc 127.0.0.1:0 -device cirrus-vga,id=video0,bus=pci.0,addr=0x2 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4
root 6715 0.0 0.0 11748 916 pts/10 S+ 21:41 0:00 grep --color=auto qemu
libvirt+ 22858 0.0 0.0 259364 460 ? S Jun10 0:00 qemu-system-x86_64 -enable-kvm -S -no-user-config -nodefaults -nographic -M none -qmp unix:/var/lib/libvirt/qemu/capabilities.monitor.sock,server,nowait -pidfile /var/lib/libvirt/qemu/capabilities.pidfile -daemonize
The only way I can power it off is doing a "sudo kill" the PID
There is a permission problem somewhere but I cannot find it, any ideas where I should look?
thanks in advance for your help
I'm having a problem with KVM virtual machines. Since one of the last updates I cannot power the virtual machines off.
When I shut the machine down from the virtualised OS, the machine hangs in the "shutting down" state and it cannot be powered off.
here's what I see on /var/log/libvirt/libvirtd.log
2014-06-10 20:31:06.612+0000: 2248: error : virQEMUCapsInitQMP:2748 : Failed to kill process 22858: Permission denied
2014-06-13 11:22:18.579+0000: 2240: error : qemuMonitorIO:656 : internal error: End of file from monitor
2014-06-16 00:36:29.385+0000: 2255: error : virProcessKillPainfully:308 : Failed to terminate process 2844 with SIGTERM: Permission denied
If I try to destroy the domain with virsh I get:
root@fgleiser-laptop:~# id
uid=0(root) gid=0(root) groups=0(root)
root@fgleiser-laptop:~# virsh destroy windows
error: Failed to destroy domain windows
error: Failed to terminate process 2844 with SIGTERM: Permission denied
Here's what I see from ps:
libvirt+ 2714 0.0 0.0 320740 464 ? S Jun10 0:00 /usr/bin/qemu-system-i386 -S -no-user-config -nodefaults -nographic -M none -qmp unix:/var/lib/libvirt/qemu/capabilities.monitor.sock,server,nowait -pidfile /var/lib/libvirt/qemu/capabilities.pidfile -daemonize
libvirt+ 2720 0.0 0.0 259364 460 ? S Jun10 0:00 qemu-system-x86_64 -enable-kvm -S -no-user-config -nodefaults -nographic -M none -qmp unix:/var/lib/libvirt/qemu/capabilities.monitor.sock,server,nowait -pidfile /var/lib/libvirt/qemu/capabilities.pidfile -daemonize
libvirt+ 2723 0.0 0.0 322856 460 ? S Jun10 0:00 /usr/bin/qemu-system-x86_64 -S -no-user-config -nodefaults -nographic -M none -qmp unix:/var/lib/libvirt/qemu/capabilities.monitor.sock,server,nowait -pidfile /var/lib/libvirt/qemu/capabilities.pidfile -daemonize
libvirt+ 2844 1.3 25.0 1574424 1012092 ? Sl 17:55 3:08 qemu-system-x86_64 -enable-kvm -name windows -S -machine pc-0.12,accel=kvm,usb=off -m 1024 -realtime mlock=off -smp 1,sockets=1,cores=1,threads=1 -uuid 068283ca-4d0f-6017-dcbb-5fefac976ee1 -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/windows.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=localtime -no-shutdown -boot strict=on -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive file=/var/lib/libvirt/images/windows.img,if=none,id=drive-ide0-0-0,format=raw -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1 -drive if=none,id=drive-ide0-1-0,readonly=on,format=raw -device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev tap,fd=24,id=hostnet0 -device rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:43:2a :ef,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -device usb-tablet,id=input0 -vnc 127.0.0.1:0 -device cirrus-vga,id=video0,bus=pci.0,addr=0x2 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4
root 6715 0.0 0.0 11748 916 pts/10 S+ 21:41 0:00 grep --color=auto qemu
libvirt+ 22858 0.0 0.0 259364 460 ? S Jun10 0:00 qemu-system-x86_64 -enable-kvm -S -no-user-config -nodefaults -nographic -M none -qmp unix:/var/lib/libvirt/qemu/capabilities.monitor.sock,server,nowait -pidfile /var/lib/libvirt/qemu/capabilities.pidfile -daemonize
The only way I can power it off is doing a "sudo kill" the PID
There is a permission problem somewhere but I cannot find it, any ideas where I should look?
thanks in advance for your help