Using RHEV3 Hypervisors: "RHEV3 Migration failed due to Error: Migration destination has an invalid hostname"
I am attempting to carry out a vm Migration from one host to another.
I am having a similar problem as described here: https://access.redhat.com/knowledge/ja/node/68634, however I am using RHEV3 hypervisors, which uses a read-only filesystem (and rightly so I might add).
The hosts have been configured using Admin configurator on setup from a usb device, and both hosts appear in the browser admin page with fqdn and IPs displayed correctly. As far as I understand it this error does not make sense.
Does someone know something I don't? Any advise appreciated.
Responses
It's a dns resolution problem or conflicting entries in /etc/hosts. Though the rhev-h is readonly, it has a small partition to persist configuration files and is read-write.
Run the below commands from both hypervisors (source and destination). They should return output that does not conflit.
# hostname
# host <fqdn of source>
# host <fqdn of destination>
# host <ip of source>
# host <ip of destination>
Then check /etc/hosts of both hypervisor and verify they don't have conflicting entries.
RHEV relies on your local DNS setup, so you need all the hosts and RHEV-M to be resolvable by both FQDN and IP (have a PTR record). If this is not the case, then this is where you should start looking first.
From the output of the above commands, I can see name resolution is not working properly in your environment.
You need to have a DNS server to resolve all the hypervisors and RHEV-M forward and reverse (you can set up RHEV-M itself as a DNS server) or use /etc/hosts of all these servers properly to make name resolution working properly.