vSphere HA configuration or vLCM compliance checks fail because the ESXi host cannot resolve the vCenter Server FQDN to download required HA VIBs.
Symptoms:
"Cannot find vSphere HA master agent."YYYY-MM-DDTHH:MM:SS.##Z lifecycle: ######: imagemanagerct1:157 ERROR vmware.esximage.Errors.MetadataDownloadError:('https://<VC_FQDN>: 9087/vum/repository/hostupdate/<VIB_NAME>. xml','', "Could not download from depot at https://<VC_FQDN>: 9087/vum/repository/hostupdate/<VIB_NAME>. xml, skipping (('https://<VC_FQDN>: 9087/vum/repository/hostupdate/<VIB_NAME>. xml', '', '<urlopen error [Errno -2] Name or service not known>'))")The ESXi host lacks valid DNS server configuration. This prevents the host from resolving the Fully Qualified Domain Name (FQDN) of the vCenter Server, which is required to download HA VIB components during configuration or upgrades.
Verify if the host is able to ping the vCenter FQDN/IP and if nslookup is working both ways:
ping <vCenter_FQDN_or_IP>nslookup <vCenter_FQDN>nslookup <vCenter_IP>If these tests fail, proceed to Step 2 to update the DNS configuration using one of the following methods.
esxcli network ip dns server list.esxcli network ip dns server add -s <DNS_IP_ADDRESS>.Note: If IPv6 is set to "Obtain IPv6 address automatically through DHCP," the SSH command may fail. Switch to "Router Advertisement" or disable the option in VMK0 settings.