[libvirt-users] new guest with same name as undefined one

Eric Blake eblake at redhat.com
Mon Sep 26 12:42:31 UTC 2011

On 09/25/2011 02:45 PM, Sergio A. Kessler wrote:
> hi,
> - host: rhel6
> - I created a guest rmdev2 (centos6)
> - undefined it

This step is buggy on older servers; it was fixed in upstream libvirt 
0.9.4 to refuse deletion unless you first ensure that any managed save 
metadata has been removed (also, 0.9.5 also refuses deletion unless you 
first ensure any snapshot metadata has been removed, but that does not 
appear to be your problem).

> - again created rmdev2 guest (centos6)
> now I get:
> virsh # start rmdev2
> error: Failed to start domain rmdev2
> error: operation failed: cannot restore domain 'rmdev2' uuid
> 9e9ea633-9691-f3d6-64da-ae9c8b3e5810 from a file which belongs to
> domain 'rmdev2' uuid 4f425d14-335b-0adc-11af-06e503c6b54d

start is trying to reuse the stale managed save image that was left 
behind by the older domain that was not completely undefined.  You 
should be able to correct the problem by doing 'virsh managedsave-remove 
rmdev2' before 'virsh start rmdev2'.

> why ?
> it seems the ghost of the old guest is causing problems...
> all the files used by the first guest are deleted...

Yep, and that's why newer libvirt prevents this situation from happening.

Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

More information about the libvirt-users mailing list