VMware Cloud Community
CyberNils
Hot Shot
Hot Shot
Jump to solution

Change IP on vCenter 6.7 appliance

Hi,

I changed the IP on two vCenter 6.7 U3 appliances today. One worked flawlessly, while the other one caused the ESXi hosts to have intermittent connections warnings. I found that the old IP was still present for ServerIp in vpxa.cfg on each ESXi host, but every time I change it to the new address it keeps changing back.

I can manage the hosts just fine, so it seems like its only the heartbeats who are looking for the old address.

There is also an advanced setting on vCenter which points to the old IP, but I cannot change it: VirtualCenter.AutoManagedIPV4

Thanks for any help.



Nils Kristiansen
https://cybernils.net/
1 Solution

Accepted Solutions
Vijay2027
Expert
Expert
Jump to solution

Connect to VCDB:

/opt/vmware/vpostgres/current/bin/psql -d VCDB -U postgres

Execute the below query and look for VirtualCenter.AutoManagedIPV4:

select * from vpx_parameter;

View solution in original post

Reply
0 Kudos
9 Replies
Vijay2027
Expert
Expert
Jump to solution

Did you try rebooting vCSA??

We can try modifying the entry VirtualCenter.AutoManagedIPV4 in VCDB.

Reply
0 Kudos
CyberNils
Hot Shot
Hot Shot
Jump to solution

I tried rebooting the VCSA yes. I also tried to change the IP a second time, but same result.

How can we modify the entry VirtualCenter.AutoManagedIPV4 in VCDB? I am also considering calling GSS tomorrow.

Thanks.



Nils Kristiansen
https://cybernils.net/
Reply
0 Kudos
Vijay2027
Expert
Expert
Jump to solution

Are there any references of old IP in /etc/hosts and /etc/systemd/network/10-eth0.network

You will have to look for entries under vpx_parameter table. Let GSS make these changes for you.

Reply
0 Kudos
Vijay2027
Expert
Expert
Jump to solution

Connect to VCDB:

/opt/vmware/vpostgres/current/bin/psql -d VCDB -U postgres

Execute the below query and look for VirtualCenter.AutoManagedIPV4:

select * from vpx_parameter;

Reply
0 Kudos
RajeevVCP4
Expert
Expert
Jump to solution

Did you assign new IP to VCSA in DNS ( forward/reverse lookup) Server

Same thing you need to do in /etc/resolve.config file

Rajeev Chauhan
VCIX-DCV6.5/VSAN/VXRAIL
Please mark help full or correct if my answer is use full for you
Reply
0 Kudos
CyberNils
Hot Shot
Hot Shot
Jump to solution

Yes, we updated and verified DNS before rebooting the VCSA.

We checked /etc/resolve.config and /etc/hosts but there were no references to the old address.



Nils Kristiansen
https://cybernils.net/
Reply
0 Kudos
NathanosBlightc
Commander
Commander
Jump to solution

I explained how to connect to the VCSA database (PostgreSQL) on the following link. I hope it can help you to find the related table:

https://virtualundercity.blogspot.com/2018/03/connect-manage-vcsa-database-postgreql.html

Please mark my comment as the Correct Answer if this solution resolved your problem
Reply
0 Kudos
RajeevVCP4
Expert
Expert
Jump to solution

then give me vpxd logs

Rajeev Chauhan
VCIX-DCV6.5/VSAN/VXRAIL
Please mark help full or correct if my answer is use full for you
Reply
0 Kudos
CyberNils
Hot Shot
Hot Shot
Jump to solution

Solved it by updating VirtualCenter.AutoManagedIPV4 in the vCenter DB. Thanks for all Your help.



Nils Kristiansen
https://cybernils.net/
Reply
0 Kudos