[libvirt] RE: Re: kvm-81: save / restore does not work - missing incoming stdio feature
Daniel Schwager
Daniel.Schwager at dtnet.de
Mon Jan 19 12:53:48 UTC 2009
Hi Daniel,
Charles Duffy (thanks Charles !) told me how to fix libvirt for using
the
new "-incoming" API - yust replace "stdio" with "exec:cat" ..
Works like a charm, tested with FC9, libvirt.0.5.1-2 and KVM-83
Here's the patch for libvirt:
diff -uNr libvirt-0.5.1/src/qemu_driver.c
libvirt-0.5.1-migrate-exec-patch/src/qemu_driver.c
--- libvirt-0.5.1/src/qemu_driver.c 2009-01-18 11:07:57.000000000
+0100
+++ libvirt-0.5.1-migrate-exec-patch/src/qemu_driver.c 2009-01-18
10:40:42.000000000 +0100
@@ -2278,7 +2278,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) {
regards
Danny
> > From: Matthias Pfafferodt <matthias.pfafferodt <at> mapfa.de>
> > Subject: Re: [libvirt] kvm: save / restore
> >
> > 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.
>
> 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
More information about the libvir-list
mailing list