"Failed to get management network information." error configuring vCenter HA
search cancel

"Failed to get management network information." error configuring vCenter HA

book

Article ID: 332712

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Symptoms:
  • Configuring vCenter HA fails with the error:

    Error: Failed to get management network information. verify if management interface (nic0) is configured correctly and is reachable
     
  • Running the command /usr/sbin/prepare-vcha on the vCenter Server Appliance fails with the error:

    Traceback (most recent call last):
    File "/usr/sbin/prepare-vcha", line 651, in <module>
    main()
    File "/usr/sbin/prepare-vcha", line 632, in main checkIps)
    File "/usr/sbin/prepare-vcha", line 440, in setupVchaEthCfg selfFailoverIp = getIp.getIpPrfxForIface('eth0')
    File "/usr/lib/vmware-vcha/scripts/getIp.py", line 64, in getIpPrfxForIface ifaceInfo = ifaces.getIfaceInfo(iface)
    File "/usr/lib/vmware-vcha/scripts/ifaces.py", line 164, in getIfaceInfo vchaIp, vchaFqdn = iputil.getIpFqdnForEth0(skipResolveOpt)
    File "/usr/lib/vmware-vcha/scripts/iputil.py", line 200, in getIpFqdnForEth0 raise Exception('Unable to get hostname resolved IP address for eth0')|
    Exception: Unable to get hostname resolved IP address for eth0


Environment

VMware vCenter Server Appliance 6.5.x

Cause

This issue can occur due to:
  • A failed reverse lookup after configuring the internal interfaces on the Passive vCenter Server Appliance.
  • The hostname contains capital letters.
 

Resolution

To resolve this issue:
  • Ensure the hostname contains only lower case letters.
    • Checking for upper case letters in the hostname:
      1. Connect to the vCenter Server Applianc with an SSH session and root credentials.
      2. Run this command to enable access the Bash shell:

        shell.set --enabled true
         
      3. Type shell and press Enter.
      4. Run this command to check the hostname:

        cat /etc/vmware/systemname_info.json | grep -i vCenter_hostname
         
    • If the hostname returned contains upercase level modify the hostname entry in the systemname_info.json file.
      1. Create a snapshot of the vCenter Server Appliance.
      2. Create a backup of the /etc/vmware/systemname_info.json file.
      3. Open the systemname_info.json file with this command:

        vi systemname_info.json
         
      4. Save the file and exit.
      5. Reboot the vCenter Server Appliance.
  • Ensure the DNS settings for the vCenter Server and reverse lookup succeeds on the vCenter Server Appliance.
  • This is also resolved in 6.5 P01