Dne so 20. prosince 2008 Matthias Pfafferodt napsal(a):
Hello Daniel,
thnaks for your anser. Do you know the plans regarding save/restore in
kvm and libvirt? I would like to save my vm's at shutdown and restore
at boot time. At the moment this is not working and shutdown is used.
Matthias
Am Thursday 18 December 2008 13:42:36 schrieb Daniel P. Berrange:
> On Wed, Dec 17, 2008 at 01:46:43PM +0100, Matthias Pfafferodt wrote:
> > Hallo,
> >
> > I use kvm-81 and libvirt 0.5.1. I can save a kvm donain but if I
> > want to restore it I get the following error in the log file:
> >
> > unknown migration protocol: stdio
> >
> > I tried it using only kvm and got the same error.
> >
> > How can I save / restore a VM to / from a file?
>
> The new KVM release dropped support for the '-incoming stdio' syntax
> that libvirt was using so save/restore no longer works :-(
>
> Daniel
Hello.
I try to find solution for problem with restore and result is following
small patch. The same can be used for libvirt 0.5.x.
Slavek
--- libvirt-0.4.6.orig/src/qemu_driver.c
+++ libvirt-0.4.6/src/qemu_driver.c
@@ -2811,7 +2811,7 @@
/* Set the migration source and start it up. */
vm->stdin_fd = fd;
- ret = qemudStartVMDaemon(conn, driver, vm, "stdio");
+ ret = qemudStartVMDaemon(conn, driver, vm, "exec:cat");
close(fd);
vm->stdin_fd = -1;
if (ret < 0) {