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_...@usish.com <mailto:cotton_...@usish.com> _ * > > *************************************************************************** > * > > > _______________________________________________ > libvirt-users mailing list > libvirt-users@redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-users
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users