Knowledge Base

The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides
 
Search the VMware Knowledge Base (KB)   View by Article ID
 

Changing the Host Name of a Machine Running ESX Server 2.x and below

Details

How do I change the host name of a machine running ESX Server?

Solution

To change the host name of a machine running ESX Server, modify the following files:

  • /etc/hosts
  • /etc/sysconfig/network
  • /usr/lib/vmware-mui/apache/conf/httpd.conf
When editing the hosts file, include the fully qualified domain name (FQDN). For example:

ip.address.of.server host.domain.com host

Note the order of the terms in the example above. If the FQDN and the alias are reversed, the remote console parameters use the alias only.

In the
httpd.conf file, change the ServerName
configuration setting to reflect the new FQDN. For example:

ServerName host.domain.com
 
After editing the files listed above, run the hostname command with the new FQDN to have the name change take effect without a reboot. For example:

hostname host.domain.com
 

Keywords

861

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.

Feedback


Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.
What can we do to improve this information? (4000 or fewer characters)
Actions
KB: