Page 1 of 1

Networking between two Virtual Machines with Virtualbox

Posted: 16. Jun 2009, 19:44
by rambo
Good evening,

I've two virtual machines on each of which is installed Linux Mint.
The VMs are realized through VirtualBox, installed on Windows Vista.
I've put the two virtual machines in a network in this way: I added a second host-only network interface to the first machine (which works as a router) and I set one host-only network interface for the other machine.
The IP of the NAT interface of the first machine is 10.0.2.15.
The problem is that the IP addresses assigned to the other interfaces are not the same after every boot of both the machines: in fact sometimes the second interface of the first machine has IP 192.168.56.102 and the interface of the second machine has IP 192.168.56.103, sometimes viceversa.

Please help me

Thank You

Best Regards

Giacomo Odoardi

Re: Networking between two Virtual Machines with Virtualbox

Posted: 16. Jun 2009, 20:16
by Perryg
Is there a reason why you cannot use Bridged networking for this? If not that would be the easiest way to make it all come together for you. Also if you want these VM's to have the same IP address each time you need to setup static addresses instead of dynamic ones inside the guests.

Re: Networking between two Virtual Machines with Virtualbox

Posted: 16. Jun 2009, 20:26
by rambo
And how do I setup static address for a network interface?

Thank You

Best Regards

Giacomo Odoardi

Re: Networking between two Virtual Machines with Virtualbox

Posted: 16. Jun 2009, 20:51
by Perryg
From the network manager inside linux mint. Change it from DHCP to manual and then set the address, subnet, gateway, and dns.

Re: Networking between two Virtual Machines with Virtualbox

Posted: 16. Jun 2009, 21:30
by rambo
Yes I found it excuse me but how do I set the gateways for each interface on each machine?

Please help me

Thank You

Best Regards

Giacomo Odoardi

Re: Networking between two Virtual Machines with Virtualbox

Posted: 16. Jun 2009, 21:33
by Perryg
Swing on over to the Linux mint forums my friend. http://forums.linuxmint.com/?PHPSESSID= ... 4c88b1cd57 You need to learn how to do these things so you can pass your test. Otherwise other people will have done the work for you and you will not have learned what you were supposed to. Also this is based off Ubuntu from what I read and should be close enough to get the tutorials from them https://help.ubuntu.com/