No host is compatible with the virtual machine""Unable to configure HA agent on host, task fails with error 'There was an error unconfiguring the vSphere HA agent on this host".Ensure DNS server is reachable to the ESXi host and can resolve the vCenter FQDN.
cat /etc/resolv.conf
Nameserver : # DNS server IP
Domain name: example.com
Get DNS IP 'nslookup <hostname> <dns_server_IP>' Example:[root@esx-server-1 ~]# nslookup <hostname> <dns_server_IP>Server: 192.##.##.## # DNS server IPAddress: 192.##.##.##
Name: esx_hostname.example.comAddress: 192.##.##.## # Expected IP address of esx_hostname