Hello Daniel<br>Thank you for all your information, but I still didn't solve the problem. I tried the option you mention, with two differents guest into two differents host, but all the cases I've got:<br><br><div style="margin-left: 40px;">
<b><i>virsh # restore sv-chubut-2011-04-04-17:38</i></b><br><b><i>error: Failed to restore domain from sv-chubut-2011-04-04-17:38</i></b><br><b><i>error: monitor socket did not show up.: Connection refused</i></b><b><i></i></b><br>
</div><br>I cannot get any useful information (at least form me) on the log you mention.<br>I'd appreciate a lot a new suggestion.<br>Thanks<br>Marcela<br><br><br>
<br><br><div class="gmail_quote">2011/4/4 Daniel P. Berrange <span dir="ltr"><<a href="mailto:berrange@redhat.com">berrange@redhat.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Sun, Apr 03, 2011 at 10:43:45AM +0200, Marcela Castro León wrote:<br>
> Hello:<br>
> I need to know if I can use the restore operation (virsh o the equivalent in<br>
> libvirt) to recover a previous state of a guest, but recovered previously in<br>
> another host.<br>
> I did a test, but I got an error:<br>
><br>
> The exactly sequence using virsh I testes is:<br>
> On [HOST SOURCE]: Using virsh<br>
> 1) save [domain] [file]<br>
> 2) restore file<br>
> 3) destroy [domain]<br>
><br>
> On [HOST SOURCE] using ubuntu sh<br>
> 4) cp [guest.img] [guest.xml] [file] to HOST2<br>
><br>
> On [HOST TARGET] using virsh<br>
> 5) define [guest.xml] (using image on destination in HOST2)<br>
> 6) restore [file]<br>
<br>
</div>As a general rule you should only ever 'restore' from a<br>
file *once*. This is because after the first restore<br>
operation, the guest may have made writes to its disk.<br>
Restoring a second time the guest OS will likely have<br>
an inconsistent view of the disk & will cause filesystem<br>
corruption.<br>
<br>
If you want to be able to restore from a saved image<br>
multiple times, you need to also take a snapshot of<br>
the disk image at the same time, and restore that<br>
snapshot when restoring the memory image.<br>
<br>
<br>
That aside, saving on one host & restoring on a<br>
different host is fine. So if you leave out steps<br>
2+3 in your example above, then your data would<br>
still be safe.<br>
<div class="im"><br>
> The restore troughs the following message:<br>
> *virsh # restore sv-chubut-2011-04-01-09:58<br>
> error: Failed to restore domain from sv-chubut-2011-04-01-09:58<br>
</div>> error: monitor socket did not show up.: Connection refused*<br>
<br>
There is probably some configuration difference on your 2nd host<br>
that prevented the VM from starting up. If you're lucky the file<br>
/var/log/libvirt/qemu/$NAME.log will tell you more<br>
<br>
Daniel<br>
<font color="#888888">--<br>
|: <a href="http://berrange.com" target="_blank">http://berrange.com</a>      -o-    <a href="http://www.flickr.com/photos/dberrange/" target="_blank">http://www.flickr.com/photos/dberrange/</a> :|<br>
|: <a href="http://libvirt.org" target="_blank">http://libvirt.org</a>              -o-             <a href="http://virt-manager.org" target="_blank">http://virt-manager.org</a> :|<br>
|: <a href="http://autobuild.org" target="_blank">http://autobuild.org</a>       -o-         <a href="http://search.cpan.org/%7Edanberr/" target="_blank">http://search.cpan.org/~danberr/</a> :|<br>
|: <a href="http://entangle-photo.org" target="_blank">http://entangle-photo.org</a>       -o-       <a href="http://live.gnome.org/gtk-vnc" target="_blank">http://live.gnome.org/gtk-vnc</a> :|<br>
</font></blockquote></div><br>