Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My question is simple but I am not sure if it is possible :

Is there a way to specify a custom IP address AND a different hostname before I boot a virtual machine from VMWare Workstation ? (Win 7 or Win XP guest OS)

Example :

  • Virtual Machine #1 is running Windows XP

    1. Run a copy of virtual machine #1 with ip and with hostname PC01
    2. Run a second copy of virtual machine #1 with ip and with hostname PC28


share|improve this question
As far as I know you can't do this in VCenter. Not sure about Workstation. – smcg Jun 14 '12 at 18:33

Unfortunately not the IP address is stored in the OS only VMWare doesn't provide this. The only network-related stuff you'll find stored in the *.vmx file is the Mac address.

Good luck

share|improve this answer
Your question was also about hostname this is also only stored in the OS en not he config. (missed that the first time) – Joost Verdaasdonk Jun 14 '12 at 18:44

In my experience you can either 1) disconnect the network adapters, boot with VMWare Console, and re-assign; 2) create a script that can be invoked by bootloader or in early OS boot process that can rewrite the values of hostname and /etc/sysconfig/network.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.