Hi Eric, Thanks Eric for looking in to this. >>You must ALWAYS be prepared for commands to fail because the guest has changed states on its own. Any guest can turn itself off before your destroy request; this does not mean that destroy is broken. I'm not saying vm_destroy is broken. I'm handling the failure of vm_destroy. For the same VM, vm destroy is going through in the older libvirt version(0.8.7) and why it is always failing in the latest version of libvirt ? anything wrong in my environment ? host:~]$ virsh version Compiled against library: libvir 0.8.7 Using library: libvir 0.8.7 Using API: QEMU 0.8.7 Running hypervisor: QEMU 0.13.0 [host:~]$ Thanks, CJ -----Original Message----- From: Eric Blake [mailto:eblake@xxxxxxxxxx] Sent: Wednesday, July 03, 2013 7:34 PM To: Chandrashekhar Jamadarkhani (cjamadar) Cc: libvirt-users@xxxxxxxxxx Subject: Re: VM destroy faiing in 1.0.1 On 07/02/2013 11:02 PM, Chandrashekhar Jamadarkhani (cjamadar) wrote: > Hi, > > Virsh destroy is always failing with below error. > > [host:~]$ virsh destroy XYZ--2 > error: Failed to destroy domain XYZ--2 > error: Requested operation is not valid: domain is not running You must ALWAYS be prepared for commands to fail because the guest has changed states on its own. Any guest can turn itself off before your destroy request; this does not mean that destroy is broken. > when we upgrade to latest libvirt version:1.0.1, VM destroy is failing. Latest libvirt is 1.1.0, not 1.0.1. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org _______________________________________________ libvirt-users mailing list libvirt-users@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvirt-users