<div class="gmail_quote">On Tue, Sep 22, 2009 at 3:00 PM, Mark McLoughlin <span dir="ltr"><<a href="mailto:markmc@redhat.com">markmc@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Tue, 2009-09-22 at 10:05 +0200, Gianluca Cecchi wrote:<br>
> > Yeah, I think there's a bug currently in the code.  I believe markmc<br>
> has<br>
> > recently ported that patch back, though, so upgrading to a newer<br>
> version<br>
> > (when<br>
> > he pushes it) should fix the bug.<br>
> ><br>
> > --<br>
> > Chris Lalancette<br>
> ><br>
><br>
> OK, I'll wait for the fix and then I test.<br>
<br>
</div>I think the fix Chris means is in libvirt-0.7.1-5<br>
<br>
Cheers,<br>
<font color="#888888">Mark.<br>
<br>
</font></blockquote></div>I confirm that with that version of libvirt I'm able to save my VM (or at least the command completes, not tried yet to restore '-)<br>Inside the data file saved I can see that there is also the xml config for the guest embedded ....<br>
As the VM is killed at the end of the save, can I then <br>- copy the disk(s) of the VM to another host<br>- copy the save file to another host<br>- restore the save on that secondary host based on the fact that it retains the same config?<br>
<br>At this time, trying to restore on another host that has not the same storage poool config gives this:<br>Error restoring domain '/mnt/rhel54_x86_64': internal error unable to start guest: qemu: could not open disk image /dev/vg_qemu01/rhel53_64<br>
<br>and in details window:<br>Traceback (most recent call last):<br>  File "/usr/share/virt-manager/virtManager/manager.py", line 458, in restore_saved_callback<br>    newconn.restore(file_to_load)<br>  File "/usr/share/virt-manager/virtManager/connection.py", line 642, in restore<br>
    self.vmm.restore(frm)<br>  File "/usr/lib64/python2.6/site-packages/libvirt.py", line 1420, in restore<br>    if ret == -1: raise libvirtError ('virDomainRestore() failed', conn=self)<br>libvirtError: internal error unable to start guest: qemu: could not open disk image /dev/vg_qemu01/rhel53_64<br>
<br>Supposing I recreate a pool with the same pointers and the hard disk of the VM, are there other limitations/restrictions to restore on another host?<br><br>