Networking Between Guest O/S on mac

Discussions related to using VirtualBox on Mac OS X hosts.

Networking Between Guest O/S on mac

Postby seanbm » 21. Feb 2009, 12:58

I am trying to set up 2 - 3 virtual machines on my mac. The need to have networking capabilities to talk to each other and to the main OS... I have been fiddling around for 3-4 days with little success.

so what i am trying to do is to demonstrate a multi tiered system across virtual machines..

MAC host - runs browser
VM 1 (windows XP) runs a WWW server (main application server)
VM 2 (windows XP) runs a WWW server (simulation of a web service)
VM 3 (windows XP) runs the Database server

idea is to get the browser to access a WWW application on VM1 which needs to access a web service on VM2 which needs to access a database on VM3..

Can anyone help me get the networking going...

Thanks in advance
Sean
seanbm
 
Posts: 2
Joined: 21. Feb 2009, 12:54

Postby baf » 21. Feb 2009, 13:13

One way:
VM1 has two network cards one set to nat other one to internal networking
VM2,3 internal networking

the internal net has to have exactly the same name in all machines.
You give each of those interfaces a static address in a private range
example 192.168.0.X mask 255.255.255.0

In virtualbox you set portforwarding so you can reach vm1:s webserver from the your browser.

Nat cat be replaced by HIF you could then drop the portforwrding. But it has to be connected to a real net.
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
baf
Volunteer
 
Posts: 829
Joined: 27. Sep 2008, 06:18
Location: Luleå or Skellefteå, Sweden
Primary OS: Mac OS X Leopard
VBox Version: PUEL
Guest OSses: linux,xp,win7

Postby seanbm » 23. Feb 2009, 07:03

Thanks fro that... UI actually had evertyhing set up right... except...

WINDOWS FIREWALL of all things was blocking the communication
seanbm
 
Posts: 2
Joined: 21. Feb 2009, 12:54


Return to VirtualBox on Mac OS X Hosts

Who is online

Users browsing this forum: No registered users and 6 guests