Hongbin Lu
2014-Aug-13 22:20 UTC
[libvirt-users] Support live migration of OpenVZ container
Hi libvirt team, I was trying to migrate an OpenVZ domain from one host to another host. It seems that the live migration of OpenVZ container is there ( https://openvz.org/Migration_from_one_HN_to_another), but it haven't been integrated to libvirt yet. In particular, I ran the following commands and it failed: $ sudo virsh migrate --live --verbose --undefinesource 101 openvz+ssh:// root@10.12.1.39/system error: this function is not supported by the connection driver: virDomainMigrate3 Could anyone confirm if libvirt supports live migration of OpenVZ domain. If yes, please let me know the correct way to do that. If no, I would like to know if there is a plan to add support for that. I don't mind to submit a patch if your team likes to review it. Please let me know. Thanks. Best regards, Hongbin
Eric Blake
2014-Aug-13 22:27 UTC
Re: [libvirt-users] Support live migration of OpenVZ container
On 08/13/2014 04:20 PM, Hongbin Lu wrote:> Hi libvirt team, > > I was trying to migrate an OpenVZ domain from one host to another host. It > seems that the live migration of OpenVZ container is there ( > https://openvz.org/Migration_from_one_HN_to_another), but it haven't been > integrated to libvirt yet. In particular, I ran the following commands and > it failed: > > $ sudo virsh migrate --live --verbose --undefinesource 101 openvz+ssh:// > root@10.12.1.39/system > error: this function is not supported by the connection driver: > virDomainMigrate3 > > Could anyone confirm if libvirt supports live migration of OpenVZ domain.According to http://libvirt.org/hvsupport.html, no one has ported any of the virDomainMigrate callbacks to the openvz driver.> If yes, please let me know the correct way to do that. If no, I would like > to know if there is a plan to add support for that. I don't mind to submit > a patch if your team likes to review it. Please let me know. Thanks.The plan is to wait for someone to submit a patch. So go for it! You can use qemu and libxl migration code as a guide when implementing the callbacks in the openvz code. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org