Discussion:
[libvirt-users] Attempt to migrate guest to the same host localhost.localdomain
llilulu
2018-03-21 02:15:29 UTC
Permalink
Hi
My libvirt version is 3.4.0, I migrate guest between two host, The two host have same hostname( hostname cmd output same), I try find solution on Internet, I find someone say host uuid same, But virsh sysinfo output uuid is different, when I change one host's hostname, migrate success. I wish know why, and Can I solution this problem not change hostname.
My program use api virDomainMigrateToURI2, flag arg is VIR_MIGRATE_LIVE | VIR_MIGRATE_PEER2PEER . I use virsh migrate --live --p2p.
Thanks
Daniel P. Berrangé
2018-03-21 09:03:49 UTC
Permalink
Post by llilulu
Hi
My libvirt version is 3.4.0, I migrate guest between two host, The two
host have same hostname( hostname cmd output same), I try find solution on
Internet, I find someone say host uuid same, But virsh sysinfo output uuid
is different, when I change one host's hostname, migrate success. I wish
know why, and Can I solution this problem not change hostname.
My program use api virDomainMigrateToURI2, flag arg is VIR_MIGRATE_LIVE
| VIR_MIGRATE_PEER2PEER . I use virsh migrate --live --p2p.
Libvirt on the source host will query libvirt on the target host to
discover its hostname, which is then used as the target for the migration
in QEMU, so you really need a proper hostname configured.

Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
Loading...