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 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 ? --
Best Regards
*************************************************************************
David Zhu
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 E-mail: david_zhu@xxxxxxxxx
**************************************************************************
|
_______________________________________________ libvirt-users mailing list libvirt-users@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvirt-users