Setup virtualbox network


I already setup an ubuntu 14.04 guest in virtualbox, then clone two more of it.


Here I will use NAT mode for one interface/adapter (to connect internet) and Host-only mode for another (to setup a connect between host and guests)

To setup NAT mode just select the virtual machine > setting > network > Adapter 1 tab select NAT mode

Next we will apply Host-only mode to Adapter 2, to do that, first we have create a Host-only instance and then apply it to the virtual machine

Step1: File > Preferences > Network > Tab Host-only Networks > Add new host-only instance then edit it

vb2 vb3

With this setup we will have:
  • IP address for the host: (network mask
  • DHCP-Server Address:
  • DHCP-Server Range: -
  • The IP range which you can manually set for a guest systems: -

Step2: Now you can use that host-only instance for your virtualbox

From virtualbox select the virtual machine then click setting > choose Network


Start the virtual machine and set it an IP address


Now we can ping from host machine to this virtualbox

$ ping
PING ( 56(84) bytes of data.
64 bytes from icmp_seq=1 ttl=64 time=1.91 ms
64 bytes from icmp_seq=2 ttl=64 time=0.553 ms

Apply same to other virtual machine and add it to gnome-connection-manager


Change ubuntu to text mode (run without gui)


Change (edit) in /etc/default/grub




Now you must update the grub configs:

sudo update-grub

And its done! After reboot, to start the gui just login and type: