[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] Restore after restart libvirtd



Diego Woitasen wrote:
> Hi,
>  I 'm playing with save/restore domains. It's working, but if I
> restart libvirtd after 'save domain file' and then try to restore it I
> get:
> 
> error: Failed to restore domain from /tmp/domain.out
> error: operation failed: domain 'domainname' is already defined with
> uuid 17c77406-b6e3-621a-1fae-420affce8f48
> 
> If I move domainname.xml out of libvirt config. directory it works,
> but I think this should not be necessary.

No, that's definitely not necessary, so something is wrong.  I just tried the
same thing on the head of libvirt git, and it worked just fine:

# ./daemon/libvirtd --verbose --listen
# ./tools/virsh save <guest> /tmp/foo.save
# <kill libvirtd>
# ./daemon/libvirtd --verbose --listen
# ./tools/virsh restore /tmp/foo.save

What version of libvirt are you using?  What are the exact steps you are taking
to try this out?

-- 
Chris Lalancette


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]