Re: [libvirt] A problem in live migration

I am not sure if libvirt has resolved hostname and ip mapping problem, it had better that two hosts have same domain name, such as "dhcp-1-2-3.nay.redhat.com" and "dhcp-4-5-6.nay.redhat.com". In addition, I haven't seen your any storage pool information on two hosts, you need to create a sharing storage such as nfs sharing folder, and your guest is in the storage, of course, you may also manually mount your nfs folder to target host instead of creating storage pool. Best Regards, Alex ----- Original Message ----- From: "姚远" <sihuyy@gmail.com> To: libvir-list@redhat.com Sent: Wednesday, July 21, 2010 3:39:15 PM GMT +08:00 Beijing / Chongqing / Hong Kong / Urumqi Subject: [libvirt] A problem in live migration In virsh, I use command "migrate --live 1 qemu+ssh:// 10.1.10.60/system " to do live migration,but it shows error "internal error hostname on destination resolved to localhost, but migration requires an FQDN". I don't know why, and who do live migration successfully can help me. Thank you! My source and destination system are all fedora-13-x86_64, and the version of libvirt is 0.8.2 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

I know that, I had the same issue due to the fact one of my host had its name in front of the localhost address in my /etc/hosts (like : "127.0.0.1 localhost linux72" ) ... But it's maybe not the same problem 2010/7/21 Alex Jia <ajia@redhat.com>
I am not sure if libvirt has resolved hostname and ip mapping problem, it had better that two hosts have same domain name, such as "dhcp-1-2-3.nay.redhat.com" and " dhcp-4-5-6.nay.redhat.com".
In addition, I haven't seen your any storage pool information on two hosts, you need to create a sharing storage such as nfs sharing folder, and your guest is in the storage, of course, you may also manually mount your nfs folder to target host instead of creating storage pool.
Best Regards, Alex
----- Original Message ----- From: "姚远" <sihuyy@gmail.com> To: libvir-list@redhat.com Sent: Wednesday, July 21, 2010 3:39:15 PM GMT +08:00 Beijing / Chongqing / Hong Kong / Urumqi Subject: [libvirt] A problem in live migration
In virsh, I use command "migrate --live 1 qemu+ssh:// 10.1.10.60/system " to do live migration,but it shows error "internal error hostname on destination resolved to localhost, but migration requires an FQDN". I don't know why, and who do live migration successfully can help me. Thank you! My source and destination system are all fedora-13-x86_64, and the version of libvirt is 0.8.2
-- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
-- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
-- Florian Chazal

On 07/21/10 - 11:59:49AM, florian chazal wrote:
I know that, I had the same issue due to the fact one of my host had its name in front of the localhost address in my /etc/hosts (like : "127.0.0.1 localhost linux72" ) ... But it's maybe not the same problem
The particular problem of having both localhost and your "local" hostname (like linux72) resolve to 127.0.0.1 should now work in libvirt 0.8.2 without modification. But the original reporter's problem is that after going through the (rather delicate) algorithm to detect hostname, it still couldn't resolve to anything other than localhost. Either via /etc/hosts, or through DNS, the hostname of the destination machine has to resolve to something besides "localhost". -- Chris Lalancette
participants (3)
-
Alex Jia
-
Chris Lalancette
-
florian chazal