I've set up two libvirt nodes with the following hostnames:
- mycompany-hv-01.example.tld
- mycompany-hv-02.example.tld
The names are declared in a public DNS and resolvable (public IPs).
When I try to migrate a guest from one host to the other:
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
The error is the same when I try a live migration.
I know this is not exactly the same error, but I tried the advices on this page. My DNS are already working, so I tried to force resolution by adding entries to my /etc/hosts
on both hosts, but that doesn't work.
The following workaround works:
virsh migrate prout qemu+ssh://mycompany-hv-02.example.tld/system tcp://mycompany-hv-02.example.tld --offline --persistent
I tried to manually define migration_host
in /etc/libvirt/qemu.conf
but I got the error:
configuration file syntax error: migration_host must not be the address of the local machine: mycompany-hv-01.example.tld
Do I miss something?