I've changed the IP address of the vCenter (& external PSC) machines. vCenter is fine, but all the hosts keep disconnecing from vCentre. I updated the vCenter servers IP address in the VPXA.CFG (as per article 1001493), but the address keeps on getting reverted back to the old address. I've checked the vCenter's IP address (As per article 1008030) and even restarted vCenter, but still the same: The vCenter server's IP address gets reverted.
What else can I do to try to fix this?
Can you provide details about which type you use, Windows vCenter or VCSA?
And which version?
Changing IP address is supported since VCSA 6.5:
Are you using an FQDN to communicate between vCenter and ESXi hosts ? or IP addresses ?
As per the below, you cannot change the IP address if it was used:
Anyway, try to remove and connect hosts again (one by one).
Please consider marking this answer "CORRECT" or "Helpful" if you think your question have been answered correctly.
The main reason for an ESXi host to disconnect is because they store the IP address of the vCenter Server in a configuration file.
For ESXi, navigate to the folder /etc/vmware/vpxa and with vi open the file: vpxa.cfg.
Search for the line that starts with: <serverIP> and the change this parameter to the new IP address of the vCenter Server.
Restart the management agents on the ESXI hosts with this command:
Return to the vCenter Server and restart the “VMware VirtualCenter Server” Service.
Try re-connecting the hosts if not done automatically.
I experienced the exact same issue, finally got it fixed.
1. Logon to the vCenter server (I use webClient)
2. Highlight center server, usually the top of the tree (not the vcenter server VM)
3. click Configure tab, General, click Edit
4. click Runtime settings, make sure vCenter Server managed address is vCenter server's IP.
1. Putty to the host, login as root.
2. edit \etc\vmware\vpxa\vpxa.cfg
3. towards the end of the file, change <serverIP> xxx.xxx.xxx.xxx to correct ip. save and exit.
4. restart vpxa serverice by running below command
This is not recommended by vmware , only old IP will be there or you required re-installed vcenter server
if you have snapshot before change IP revert snap shot,other wise it will create other issue in your infra
All the hosts showed the old ip .. the vcenter db showed the old ip .. below seems to have resolved the issue
service-control –stop vmware-vpxd
4. Log into the vCenter Server database
/opt/vmware/vpostgres/current/bin/psql -d VCDB -U postgres
5. Check the value stored in VPX_PARAMETER’s “VirtualCenter.AutoManagedIPV4”:
VCDB=# select * from vpx_parameter where name = ‘VirtualCenter.AutoManagedIPV4’;
6. Change this to the correct value, and check the value again:
VCDB=# update vpx_parameter set value = ‘18.104.22.168’ where name = ‘VirtualCenter.AutoManagedIPV4’; VCDB=# select * from vpx_parameter where name = ‘VirtualCenter.AutoManagedIPV4’;
7. Check the value for the “management_ip” for all hosts in the vpx_host table:
VCDB=# select management_ip,dns_name from vpx_host;
8. Change this value to “NULL” and check the value again:
VCDB=# update vpx_host set management_ip = NULL where management_ip IS NOT NULL; VCDB=# select management_ip,dns_name from vpx_host;
9. Exit the database
10. Start vCenter Server services
service-control –start vmware-vpxd