Changing ESX Hostname and IP
My company had some new techs that came in once and built three ESX servers at three sites. Though we informed them of our naming conventions, one site had a server named improperly and another site was setup in a lab rather than the DC.
So we were faced with re-configuring the IP on one ESX server, and changing the hostname on another. I thought it would be good for some of the newbies to know how to do this.
Change ESX Hostname
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
Then you will have to restart the ESX Server or the appache service itself, and the network service.
Change ESX IP Host
The IP-address is stored in;
/etc/sysconfig/network-scripts/ifcfg-eth0
If your network changed and you have a new default getway, you also need to change this file:
/etc/sysconfig/network
After editing the files you can activate the changes by restarting the network with this command:
/etc/init.d/network restart

