[libvirt] kvm: save / restore

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? Kind regards Matthias Pfafferodt -- Matthias Pfafferodt - http://www.mapfa.de Matthias.Pfafferodt <at> mapfa.de

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 -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

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
-- Matthias Pfafferodt - http://www.mapfa.de Matthias.Pfafferodt <at> mapfa.de

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) {
participants (3)
-
Daniel P. Berrange
-
Matthias Pfafferodt
-
Slávek Banko