References: bsc#996020 Subject: virt-manager: use virDomainMigrate3 API From: Jim Fehlig jfehlig@suse.com Wed Aug 31 11:26:24 2016 -0600 Date: Thu Sep 8 11:47:45 2016 -0400: Git: 0425975f38cec8fca6fd6ad600985403b9d24adb libvirt has supported the migration V3 protocol for many years now. A nice feature of the virDomainMigrate3 API is that it will detect the protocol version supported by the underlying hypervisor, including whether it supports the extensible parameters variant, and call the hypervisor API with parameters fixed up as needed. Change virt-manager to use the virDomainMigrate3 API, allowing migration to work with hypervisors that only support the extensible parameters variant of the migration V3 API. Signed-off-by: Jim Fehlig Index: virt-manager-1.4.0/virtManager/domain.py =================================================================== --- virt-manager-1.4.0.orig/virtManager/domain.py +++ virt-manager-1.4.0/virtManager/domain.py @@ -1487,7 +1487,11 @@ class vmmDomain(vmmLibvirtObject): if meter: start_job_progress_thread(self, meter, _("Migrating domain")) - self._backend.migrate(libvirt_destconn, flags, None, interface, 0) + params = {} + if interface: + params[libvirt.VIR_MIGRATE_PARAM_URI] = interface + + self._backend.migrate3(libvirt_destconn, params, flags) # Don't schedule any conn update, migrate dialog handles it for us