0

How would I go about setting up VirtualBox for this kind of environment?

pic

Just like real-life servers work. Have one server that receives the outside internet connection, has all the DNS, DHCP, AD... stuff and all the client PCs connect to it. I am unable to get the server (Windows 2012) and client (Windows 7) PC connected internally.

How should I set up the adapters?

3
  • possible duplicate of How to do networking between virtual machines in VirtualBox?
    – agtoever
    Aug 7, 2014 at 11:59
  • I'd add, the image is MUCH too small to read.
    – Journeyman Geek
    Aug 7, 2014 at 12:04
  • @agtoever thanks for that topic. Pretty much everything mentioned there I've tried. And some links to the guides are dead. I tried doing ping tests to see if there is any connection between the machines, but it failed..
    – McCloud94
    Aug 7, 2014 at 13:02

1 Answer 1

1

In the Network settings for both VM's you can select the 'Internal Network' option. Mkae sure the name matches for both VM's. For the server you obviously would need two network interfaces, one connected with NAT or bridge, and the other with the 'Internal Network' setting.

If you match the internal network names, you should only have to assign IP addresses (or make your server a DHCP server) and you're good to go.

-- Turned out the asker didn't disable the firewall. After disabling the firewall, connectivity was fine.

11
  • that doesn't work for me. That was the first option I tried. Right now I have the server VM's adapters like this: 1st - internal, 2nd - NAT. And the Win 7 VM 1st - internal. I don't know why I can't seem to get a connection between them.
    – McCloud94
    Aug 7, 2014 at 13:03
  • Also, here's a screen of the settings. I don't get why the NAT adapter receives a 10.0.3.2 as the default gateway, when Virtualbox's DHCP is set to 10.0.2.0. s10.postimg.org/vpdsgs2cp/Untitled.jpg
    – McCloud94
    Aug 7, 2014 at 13:08
  • That would be good info to mention in the question, so I didn't have to type up a useless answer ;) Are you sure there isn't a connection or perhaps Windows Firewall is giving you troubles? Did you configure the network interfaces correctly? And how do you determine that it "doesn't work"?
    – mtak
    Aug 7, 2014 at 13:09
  • Ye, sorry. My mistake.. I am still getting familiar with stackexchange. Can't seem to post a general comment, only for individual people's comments. I am not sure about the firewall, I can check that. I tried to ping the machines from each other, but it failed.
    – McCloud94
    Aug 7, 2014 at 13:14
  • Haah, I am so stupid :) I completely disabled firewall on both the machines and now it seems to ping correctly. I'd never have thought that the firewall would be blocking 'internal' connections on a VM. I am going to check it once again and will let you know how it went. But thanks for now :)
    – McCloud94
    Aug 7, 2014 at 13:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .