[libvirt] virDomanMigrate on kvm fails

virDomainMigrate fails when the domain is a kvm guest. The error message is "this function is not supported by the hypervisor: virDomainMigrate." I tried migrating with virsh but it says it can not connected to the destination host. I have successfully created copies of the same image on both so that is not the problem. I hava also booted the same hosts with xen and virDomainMigrate worked. What do you think the problem is? Kenneth Nagin

On Tue, Oct 07, 2008 at 09:55:00AM +0200, Kenneth Nagin wrote:
virDomainMigrate fails when the domain is a kvm guest. The error message is "this function is not supported by the hypervisor: virDomainMigrate."
This error message indicates the problem. Migration is not yet supported. Currently KVM's private fork of QEMU has some migration support, but this is not written in a suitable way for us to use - it blocks the QEMU monitor on startup. Upstream QEMU is getting better migration support and once that's done we can support it in libvirt. 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 :|

On Tue, Oct 07, 2008 at 09:55:00AM +0200, Kenneth Nagin wrote:
virDomainMigrate fails when the domain is a kvm guest. The error message is "this function is not supported by the hypervisor: virDomainMigrate." I tried migrating with virsh but it says it can not connected to the destination host. I have successfully created copies of the same image on both so that is not the problem. I hava also booted the same hosts with xen and virDomainMigrate worked. What do you think the problem is?
If you go back over the list you'll see that I wrote a patch for KVM migration, which was enhanced by Chris Lalancette, but currently this is on hold while KVM decide how they are going to (re-)implement migration. There was a big patch posted to the KVM list on Sep 9, but I'm not sure how much of it went in. In any case, unless you want to use the unofficial patches (which will almost certainly not interoperate with future official versions of libvirt/libvirtd) you can only wait or get involved with KVM. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones Read my OCaml programming blog: http://camltastic.blogspot.com/ Fedora now supports 68 OCaml packages (the OPEN alternative to F#) http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora

"Richard W.M. Jones" <rjones@redhat.com> wrote on 08/10/2008 11:04:58:
On Tue, Oct 07, 2008 at 09:55:00AM +0200, Kenneth Nagin wrote:
virDomainMigrate fails when the domain is a kvm guest. The error message is "this function is not supported by the hypervisor: virDomainMigrate." I tried migrating with virsh but it says it can not connected to the destination host. I have successfully created copies of the same image on both so that is not the problem. I hava also booted the same hosts with xen and virDomainMigrate worked. What do you think the problem is?
If you go back over the list you'll see that I wrote a patch for KVM migration, which was enhanced by Chris Lalancette, but currently this is on hold while KVM decide how they are going to (re-)implement migration. There was a big patch posted to the KVM list on Sep 9, but I'm not sure how much of it went in.
In any case, unless you want to use the unofficial patches (which will almost certainly not interoperate with future official versions of libvirt/libvirtd) you can only wait or get involved with KVM.
Rich.
-- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones Read my OCaml programming blog: http://camltastic.blogspot.com/ Fedora now supports 68 OCaml packages (the OPEN alternative to F#) http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora Thanks, we want to see if we can use the patches. Could I receive a copy of the patches?

Kenneth Nagin wrote:
Thanks, we want to see if we can use the patches. Could I receive a copy of the patches?
The current version is in the ovirt repositories; the source is here: http://ovirt.org/repos/ovirt/9/src/libvirt-0.4.5-2ovirt1.fc9.src.rpm -- Chris Lalancette
participants (4)
-
Chris Lalancette
-
Daniel P. Berrange
-
Kenneth Nagin
-
Richard W.M. Jones