<div dir="ltr"><div><div>Hi,<br><br></div>I'm using libvirt/kvm with openstack. When vm has CPU stall, the instance can't be destroyed. I have asked the question on openstack user mailing list and received no answers in weeks.<br>
<br></div>Here is one example:<br><br> # virsh destroy instance-00000085<br> error: Failed to destroy domain instance-00000085<br> error: Failed to terminate process 61222 with SIGKILL: Device or resource busy<br>
<br> # lsof -p 61222<br> # ps -f -p 61222<br> UID PID PPID C STIME TTY TIME CMD<br> 107 61222 1 68 Jan24 ? 9-23:06:19 [qemu-system-x86] <defunct><br><div><br></div><div>
The log in /var/log/libvirt/libvirtd.log:<br> 2014-02-08 03:21:31.597+0000: 2177: error : virProcessKillPainfully:315 : Failed to terminate process 61222 with SIGKILL: Device or resource busy<br><br></div><div>Restart libvirt-bin service did not solve the problem.<br>
<br>virsh shutdown/reboot just hang. Maybe that is because the CPU in vm is stalled.<br></div><div><br></div><div>I wonder if there is some way to destroy (or rebuild) dead instance without rebooting the hypervisor. Any suggestions is welcome.<br>
<br>The software I am running:<br><div>hypervisor os: ubuntu 12.04.3<br>hypervisor kernel: 3.8.0-35-generic<br></div><div>vm os: ubuntu 12.04<br></div><div>vm kernel: 3.2.0-56-virtual<br>
</div>openstack: havana<br>libvirt: 1.1.1-0ubuntu8~cloud2<br><br></div><div>Thanks,<br>Yuanle<br></div></div>