TechHead

Cloud, Containers, Virtualization & Artificial Intelligence (AI) blog also covering Linux, Windows & Tech how-to

  • Home
  • Blog Categories
    • VMware
      • VMware “How To” Posts
      • VMware Troubleshooting
      • VMware Workstation & Fusion
      • VMware Backup & Replication
      • VMware vCloud Director
      • VMware Certification
      • VMware Horizon
      • VMware PowerCLI
      • VMware Security
      • VMware Training
      • VMware User Group & Community
      • VMware View
      • VMworld
      • VMware Useful Links
    • EMC
      • Virtual Storage Appliance (VSA)
      • vSphere VSI Plugin
    • HP
      • Proliant Servers
    • Microsoft
      • MS Windows Server
      • MS Hyper-V
      • MS Exchange
      • MS SQL Server
      • MS PowerShell
    • General Tech
    • Cloud
    • Networking
    • Iomega
    • Apple
    • Cisco
    • Linux
    • Internet & Web
    • WordPress
  • About Me
  • Home Labs
You are here: Home / VMware / How To / How to change a VMware ESX host’s name

How to change a VMware ESX host’s name

by 4 Comments

From time to time you may have a requirement to rename a VMware ESX host, although this is quite straight forward to do in ESXi via the Direct Console User Interface (DCUI) there are a few more steps involved in making this change in ESX via the service console (SC).

The following post will take you through the steps to make this host name change in ESX.

The first thing to do before going any further is to remove the ESX host (whose name you want to change) from any cluster within vCenter Server that it may be a member of.  Also, remove the ESX host from vCenter Server.

Next log into the service console using the ‘root’ account.

VMware ESX change host name 1

We now want to edit the hosts file, so type:

vi /etc/hosts

If your ESX host’s host file doesn’t contain a server name such as the example below then you will want to manually add it.

VMware ESX change host name

I am adding the IP address (fixed: 192.168.1.25) and host name (esxhost1).  It is worth noting that at this point you can also add the domain name in which the ESX host will be participating to the end of this host name.

VMware ESX Change Host Name[9]

To save the changes we want to put the VI editor into ‘Command Mode’ by pressing the ‘Esc’ key and then typing :wq (write the changes & quit).  At which point you should be returned to the command prompt in the service console.

We now want to make a change to the network config file.

VMware ESX changing the host name

To do this type the following

vi /etc/sysconfig/network

Change the ‘HOSTNAME’ to be the new name of your ESX host.  Once again, save this change by pressing the ‘Esc’ key and then typing :wq 

Changing the ESX host name

Next we want to execute the following command:

esxcfg-advcfg -s <your new ESX hostname> /Misc/HostName

Change ESX host name

 

We want to register the new ESX host name in DNS so remove the old ESX host name and enter the new DNS name and associated IP address.

Now the final step is to reboot your ESX host for the changes to be applied.  Before doing this ensure you have migrated any running VMs to another ESX host or at least power off any running VMs first.

After the ESX host has rebooted you should now add it back into vCenter Server using its new name.

Ta daaa… It’s as easy as that.  🙂

 

Technorati Tags: VMware,ESX,ESXi,vSphere,change,modify,host,name,hostname

Filed Under: How To, VMware

About

Simon is a Boston, USA, based Virtualization, Cloud & IT Technology Evangelist. He loves working in the ever-changing IT industry & spends most of his time working with Virtualization, Cloud & other Enterprise IT-based technologies.

As well as on this site, you can find him on Twitter

Comments

  1. brakerm19 says

    23 September 2010 at 6:19 pm

    esxcfg-advcfg -s newhostname.newdomain.local /Misc/HostName

    Reply
  2. How to Change My Name says

    7 February 2011 at 1:50 pm

    Wow! I’ve been searching topics related on this. Glad to finally found the site that suits it. This was my problem since last month. I agree that changing its name has a difficult process. I was surprised that you have it here detailed. My father told me to search for this because he wanted to change the VMware Host name and change it to a new DNS name.

    Reply
  3. Traveller says

    3 June 2011 at 12:44 pm

    Just one little problem. The iSCSI name does not change to reflect the new hostname. Event of you disable and re-enable it.

    Reply

Trackbacks

  1. Tweets that mention How to change a VMware ESX host’s name | TechHead.co.uk -- Topsy.com says:
    1 April 2010 at 11:55 am

    […] This post was mentioned on Twitter by TechHead.co.uk (Simo. TechHead.co.uk (Simo said: New TechHead Post: "How to change a VMware ESX host’s name" – http://tinyurl.com/yh4m47g […]

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Looking For Something?

About Me

My name is Simon Seagrave and I am a Massachusetts (ex NZ & UK) based product marketing manager. I love my work & spend most of my time working with Cloud-based technologies, including AI, containers and virtualization along with other Enterprise IT based technologies.

Awards

vExpert Badge

Recent Post Comments

  • Mo on VMware ESX – Prevented Migration due to “Device SCSI Controller is a SCSI controller engaged in bus-sharing” error
  • Simon Seagrave on Exciting New Change!
  • Alfredo on Exciting New Change!
  • Olaitan Ebenezer Tosin on [Link] Dell EMC Interactive Demos
  • sathish on Changing Hosts File – Unable to set new owner on hosts. Access is denied.

Recent Posts

  • Navigating the Future with Artificial General Intelligence (AGI): Impacts on Work, Personal Life, and Beyond
  • The 10 Most Important AI Trends for 2024
  • Tesla factory tour – help me get on one
  • Understanding Large Language Models for AI 
  • What is Generative AI?

EZ Fat Footer #1

This is Dynamik Widget Area. You can add content to this area by going to Appearance > Widgets in your WordPress Dashboard and adding new widgets to this area.

EZ Fat Footer #2

This is Dynamik Widget Area. You can add content to this area by going to Appearance > Widgets in your WordPress Dashboard and adding new widgets to this area.

Copyright © 2023 · Dynamik-Gen on Genesis Framework · WordPress · Log in