[libvirt] Local qemu migration

Cole Robinson crobinso at redhat.com
Tue Nov 4 15:49:44 UTC 2014


On 11/04/2014 10:43 AM, Marc-André Lureau wrote:
> Hi,
>
> Attempting to migration from session to system qemu fails because of the
> following checks in  qemuMigrationCookieXMLParse():
>
>     if (STREQ(mig->remoteHostname, mig->localHostname)) {
>          virReportError(VIR_ERR_INTERNAL_ERROR,
>                         _("Attempt to migrate guest to the same host %s"),
>                         mig->remoteHostname);
>          goto error;
>      }
> ....
>      if (memcmp(mig->remoteHostuuid, mig->localHostuuid, VIR_UUID_BUFLEN) == 0) {
>          virReportError(VIR_ERR_INTERNAL_ERROR,
>                         _("Attempt to migrate guest to the same host %s"),
>                         tmp);
>          goto error;
>
> Is there a technical limitation for this error? If not, could it be overriden
> with an additional flag?

Trying to prevent migrating to the same libvirtd instance which would 
historically deadlock in libvirt's qemu driver. But migrating session -> 
system shouldn't suffer from that problem, so maybe it should be smarter.

Maybe with the more fine grained locking these days we can actually make 
localhost migration work? Would be useful for testing

- Cole




More information about the libvir-list mailing list