vSphere HA Configuration Fails on ESXi Host Due to Missing DNS Resolution
search cancel

vSphere HA Configuration Fails on ESXi Host Due to Missing DNS Resolution

book

Article ID: 433607

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSphere ESXi VMware Cloud Foundation VMware vSphere Foundation

Issue/Introduction

  • vSphere HA configuration or vLCM compliance checks fail because the ESXi host cannot resolve the vCenter Server FQDN to download required HA VIBs.

    Symptoms:

    • vSphere HA configuration fails for an ESXi host.
    • vCenter Server reports: "Cannot complete the configuration of the vSphere HA agent on the host."
    • vLCM compliance checks or ESXi upgrades (e.g., from 8.0.3 to 9.0.2) time out.
    • Cluster Summary reports:

      "Cannot find vSphere HA master agent."
  • Lifecycle logs (/var/log/lifecycle.log) on the host show:

    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>'))")

Environment

  • VMware vSphere ESXi 8.x, 9.x
  • VMware Cloud Foundation (VCF) 5.x, 9.x
  • vLCM Image-based clusters

Cause

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.

Resolution

Step 1: Preliminary Validation

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.

Step 2: Update DNS Configuration

Method 1: Using vSphere Client (Recommended)

  1. Log in to the vSphere Client as an administrator.
  2. Navigate to Hosts and Clusters and select the affected ESXi host.
  3. Click the Configure tab.
  4. Under Networking, select TCP/IP configuration.
  5. Select the Default TCP/IP stack and click Edit.
  6. Under DNS Configuration, ensure the following fields are populated correctly:
    • Hostname
    • Domain name
    • Primary DNS server
    • Search domains
  7. Click OK to save changes.

Method 2: Using Direct Console User Interface (DCUI)

  1. Access the physical or remote console (IPMI/iLO/iDRAC) of the ESXi host.
  2. Press F2 and log in with root credentials.
  3. Navigate to Configure Management Network > DNS Configuration.
  4. Select Use the following DNS server addresses and hostname.
  5. Update the Primary DNS Server, Alternate DNS Server (optional), and Hostname.
  6. Press Enter, then Esc to exit. Select Yes when prompted to apply changes and restart the management network.

Method 3: Using ESXi Shell (SSH)

  1. Log in to the ESXi host via SSH as root.
  2. Verify current DNS settings: esxcli network ip dns server list.
  3. Add a valid DNS server: 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.

Step 3: Final Validation and Reconfiguration

  1. Re-run the validation tests from Step 1 to ensure the vCenter FQDN is now resolvable.
  2. In the vSphere Client, right-click the affected host and select Reconfigure for vSphere HA.

Additional Information

Update DNS Server IP address for vSphere ESXi host