[ale] vmware changing hostname thru scripts

JD jdp at algoloma.com
Tue May 24 12:42:58 EDT 2011


On 05/24/2011 09:23 AM, Narahari 'n' Savitha wrote:
> Friends:
> 
> Is there a way thru sudo to change the hostname of a ubuntu session
> running inside vmware ?
> 
> I am rolling out vmware files to users and would like for them to be
> able to run the script and the host name changes.
> 
> -Narahari

There's the hostname that the client-VM calls itself and then there's
the host-name that VMware (which one are you using?) calls the entire VM
setup.

Inside each client VM, you need to change the hostname in at least 3
places in Ubuntu:
1) hostname newname
2) vi /etc/hostname
3) vi /etc/hosts

You may need to change it on other servers and in DNS too. Some
applications and even licenses can be tied to the hostname as well.  MTA
programs come to mind, assuming you didn't just use "mailhost"

The easiest way to convince VMware to call a client VM something else is
just to right click on each VM and rename it in the vSphere client.  Be
certain to change your backup tools/scripts to use the new name.

Whenever you ask for VMware help, it would really be helpful to us if
you specified which of the **6** different VMware virtualization tools
you are using.  Server, ESX, ESXi, Workstation, Player are commonly
known, yet all different programs from VMware.


More information about the Ale mailing list