Isolating three VM guests, but give internet

This is for discussing general topics about how to use VirtualBox.
Post Reply
Tory
Posts: 2
Joined: 7. Oct 2013, 17:19

Isolating three VM guests, but give internet

Post by Tory »

I'm trying to set up a testing environment for servers in Virtualbox. I'll run DHCP, DNS, AD all inside virtualbox. This environment has to be completely isolated from production not to interrupt, but to have internet access. Our LAN is single subnet 10.0.1.0 and has gateway set up to internet.

HOw do I accomplish this?
martyscholes
Posts: 202
Joined: 11. Sep 2011, 00:24
Primary OS: Solaris
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win 7, Ubuntu, Win XP, Vista, Win 8, Mint, Pear, Several Linux Virtual Appliances

Re: Isolating three VM guests, but give internet

Post by martyscholes »

Tory wrote:Our LAN is single subnet
That's going to be the challenge. If you want them separate, then they need to be on separate LANs (or VLANs) with a router connecting each LAN to the internet.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Isolating three VM guests, but give internet

Post by Perryg »

The easiest and for most the best way to use and test Windows domains in VirtualBox
Setup Windows Domain in VirtualBox
Tory
Posts: 2
Joined: 7. Oct 2013, 17:19

Re: Isolating three VM guests, but give internet

Post by Tory »

actually I'm testing with mixed environment with Ubuntu and Windows AD.
So there will be one Windows AD server, one Windows 7, one Ubuntu. When I installed Ubuntu, it picks up network type as 'NAT' and Network card selected as one installed on host, then assigns IP address automatically 10.0.2.xxx(I don't know where this IP is coming, must be somewhere from VirtualBox internally). Say I want to set up an isolated network, if then, what type of network card do I choose 'internal network'? Also, where is DHCP server running and how IP address is distributed to this isoalted network? If it's isolated, it may not get internet connection through our gateway in our LAN. How can I give only internet connection to this isolated network? I read the second reply, it seems like I need to set up a host(??) as a router (ICS) type somewhere? Host is Windows 7
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Isolating three VM guests, but give internet

Post by Perryg »

There is no real challenge if you know how to do domains in Windows. Adding Linux is not that big an issue either, you just need to add the proper package to allow windows domain access. As for the host routing that is not at all what the link suggests. You use another guest (stripped down XP or pFsence) to provide the simulated routing. Use VBox NAT on the WAN side and Internal on the LAN side. Adapters are set by default when you install the guest and there is no need to change them.

Hint: all DHCP, DNS, Etc. comes from your AD. just assign a different private address to the test LAN.
Post Reply