Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I learned how to clone VirtualBox VMs with this article:

OK, in the newest version of VirtualBox the VBoxManage command is clonehd rather than clonevdi, but it works fine. Now I have two Windows XPs running. The problem is:

Each of the VMs seems to have its own private little LAN with the host machine. Both of them have IP, and see the host as

I'd like to have both in the same LAN, getting different IPs and being able to see one another. How can I do that?

share|improve this question

closed as off-topic by masegaloeh, Jenny D, mdpc, Katherine Villyard, Scott Pack Apr 16 '15 at 22:56

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions should demonstrate reasonable business information technology management practices. Questions that relate to unsupported hardware or software platforms or unmaintained environments may not be suitable for Server Fault - see the help center." – masegaloeh, Jenny D, mdpc, Katherine Villyard, Scott Pack
If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 2 down vote accepted

I did it myself. The answer was to configure the VMs' NICs as "Host-only" and enable the DHCP server. Caveats:

1) VirtualBox's DHCP server is dumb and doesn't know how to give out gateway and nameserver addresses, so I had to configure that as static addresses within the VMs;
2) Windows XP's firewall has a draconian default setting so the machines can't even ping each other. You have to go to the firewall configuration and enable things.

share|improve this answer

You'll need to use the bridging network interface to join the virtual machines to your real LAN. There's multiple guides on the internet if you need assistance with this.

share|improve this answer
I would like them to stay in the virtual LAN, but in the SAME virtual LAN. The network people here would frown at so many bogus MACS emitting from my cable. – JCCyC Jun 24 '09 at 22:31

I have my set of virtualized windows with a AD server and a few clients in a virtual network. I use VirtualBox and run Vyatta, an open source routing software, assigning a network address of for the virtual network (and for my physical network)

The Vyatta virtualized router has two interfaces, one configured as bridged, and another internal. All the Windows VM connect to the internal virtualized interface, and internet access is provided through the router connecting the two networks.

In essence, I have:

Modem -> Hardware router -> Virtualized router -> Windows testing lab.

Extremely useful for keeping the lab network isolated without any stuff leaking over to the actual production network.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.