Re: [libvirt-users] Destroy VM failed.

2012-05-07 Thread Eric Blake
On 05/07/2012 07:48 PM, david_zhu wrote: >> -bash-4.1# virsh version >> Compiled against library: libvir 0.9.8 >> That said, if your guest isn't specifically requesting a shutdown, it >> seems odd that you are encountering a race, so there may be something >> else at play here. Does the log of

Re: [libvirt-users] Destroy VM failed.

2012-05-07 Thread david_zhu
Original Message  Subject: Re: [libvirt-users] Destroy VM failed. From: Eric Blake To: david_zhu Cc: libvirt-users@redhat.com Date: 2012年5月8日 2:05:40 On 05/06/2012 09:12 PM, david_zhu wrote: Hi, When I

Re: [libvirt-users] Destroy VM failed.

2012-05-07 Thread Eric Blake
On 05/06/2012 09:12 PM, 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 >

Re: [libvirt-users] Destroy VM failed.

2012-05-06 Thread Alex Jia
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 alwa

[libvirt-users] Destroy VM failed.

2012-05-06 Thread david_zhu
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 D