3

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 192.168.0.10 and with hostname PC01
    2. Run a second copy of virtual machine #1 with ip 192.168.0.60 and with hostname PC28

Thanks

Gerald Schneider
  • 23,274
  • 8
  • 57
  • 89
David
  • 103
  • 1
  • 3

2 Answers2

0

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

Joost Verdaasdonk
  • 481
  • 1
  • 10
  • 24
0

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.

tacos_tacos_tacos
  • 3,250
  • 18
  • 63
  • 100