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