Time for action – communicating between VMs only
In this exercise, I'll show you how to isolate your virtual machines from the rest of the PCs in your LAN or from inbound Internet connections to create a private network for your VM's only. I'm going to use a Windows XP host, but you can use any host allowed by VirtualBox, like Ubuntu Linux.
Note
Just be sure to adjust the command in step 4 to suit your operating system.
Select your UbuntuVB machine on VirtualBox's main screen, and click on the Settings button to go to the UbuntuVB – Settings page.
Go to the Network category, and then select the
Internal Network
mode on the Attached to list box:The Name field will show the default
intnet
name for your internal network. Replace that value withmyintnet
, and click on OK to continue:Open a command prompt or a terminal window on your host PC. Then type the following command (don't forget to press Enter after typing it):
"C:\Program Files\Sun\VirtualBox\VBoxManage.exe" dhcpserver add --netname...