Hi Chandrashekhar,
If you are looking to totally wipe out a domain (virtual machine) from your 
host you are looking for the undefined which is the opposite of defining a 
domain. The destroy command is like a hard power off of the domain.

[root@bv13-07 ~]# virsh help undefine
  NAME
    undefine - undefine a domain

  SYNOPSIS
    undefine <domain> [--managed-save] [<storage>] [--remove-all-storage] 
[--wipe-storage] [--snapshots-metadata]

  DESCRIPTION
    Undefine an inactive domain, or convert persistent to transient.

From: libvirt-users-boun...@redhat.com 
[mailto:libvirt-users-boun...@redhat.com] On Behalf Of Chandrashekhar 
Jamadarkhani (cjamadar)
Sent: Tuesday, July 02, 2013 10:02 PM
To: libvirt-users@redhat.com
Subject: [libvirt-users] VM destroy faiing in 1.0.1

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

[host:~]$ virsh list --all
Id    Name                           State
----------------------------------------------------
-     XYZ--2                       shut off

[host:~]$

host:~]$ libvirtd --version
libvirtd (libvirt) 1.0.1
[host:~]$

host:~]$ virsh version
Compiled against library: libvirt 1.0.1
Using library: libvirt 1.0.1
Using API: QEMU 1.0.1
Running hypervisor: QEMU 0.13.0

[host:~]$

same VM was working with older libvirt vrsion:
[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:~]$

when we upgrade to latest libvirt version:1.0.1, VM destroy is failing.
Appreciate your help on this.

Thanks,
Chandrashekhar

_______________________________________________
libvirt-users mailing list
libvirt-users@redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users

Reply via email to