[libvirt-users] Destroy VM failed.

Alex Jia ajia at redhat.com
Mon May 7 03:51:34 UTC 2012


On 05/07/2012 11:12 AM, david_zhu wrote:
> Hi,
>
> When I destroy a VM, sometimes virsh will report failed.
> So I tried the following shell script:
>
>
> -bash-4.1# for ((i=0; i<1000; i++)); do virsh start david_mac; virsh
> destroy david_mac; if [ $? != 0 ] ; then echo $i; break; fi; done
It always works well for me based on the following version:
# virsh version
Compiled against library: libvir 0.9.10
Using library: libvir 0.9.10
Using API: QEMU 0.9.10
Running hypervisor: QEMU 0.12.1
>
> Domain david_mac started
>
> Domain david_mac destroyed
>
> ......
>
> Domain david_mac started
>
> error: Failed to destroy domain david_mac
> error: Requested operation is not valid: domain is not running
>
> 35
>
>
> It always fail, and the VM state become "shut off":
>
> -bash-4.1# virsh list --all
> Id Name State
> ----------------------------------
> - david_mac shut off
>
>
> My libvirt/KVM version is:
>
> -bash-4.1# virsh version
> Compiled against library: libvir 0.9.8
> Using library: libvir 0.9.8
> Using API: QEMU 0.9.8
> Running hypervisor: QEMU 0.14.1
>
>
> Is this a libvirt bug, or KVM problem ?
I'm not sure it's a bug of libvirt 0.9.8, maybe, you may upgrade your
libvirt then check it again. thanks.
>
>
> -- 
>
> *Best Regards *
>
> **************************************************************************
> *
>
> *David Zhu * *朱慧 * Firmware Engineer
>
> Enterprise Storage / R&D Dept.
>
> Universal Scientific Industrial (Shanghai) Co., Ltd
>
> 421 Lishizhen Road, Pudong New Area, Shanghai, P.R. China 201203 上海
> 市浦东新区张江高科技园区李时珍路421号 邮编: 201203
>
> Fax: +86-21-58967931 Tel: +86-21-58966996 *ext. 81468 *
>
> http://www.usi.com.tw <http://www.usi.com.tw/> *E-mail:
> _david_zhu at usish.com <mailto:cotton_sun at usish.com> _ *
>
> ***************************************************************************
> *
>
>
> _______________________________________________
> libvirt-users mailing list
> libvirt-users at redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20120507/7ff280e8/attachment.htm>


More information about the libvirt-users mailing list