two virtualbox (internal-network) setup
David Fletcher
dave at thefletchers.net
Thu Mar 12 15:40:36 UTC 2015
On Thu, 2015-03-12 at 15:01 +0000, AMER wrote:
> hello,
>
> Dear All
>
> I have two virtualboxes I want to setup a network between them, my
> host is Ubuntu 12.04
> I tried to do the following:
> assign one adapter of VM1 to net0
> with ip 192.168.1.1
> assign one adapter of VM2 to net0
> with ip 192.168.1.1
>
> I saw in the internet a comments I should configure the
> internal-network using VboxManager
> I do not how to solve this problem and how to use Vboxmanager in
> Ubuntu
For starters, they'll need to be different addresses that also don't
clash with anything else on your network.
With VirtualBox, I find that it works well for me if I use the "Bridged"
network setting, which allows your virtual machine to connect to your
physical LAN. AFAICT the NAT setting appears to set up a virtual LAN
inside the VM which most probably isn't what you want.
BTW why are you using Ubuntu 12.04? Why not use the LTS 14.04 version?
Fixing the IP address in the /etc/network/interfaces file is easy:-
# The primary network interface
auto em1
#iface em1 inet dhcp
#Changes to:-
iface em1 inet static
address 192.168.2.2
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255
gateway 192.168.2.1
dns-nameservers 192.168.2.1 8.8.8.8
This is what is in my 14.04 home server.
Dave
--
Lisa Simpson:- "They must have programmed it to eliminate the
competition."
Bart Simpson:- "You mean like Microsoft?"
More information about the ubuntu-users
mailing list