Red Hat Bugzilla – Bug 500968
virt-manager traceback on shutdown of qemu-kvm -no-acpi guest
Last modified: 2009-09-21 13:08:17 EDT
Installed a windows XP on kvm, when I try to shutdown virtual machine using toolbar button, not shutting down machine inside windows, I get this:
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/engine.py", line 507, in shutdown_domain
File "/usr/share/virt-manager/virtManager/domain.py", line 566, in shutdown
File "/usr/share/virt-manager/virtManager/domain.py", line 217, in _update_status
info = self.vm.info()
File "/usr/lib64/python2.6/site-packages/libvirt.py", line 523, in info
if ret is None: raise libvirtError ('virDomainGetInfo() failed', dom=self)
libvirtError: operation failed: could not query memory balloon allocation
and virtual machine is powered off immediately.
That sounds like qemu may have crashed handling the "info balloon" monitor command.
What version of qemu-system-x86 is this? Could you attach the logfile for the guest from /var/log/qemu/ ?
Also, it may be worth trying libvirt-0.6.2-10.fc11 from updates-testing:
Created attachment 345330 [details]
qemu log file
also I can not update to libvirt-0.6.2-10.f11 because I can not find related libvirt-python rpm.
Also, could you try getting a libvirtd logfile by setting log_level/log_outputs in /etc/libvirt/libvirtd.conf as described in:
Created attachment 345359 [details]
I've also updated those two libvirt packages, but I get the same result.
Okay, I can reproduce - the key is that this is a guest which doesn't have ACPI enabled.
With -no-acpi, qemu will exit immediately when issued the system_powerdown command.
Then when virt-manager does a virDomainGetInfo(), libvirtd detects an error on the monitor fd and returns an error rather than handling it as a normal guest shutdown.
This bug appears to have been reported against 'rawhide' during the Fedora 11 development cycle.
Changing version to '11'.
More information and reason for this action is here:
Moving to Rawhide version. Reproducible with:
I think 519667 was also covering this, and the issue should be fixed with latest rawhide libvirt versions.
*** This bug has been marked as a duplicate of bug 519667 ***