An error occurred during configuration of the HA agent on the host HA agent on <ESX> in cluster <cluster> in <Datacenter> has an error Error: Cannot complete the configuration of the HA agent on the host. Other HA configuration errorOperation timed out Unable to connect to the MKS: Host address lookup for server failed: No such host is known There are errors during the remediation operationFailed to find host vSphere HA host status
/var/run/log/vpxa.log output:YYYY-MM-DDThh:mm:ss.###Z warning vpxa[####] [Originator@#### sub=IO.Connection] Failed to resolve localhost IP address; localhost(IPv6), e: 1(Host not found (authoritative))YYYY-MM-DDThh:mm:ss.###Z warning vpxd[####] [Originator@#### sub=IO.Connection opID=<opID>] Failed to resolve address; <resolver p:0x0000000000000000, '<host_FQDN>:443', next:(null)>, e: 1(Host not found (authoritative)), async: true, duration: 0msecping 10.1##.#.## (10.1##.##.##): 56 data bytessendto() failed (Host is down)
nslookup vsphere.local 10.###.###.##nslookup: write to '10.1##.###.##': Host is down;; connection timed out; no servers could be reachedA common cause for an ESXi host dropping out of vCenter Server is due to the DNS (both forward and reverse) failing or lacking correct configuration.
There is an issue with name resolution if any of these tests fail. ESXi hosts must be able to find each other by:
If an issue with name resolution has been identified it must be resolved either on the DNS server or by using hosts files.
nslookup each other.nslookup (reverse IP address lookup) to verify that the appropriate name is associated to a particular IP address.[root@esx-server-1 /]# nslookup 192.168.#.#Server: 192.168.#.#Address: 192.168.#.##53#.#.168.192.in-addr.arpa name = esx-server-2.example.com nslookup each other.[root@esx-server-1 /]# nslookup esx-server-2Server: 192.168.#.#Address: 192.168.#.##53Name: esx-server-2.example.comAddress: 192.168.#.#5. Verify that the managing vCenter does not have any improper entries in its "/etc/hosts/" file for the targeted ESXi host.
Configuring hosts files on ESXi
The hosts file on the ESX host is located at /etc/hosts.
Open the file for editing using a text editor such as nano or vi editor.
Example hosts file:
# Do not remove the following line, or various programs# that require network functionality will fail.127.0.0.1 localhost.localdomain localhost
# Any line beginning with a pound sign is a comment and will not be read.192.168.#.# esx-server-1.example.com esx-server-1192.168.#.# esx-server-2.example.com esx-server-2
# The VMware Virtual Center Server must also have an entry here192.168.#.# virtualcenter.example.com virtualcenter