I want to access a virtual Windows XP machine from the Ubuntu 11.04 host it is running on. Because the virtual machine gets a new IP every time it is rebooted, I would like to access it by a host name. However, after assigning the name “selenium-xp” in the System Properties -> Computer Name section, I’m still unable to ping it from my Linux host …
selenium@selenium-chi:~$ ping selenium-xp
ping: unknown host selenium-xp
Is there a way to assign a name to the virtual machine so that I can always access it from its Linux host?
Thanks, – Dave
ps – Because the IP changes, creating an /etc/hosts entry requires continual maintenance, and I want to go down the maintenance-free route.
What I did with my VirtualBox install, was to add a second network adapter, which is set to ‘host-only’. The IP for this adapter doesn’t change, so you can then set it in your hosts file and never have to worry about it changing.