llilulu
2018-Mar-21 02:15 UTC
[libvirt-users] Attempt to migrate guest to the same host localhost.localdomain
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-Mar-21 09:03 UTC
Re: [libvirt-users] Attempt to migrate guest to the same host localhost.localdomain
On Wed, Mar 21, 2018 at 10:15:29AM +0800, llilulu wrote:> 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 :|
Maybe Matching Threads
- Re: Help? Running into problems with migrateToURI2() and virDomainDefCheckABIStability()
- nova-compute, libvirt and authentication
- libvirt unavailable while a VM is in migration?
- Help? Running into problems with migrateToURI2() and virDomainDefCheckABIStability()
- Re: nova-compute, libvirt and authentication