VMware Cloud Community
John_Cooper
Contributor
Contributor

Changing ESX host name

OK, another question about changing names of the ESX 3.0.1 host, if I got it right the first time I wouldn't have this problem Smiley Happy

I have changed the naming in my ESX host via Putty in all locations I have read about here on the fourm except in Apache "can"t find it", I have also changed the DNS settings in the VI client, I have not rebooted the system and I am not sure if that will help.

Any ideas what I am missing, everything looks good except the name.

Reply
0 Kudos
8 Replies
GCR
Hot Shot
Hot Shot

Hello,

You should do those changes through the VI Client. And if you will do it that way, only takes effect after a reboot. So I sugest you to reboot your server, see if it boots as you want, if not change it properly using VI client and reboot it again.

If you don't know how to do it, Service Console is not a standard RedHat Linux, always use VI Client.

Apache server is under /usr directory.

Cheers,

Gonçalo Rosa

Reply
0 Kudos
bertdb
Virtuoso
Virtuoso

apache config is in /etc/httpd/conf/httpd.conf

Is there something that doesn't work ? After changing things on the service console manually, you should probably restart the hostd and related daemons:

service mgmt-vmware restart

Reply
0 Kudos
John_Cooper
Contributor
Contributor

Thanks, I will try this, I did a reboot but the naming didn't change but then part was done in putty part in VI client, will try again.

Reply
0 Kudos
gmarcil
Enthusiast
Enthusiast

To RENAME an ESX server

_____________________

1. Update the following files with the correct server name

/etc/hosts

/etc/sysconfig/network

/etc/vmware/esx.conf

/etc/httpd/conf/httpd.conf

2. Update the hostname as follows (using Mateo classroom kit as an example):

\# hostname mateo0x

3. Restart the network

\# service network restart

4. Restart the hostd daemon so that the VI client will get the updated hostname

\# service mgmt-vmware restart

Cheers,

Gilles

Reply
0 Kudos
John_Cooper
Contributor
Contributor

No luck, checked all the seeting except /etc/httpd/conf/httpd.conf no file by that name, everything seems right but I can't connect to the new name, can't ping, and its still the old name in VI Client the new name does show up in the root of the system.

Reply
0 Kudos
gmarcil
Enthusiast
Enthusiast

Hi John,

Oups... The file /etc/httpd/conf/httpd.conf is no longer used with V3.0. This was applicable to ESX 2.x to support the MUI but now ESX3.0 uses the tomcat service for web access.

Reply
0 Kudos
mabedfo
Contributor
Contributor

So the '/etc/httpd/conf/httpd.conf' can be left alone for ESX 3?

for ESX 3 the rest of the above info is correct yes.

Reply
0 Kudos
gmarcil
Enthusiast
Enthusiast

Yes the rest of procedure is OK. You should then be able then connect a VI client to the ESX server and observe the updated servername. However if the VI client is connected to the Virtual Center Server, then you will also need to remove/add the new servername.

Cheers,

Gilles

Reply
0 Kudos