After the management IP address of an ESXi host was changed, it is disconnected from the vCenter Server.
When trying to manually reconnect the host, it is automatically being disconnected immediately or after a very short amount of time.
vSphere 7.0
To fix this issue, you need to update the ESXi host management address in the vpxa configuration. Up until ESXi 7.0 Update 2 this configuration can be found in /etc/vmware/vpxa/vpxa.cfg.
Starting with ESXi 7.0 Update 3, this configuration is no longer stored in a specific configuration file, but instead has been moved into the ESXi configuration store.
Please follow the steps below for the specific version you are using:
# cp /etc/vmware/vpxa/vpxa.cfg /etc/vmware/vpxa/vpxa.cfg_old
# /etc/init.d/hostd restart
# /etc/init.d/vpxa restart
# 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
# configstorecli config current set -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/hostd restart
# /etc/init.d/vpxa restart
After taking the steps applicable to your ESXi version, in vSphere Client, refresh the ESXi host certificate. For this