I have a dedicated server with Ubuntu 13.10
installed and a basic installation with Virtualbox
and phpvirtualbox
to manage the guest OSs on it. I have two IP addresses pointing to the server and I would like to use one of them purely for a virtual OS I have with Ubuntu 12.04
on it.
This means that every port etc. would pass through the host server and be forwarded straight on to this guest OS.
I have looked at the different network methods on VirtualBox but none seem to be for me.
If I use NAT and port forwarding I can set the guest PC to only register calls to those ports through that 2nd IP which is great. However I cant use any standard ports that already are in use on the host PC like SSH or 80 as the host PC uses them on both IPs
How can I get the host OS to just pass everything through to a specific guest OS for a specific IP?
Have I done this wrong and I need to use a different hosting type?
EDIT:
From research and comments it seems bridging should be the way forward but again i am stuck, here is my /etc/network/interfaces file..
# Loopback device:
auto lo
iface lo inet loopback
# device: eth0
auto eth0
iface eth0 inet static
address 1.2.3.4
broadcast 1.2.3.5
netmask 255.255.255.200
gateway 1.2.3.1
# default route to access subnet
up route add -net 1.2.3.6 netmask 255.255.255.220 gw 1.2.3.1 eth0
iface eth0 inet6 static
address 2a01:4f8:161:9442::2
netmask 64
gateway fe80::1
#create bridge using additional IP
auto br1
iface br1 inet static
address 2.3.4.5
netmask 255.255.255.220
gateway 2.3.4.1
broadcast 2.3.4.7
bridge_ports br1 vbox0 vbox1
The server is a Hetzner EX with an additional IP thats on the same MAC address (i can get a different MAC from them if needs be?)
With the above settings i set my Win7 guest OS to be bridged to br1 and set the ip in windows to be static with the same settings i.e.
address 2.3.4.5
netmask 255.255.255.220
gateway 2.3.4.1
But it couldnt pick up a network
Lastly i have added to /etc/vbox/interfaces:
vbox0 vbox br1
vbox1 vbox br1