Development network with Win7 host and BSD guests

This is for discussing general topics about how to use VirtualBox.
Post Reply
Toktik
Posts: 1
Joined: 21. Apr 2012, 02:01

Development network with Win7 host and BSD guests

Post by Toktik »

Hi,

I want to setup network with 3 BSD guests to develop and test my "scalable" webapp. The problem currently I stuck on - misconfigured network.

I have fiber optic internet and ONT. My host computer is connected to him directly. I have 3 Guest OS's with Bridged Adapter attached to my physical ethernet interface. Currently I get dynamic public addresses for each guest, therefore I have 3 "problems".
1. I know that someday my ISP will limit my IP addresses count.
2. I dont want to be these hosts public
3. I want static addresses (because each time I need to reconfigure my app incase IP changed) => it should be local.

What I should do? How can I make virtual network and have access to internet from guests and Host<->Guests, Guest<->Guest access?

Thanks!
BillG
Volunteer
Posts: 5106
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: Development network with Win7 host and BSD guests

Post by BillG »

The only way for the guests to have direct Internet access (and be accessible from the Internet) is for them to have a public IP (ie the current setup you have). You could have the guests and the host in the same network using the host only network but the guests would not have Internet access (unless you also gave them a second NIC configured as NAT).

Normally I would set up the vms on an internal network and use an additional vm as a router between this network and the physical network, as you would for a development network on physical machines. The internal network behaves just like a switch/hub. What networks the vms could access would depend on how you configured your router vm.
Bill
Post Reply