Loading

×Sorry to interrupt
CSS Error

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

Skip to main content

Products and Accounts

Support

Knowledge

Communities

Success

Learning

My Subscriptions

Loading

Knowledge Base

VMware vCenter Server IP address change causes VMware ESX hosts to disconnect (1001493)

Last Updated: 9/20/2023Categories: How toTotal Views: 266989Language:
Chinese (Simplified)JapaneseSpanishEnglish

26 like this article

Subscribe to get an email
newsletter with new updates

26 people found this helpful Please provide article feedback:

Details

After changing the IP Address of the vCenter Server, all ESXi/ESX hosts are showing as disconnected from VMware Infrastructure/vSphere Client.

When manually reconnecting an ESXi/ESX host, it is disconnected again after a short time

Solution

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).

Method 1 - edit the vpxa configuration

Up until ESXi 7.0 Update 2e - Edit the vpxa.cfg file on ESXi:

Log in as root to the ESXi/ESX host with an SSH client. For more information, see Using Tech Support Mode in ESXi 4.1 and ESXi 5.x (1017910).

Open the vpxa.cfg file using a text editor and change the serverIp parameter to the new IP of the vCenter Server.

In ESXi 5.x up until 7.0 U2e the vpxa.cfg can be found in /etc/vmware/vpxa/vpxa.cfg.

In ESXi 4.1 and earlier the vpxa.cfg is located in /etc/opt/vmware/vpxa/

Save your changes and exit.

Restart the management agents on the ESXi/ESX. For more information, see Restarting the Management agents on an ESX Server (1003490).

Restart the VMware VirtualCenter Server service. For more information, see Stopping, starting, or restarting the vCenter Server service (1003895).

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:

Export the current vpxa configuration from the config store:

# configstorecli config current get -c esx -g services -k vpxa_solution_user_config -outfile vpxa.json

Create a backup of the file containing the current configuration:

# rm -f vpxa.json.bak; cp vpxa.json vpxa.json.bak -f

Replace the old vCenter IP address with the new one (replace <vcenter_ip> with the correct IP address):

# sed -e 's/   "server_ip".*/   "server_ip": "<vcenter_ip>",/g' -i vpxa.json

Import the changed configuration into the ESXi config store:

# configstorecli config current update -c esx -g services -k vpxa_solution_user_config -infile vpxa.json

Verify that the IP was correctly changed:

# configstorecli config current get -c esx -g services -k vpxa_solution_user_config

Restart vpxa to apply the change:

# /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) .

From the vSphere Client, right-click the ESXi/ESX host and click Disconnect.

From the vSphere Client, right-click the ESXi/ESX host and click Reconnect. If the IP is still not correct, go to step 3.

From the vSphere Client, right-click the ESXi/ESX host and click Remove. Caution: After removing the host from vCenter Server, all the performance data for the virtual machines and the performance data for the host is lost.

Reinstall the VMware vCenter Server agent. For more information, see Verifying and reinstalling the correct version of VMware VirtualCenter Server agent (1003714).

Click New > Add Host.

Enter the information used for connecting to the host.

======

If the ESXi keeps reconnecting continuously and "vpxa_solution_user_config" is reverting back to old VC IP:

# 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.

Related Information

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:

Español: Al cambiar la dirección IP de vCenter Server, se desconectan los hosts ESX (2055222)

日本語: vCenter Server の IP アドレスを変更すると、ESX ホストが切断される (2078235)

简体中文: vCenter Server IP 地址更改导致 ESX 主机断开连接 (2075539)

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
Chinese (Simplified)JapaneseSpanishEnglish

Attachments

Additional Resources

KB
•
End Of General Availability of the Free vSphere Hypervisor (ESXi 7.x and 8.x) (2107518)

Result 1 of 1

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware VirtualCenter

VMware vCenter Server

Related Versions:

VMware VirtualCenter 2.5.x

VMware VirtualCenter 2.0.x

VMware vCenter Server 7.0.x

VMware vCenter Server 6.7.x

VMware vCenter Server 6.5.x

VMware vCenter Server 6.0.x

VMware vCenter Server 5.5.x

VMware vCenter Server 5.1.x

VMware vCenter Server 5.0.x

VMware vCenter Server 4.0.x

view all

Take Our Survey

Was this article helpful?

YES

NO

Copyright © 2005-2024 Broadcom. All Rights Reserved. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.

Terms of Use

Your California Privacy Rights

Privacy

Accessibility

Cookie Settings

Support Assistant