Skip to main content

Virtual Box Server-Client (Ubuntu Server 16.04.1 LTS)

Requirements:

1. Oracle VM VirtualBox Manager
2. Ubuntu Server 16.04.1 LTS
3. Putty
4. Browser

Networking :

IP VirtualBox    192.168.2.2
DHCP VirtualBox  192.168.2.3
Gateway          192.168.2.1

IP Server Static        192.168.2.4
IP Guest (Client) Dhcp  192.168.2.5 - 192.168.2.15


Setting Preferences Network on VirtualBox:


Setting Network on Virtual Machines (ubuntu-server):


Use Bridged Adapter for allow Internet Connection and must already connected if you don't have Internet Connection change to Host-only Adapter

Ubuntu Server 16.04.1 LTS configuration :

Login to root

sudo su -

Open Network Interface (with nano) :

nano /etc/network/interfaces

Change dhcp to static :

auto enp0s3
iface enp0s3 inet static
    address 192.168.2.4
    netmask 255.255.255.0
    gateway 192.168.2.1
    network 192.168.2.0
    broadcast 192.168.2.255
    dns-nameservers 8.8.8.8 8.8.4.4
    dns-search whatever.com

Save configuration (with nano) :

 ctrl + o (overwrite)
 ctrl + x (exit)

Restart Networking :

/etc/init.d/networking restart

Testing on Guest (Client) with Browser and Putty :


Apache and SSH connection already installed on Ubutu Server 16.04.1 LTS

Comments