VirtualBox (Version 5.0.14 r105127 ) - Setting up Guest OS (

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
mva
Posts: 1
Joined: 5. Feb 2016, 23:37

VirtualBox (Version 5.0.14 r105127 ) - Setting up Guest OS (

Post by mva »

We had a static IP working using Virtualbox ~ prior Version 3.0 , when I updated to Version 5.0.14 r105127, it no longer works.

HOST:
I have an OS X ( El Capitan Version 10.11.3 ) HOST ( 192.198.1.150 ) running OS X Server on our office LAN.

GUEST:
The Ubuntu 14.04 Guest server is running in VirtualBox Version 5.0.14 r105127. The Oracle VM VirtualBox Extension Pack Version 5.0.14r105127 .

ORIGINAL SETUP WITH PRIOR version of VirtualBox
• The original setup involved setting up two VM Network Adapters in VirtualBox:
○ The first adapter was "NAT"
○ The second adapter was "Bridge"
• AND
○ In the VM Terminal window I used "sudo nano" to edit the file "/etc/network/interfaces"
○ The file looked like this:
§ # The loopback network interface
auto eth0
iface eth0 inet dhcp

# The Vbox First Network Interface is:
auto eth1
iface eth1 inet static
address 192.168.1.151
netmask 255.255.255.0

# The Vbox Second Network Interface is:
auto eth2
iface eth2 inet static
address 192.168.1.152
netmask 255.255.255.0


• I was able to ping 192.168.1.1 on the LAN and ping 8.8.8.8 on the internet.
• And I was able to ping 192.168.1.151 from a client on the LAN .
• After upgrading to VirtualBox Version 5.0.14 and recreating the settings above, I could not access the VM via
the static address.



Requirements:

• I need to have a static IP 192.168.1.151 for the Ubuntu server VM and it must accessible by clients on the office LAN.
○ I had the Ubuntu Gust VM set up as a Static IP 192.168.1.151 for the older version of VirtualBox.
• The Ubuntu Server must be able to access the internet via the Router ( 192.168.1.1 ) which supports the Office LAN.
• Need ssh access to Ubuntu Guest server via the Static IP 192.168.1.151 from the office LAN.
• The Ubuntu Guest server will have a Postgres Server on it, and other servers.
○ Access to the Postgres Server needs to be limited and controlled secure access.
§ I understand that using the "Bridge Mode" on the VM Network adapter may expose the Postgres DB to LAN
clients which should not have access. But I also understand that NAT mode does not work for ssh or
internet access.
§ NOT SURE IF THIS IS TRUE ???


Questions:
1. How do I set VirtualBox and the GUEST Ubuntu VM to meet all of the requirements above ?
a. Do I need a different set up with VirtualBox Version 5.0.14 ? What is it ?
2. What do I need to set up in the GUEST Ubuntu VM ? Anything ?
3. Do I need to use Bridge mode ? Or is there another way to meet the requirements AND secure the access to
the Postgres DB ?

I appreciate all suggestions.

With thanks.
Post Reply