Virtualbox + let 2 machines see each other

Soldato
Joined
1 Feb 2006
Posts
8,188
I am trying to set up a number of Virtualbox machines to use in a network for installing SharePoint for testing purposes. I want to use a separate Domain Controller box which I have set up already. I didn't select an option for a static ip address. Do I need to have a static ip for DC box?

Now I have another Server 2008 box which I want to add to the domain. Virtualbox doesn't appear to allow me to let the two machines talk. I currently am connected to the internet via a USB dongle and have both the VMs set to use NAT.

How can I go about letting the VMs talk to each other?

Do I need some kind of virtual LAN?
 
A DC should always have a static IP, but it's not a requirement.

I always set the VMs to 'bridge' instead of NAT and it works ok for me.
 
I would have set a static IP if it wasn't virtualised but I thought it wouldn't matter. If using a static IP what should i be using for my default gateway? Not sure what ips to enter to be honest.

If I set up the VMs both to bridge, should that allow me to connect the 2nd VM to the domain?
 
if you set the networking to "bridged", you basically forget they are virtual. treat them exactly how you would a real machine on your real network because that's exactly how they will behave/appear.
 
i find it a pain trying to network vm's together using nat in virtualbox, i'd try Internal Network or if you need them to access the outside world such as internet then i'd use Bridged
 
Giving the DC a dynamic IP won't do it any harm, but whilst you're configuring the network settings you may as well stick a manual one in. It saves you checking it each time when you're troubleshooting plus you may as well get into the habit of it.

Set one of the VMs to bridged, boot up and then see if you can ping the DC. All being well you should get a response and you're good to go. Have you configured the DC as the DNS server as well?
 
Thanks guys. I set one adapter to NAT and another adapter to an internal network.

That allows me to see the domain controller but when I try to connect to domain it complains that the dns cannot resolve or something. I guess that is because I don't have a static IP on the DC?
 
Back
Top Bottom