Libvirt Cannot Stop Reboot Force Shutdown or Destroy Guest

simusid picture simusid · May 26, 2013 · Viewed 11.8k times · Source

The subject pretty much says it all. I am running libvirt (KVM?) on Ubuntu and I have two guests (both ubuntu server) that I cannot access or control.

That is, if I view them with virsh or virt-manager, their status is "running". I cannot connect to the graphical console. If I send the keys ctrl-alt-del nothing happens. If I try to "shut down" I get the error "error shutting down domain. Timed out during operation. cannot acquire state change lock".

I really cannot just delete these guests and start over. How can I recover them?

Answer

Avik Sil picture Avik Sil · Feb 26, 2015

There could be qemu-kvm process(es) running for the guests. kill them manually (kill -9) and then start it from virt-manager/virsh.