Using VirutalBox as a domain server

This is for discussing general topics about how to use VirtualBox.
Post Reply
Entegy
Posts: 160
Joined: 6. Sep 2008, 23:59
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 x64, XP SP3, Server 2008 R2, Fedora 13 x86/x64
Location: Montreal, Quebec, Canada

Using VirutalBox as a domain server

Post by Entegy »

For my own uses and testing purpose, I've been trying to set up a domain between my virtual machines. The Domain controller is running Server 2008 R2. However, the included documentation with VirtualBox doesn't help me very much in choosing network configurations. I don't care if this domain is not accessible from "real" machines, as long as it's accessible by other VirtualBox VMs on the same machine.

At the very least, with this requisites, can someone help me choose what network settings my VMs should have?

The host machine is running Windows 7 64-bit.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Using VirutalBox as a domain server

Post by Perryg »

While you can achieve this is a few different ways, I set mine up using Bridged to properly emulate a real network. Which has the added benefit of being the easiest as well if you have a router.
Entegy
Posts: 160
Joined: 6. Sep 2008, 23:59
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 x64, XP SP3, Server 2008 R2, Fedora 13 x86/x64
Location: Montreal, Quebec, Canada

Re: Using VirutalBox as a domain server

Post by Entegy »

I've had success setting up using host-only right now. Are you telling me that using Bridged will put the VMs' IPs on my router's network? And will I simply have to reconfigure the DNS address on the "workstations" to the "server's" new IP from the router?
baf
Volunteer
Posts: 829
Joined: 27. Sep 2008, 06:18
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: linux,xp,win7
Location: Luleå or Skellefteå, Sweden

Re: Using VirutalBox as a domain server

Post by baf »

Correct. Downside: wont work between guest/host unless network is connected. Not so good if it is a notebook.
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
Entegy
Posts: 160
Joined: 6. Sep 2008, 23:59
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 x64, XP SP3, Server 2008 R2, Fedora 13 x86/x64
Location: Montreal, Quebec, Canada

Re: Using VirutalBox as a domain server

Post by Entegy »

What you mean by that is, say this machine was a laptop (but it's a desktop I built :D) and I wasn't connected to that particular router, the domain would fail, right? I do have a router that all the computers in my house connect to, so no computer is connected directly to the modem.
baf
Volunteer
Posts: 829
Joined: 27. Sep 2008, 06:18
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: linux,xp,win7
Location: Luleå or Skellefteå, Sweden

Re: Using VirutalBox as a domain server

Post by baf »

You understood correctly. If you had been using a notebook then I would have suggested using two network cards in the guest, one "host only" and one nat.
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
korona
Posts: 8
Joined: 25. Jun 2009, 17:32
Primary OS: MS Windows Vista
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 9.04, Ubuntu Server 9.04, WinXP SP3, Win7 RC1

Re: Using VirutalBox as a domain server

Post by korona »

Internal networking should work for you. If you want the VMs to be able to connect to the internet, setup a router-VM that connects your internal network to a NAT/Bridged network.
Entegy
Posts: 160
Joined: 6. Sep 2008, 23:59
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 x64, XP SP3, Server 2008 R2, Fedora 13 x86/x64
Location: Montreal, Quebec, Canada

Re: Using VirutalBox as a domain server

Post by Entegy »

Bridged is working wonders for me. :)

But now I have another question. On my computer, I can't seem to run more than 2 virtual machines at a time. If I turn on a third, VirtualBox will freeze up soon after and get stuck in memory until I restart the computer. Any ideas?

CPU: Q6600 @ 3.1Hz with virtualization on.
RAM: 8GB DDR2
OS: Windows 7 RC x64
GPU: GTX 260 Core 216 896MB

My thought it has something to do with CPU virutalization features, as I know I'm not hitting my RAM/GPU limits.
Post Reply