VMware Cloud Community
paradoxxaz
Enthusiast
Enthusiast
Jump to solution

Server Rename

Hey guys,

During the rebuild of my esx server, and before finding where the DNS info is, I had to add the host to the VIC by IP.. is there any easy way to rename this box within the VIC?

Thanks ahead of time

Reply
0 Kudos
1 Solution

Accepted Solutions
Troy_Clavell
Immortal
Immortal
Jump to solution

if you only added the host into the cluster using the IP instead of the FQDN, simple disconnect and remove the host. Then "add host" back as FQDN.

View solution in original post

Reply
0 Kudos
4 Replies
AndreTheGiant
Immortal
Immortal
Jump to solution

ESX / Configuration / DNS and routing.

Change name, then reboot.

Remember to change the name also in your DNS server.

Andre

**if you found this or any other answer useful please consider allocating points for helpful or correct answers

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
Reply
0 Kudos
bluebull2rhyme
Enthusiast
Enthusiast
Jump to solution

These are the steps that needs to be edited for changing the server name

Edit Files:

  • - Change to the etc folder

  • o Cd /etc

  • - Edit the Hosts file:

  • o Nano -w hosts

  • o Change the server name

  • o Save the file (CTL + O)

  • o Exit the nano editor (CTL + X)

  • - Change to the sysconfig folder:

  • o Cd /etc/sysconfig

  • - Edit the network file:

  • o Nano -w network

  • o Change the server name

  • o Save the file (CTL + O)

  • o Exit the nano editor (CTL + X)

  • - Change to the Apache Config folder:

  • o Cd /usr/lib/vmware-mui/apache/config

  • - Edit the httpd.conf file:

  • o Nano -w httpd.conf

  • o Change the ServerName configuration setting to have the new server name

  • o Save the file (CTL + O)

  • o Exit the nano editor (CTL + X)

Change the Server Name (with hostname utility):

  • - hostname -v <newServerName>

Restart Services:

  • - Restart the network service:

  • o Service network restart

  • - Restart the MUI:

  • o Get a new certificate for the MUI:

  • § Vmware-config-mui.pl

  • o Restart the MUI:

  • § Service httpd.vmware restart

  • - Restart the ServerD or CCAgent process( one or the other exists):

  • o Get the PID for the CCAgent or ServerD

  • § Ps -ef (command lists processes)

  • § Look for the CCSgent or ServerD process and make note of the PID for the process that is present

  • o Kill the process to force it to restart:

  • § Kill <PID>

  • o Check to be sure the process restarted:

  • § Wait about 10 to 20 seconds for the service to restart

  • § Ps -ef

  • § Look to be sure that the process a different PID now

Testing:

  • - Check the MUI:

  • o Open a browser

  • o Put in the ESX host console IP address

  • o Logon as root account

  • o Check to be sure the MUI has the correct name at the top

  • - Check the console:

  • o Close console session or PUTTY session

  • o Reopen the console or PUTTY to the server

  • o Logon as root account

  • o Check to be sure the console has the correct server name listed

If you find this helpfull or correct award me points

If you find this useful,award me Helpful or Correct answer
Reply
0 Kudos
Troy_Clavell
Immortal
Immortal
Jump to solution

if you only added the host into the cluster using the IP instead of the FQDN, simple disconnect and remove the host. Then "add host" back as FQDN.

Reply
0 Kudos
kcollo
Contributor
Contributor
Jump to solution

Troy is right. The original question suggests that they are just trying to change the ESX host in Virtual Center from the IP to FQDN. I would just enter the ESX host to be renamed into maintenance mode. Evacuate running VMs if necessary. Once that is done, right click on the ESX server in VC and tell it to remove. Next just go back through adding a new esx server to virtual center and use the FQDN (hostname) instead of the IP.

Kevin Goodman

kevin@colovirt.com

http://blog.colovirt.com

Reply
0 Kudos