[libvirt] "virsh destroy" deletes extra VMs
Mark McLoughlin
markmc at redhat.com
Wed Sep 30 16:42:01 UTC 2009
On Wed, 2009-09-30 at 09:34 -0700, Shi Jin wrote:
> Hi there,
>
> I am running Ubuntu 9.04 X64 server with KVM/libvirt. I recently found
> that the "virsh destroy" command actually delete VMs it should not
> delete.
> For example, please see the following screen copy:
> root at node1:/srv/cloud/ImgRep/WinXP# virsh list
> Connecting to uri: qemu:///system
> Id Name State
> ----------------------------------
> 27 one-80 running
> 28 one-81 running
> 29 one-83 running
> 30 one-82 running
> 31 one-79 running
>
> root at node1:/srv/cloud/ImgRep/WinXP# virsh destroy 29
> Connecting to uri: qemu:///system
> Domain 29 destroyed
>
> root at node1:/srv/cloud/ImgRep/WinXP# virsh list
> Connecting to uri: qemu:///system
> Id Name State
> ----------------------------------
> 27 one-80 running
> 28 one-81 running
> 31 one-79 running
>
> Please note that VM 30 was deleted when we tried to delete VM 29.
...
> root at node1:/srv/cloud/ImgRep/WinXP# virsh --version
> Connecting to uri: qemu:///system
> 0.6.1
0.6.1 is quite old. I think the issue is fixed by:
http://libvirt.org/git/?p=libvirt.git;a=commitdiff;h=0a31be6ba
Cheers,
Mark.
More information about the libvir-list
mailing list