Note: Before you begin, see Restarting the Management agents on an ESX Server (1003490) for important information on restarting the mgmt-vmware service.
The ESXi/ESX hosts disconnect because they store the IP address of the vCenter Server in configuration files on each of the individual servers. This incorrect address continues to be used for heartbeat packets to vCenter Server.
There are two methods to get the ESXi/ESX hosts connected again. Try each one in the order specified, testing your results each time.
Before performing either method, ensure that the Managed IP Address of the vCenter Server is updated to reflect the new IP address being used. For more information, see Verifying the vCenter Server Managed IP Address (1008030).
Up until ESXi 7.0 Update 2e - Edit the vpxa.cfg file on ESXi:
In ESXi 7.0 Update 3 and later - Edit the config store:
In ESXi 7.0 Update 3 the vpxa.cfg file no longer exists, as the vpxa configuration was moved to the ESXi config store. Therefore, if you cannot find /etc/vmware/vpxa/vpxa.cfg on your ESXi 7.0, follow these steps instead:
# configstorecli config current get -c esx -g services -k vpxa_solution_user_config -outfile vpxa.json
# rm -f vpxa.json.bak; cp vpxa.json vpxa.json.bak -f
# sed -e 's/ "server_ip".*/ "server_ip": "<vcenter_ip>",/g' -i vpxa.json
# configstorecli config current update -c esx -g services -k vpxa_solution_user_config -infile vpxa.json
# configstorecli config current get -c esx -g services -k vpxa_solution_user_config
# /etc/init.d/vpxa restart
Note: if method 1 does not work, please apply method 2
Method 2 - disconnect/reconnect the ESXi in vSphere Client
Note: Do not remove the ESXi host from vCenter inventory if the host is attached to a Distributed Switch (vDS). For more information, see Moving an ESX/ESXi host with vDS from one vCenter Server to another (1029498) .
# configstorecli config current get -c esx -g services -k vpxa_solution_user_config
Verify that vCenter Server Settings - > Runtime settings -> vCenter Server managed address is reflecting the OLD IP address, update with the new IP address and restart the vCenter Server.
For related information, see Changing the IP address, default gateway, and hostname of the Service Console in ESX (4309499) and Verifying the VirtualCenter Managed IP Address (1008030).
Additional Information
For translated versions of this article, see: