Libvirt 마이그레이션 호스트 이름

Libvirt 마이그레이션 호스트 이름

다음 호스트 이름을 사용하여 두 개의 libvirt 노드를 설정했습니다.

  • mycompany-hv-01.example.tld
  • mycompany-hv-02.example.tld

이름은 공용 DNS 및 확인 가능(공용 IP)에서 선언됩니다.

한 호스트에서 다른 호스트로 게스트를 마이그레이션하려고 할 때:

root@mycompany-hv-02:~# virsh migrate prout qemu+ssh://mycompany-hv-01.example.tld/system --offline --persistent
error: internal error: hostname on destination resolved to localhost, but migration requires an FQDN

실시간 마이그레이션을 시도할 때에도 오류가 동일합니다.

나는 이것이 정확히 같은 오류가 아니라는 것을 알고 있지만 다음에 대한 조언을 시도했습니다.이 페이지. 내 DNS가 이미 작동하고 있으므로 두 호스트 모두에 항목을 추가하여 강제로 해결하려고 했지만 /etc/hosts작동하지 않습니다.

다음 해결 방법이 작동합니다.

virsh migrate prout qemu+ssh://mycompany-hv-02.example.tld/system tcp://mycompany-hv-02.example.tld --offline --persistent

migration_host수동으로 정의 하려고 했지만 /etc/libvirt/qemu.conf오류가 발생했습니다.

configuration file syntax error: migration_host must not be the address of the local machine: mycompany-hv-01.example.tld

뭔가 그리워요?

답변1

구성 파일 구문 오류: migration_host는 로컬 시스템의 주소가 아니어야 합니다: mycompany-hv-01.example.tld

이는 libvirt가 "mycompany-hv-01.example.tld"를 확인하려고 시도했으며 127.0.0.1로 확인되었음을 의미합니다.

마이그레이션 소스 호스트만 해당 주소를 로컬 호스트가 아닌 IP 주소로 확인할 수 있어야 하기 때문에 이는 틀림없이 libvirt의 버그입니다. qemu.conf를 구성한 호스트가 127.0.0.1로 확인되면 괜찮습니다.

관련 정보