Setting up a host-only network in VirtualBox
Video: Setting up a host-only network in VirtualBoxNow we've created a main controller. We want to go ahead and link another computer to that domain controller. You'll notice I have two virtual machines now. The second one is a new server that I configured using the exact same process we previously went over. In order to connect multiple computers inside a virtual environment, I am going to have to make some changes to the virtual environment. That you'll also have to do on your end if you choose to follow me in VirtualBox. One of the first things we need to do is we need to change how VirtualBox handles network cards.
- Next steps
Viewers: in countries Watching now:
Get a practical introduction to setting up Windows Server 2012. Timothy Pintello breaks down this basic IT task into its core components: installation, roles and services configuration, and local storage setup. He shows you how to practice these steps with VirtualBox and gain real experience without the cost or risks associated with expensive hardware.
Learn how to choose an edition that's right for your setup, install Windows Server 2012 and the VirtualBox drivers, and then configure the services and roles on your new server. Timothy also shows how to set up local storage and manage Windows Server in one of two ways: through the command line or with the simple admin interface that ships with Windows Server.
- Installing Windows Server 2012
- Installing VirtualBox drivers
- Configuring server roles
- Configuring services
- Configuring disk and file systems
- Using alternative administration methods
Setting up a host-only network in VirtualBox
Now we've created a main controller. We want to go ahead and link another computer to that domain controller. You'll notice I have two virtual machines now. The second one is a new server that I configured using the exact same process we previously went over. In order to connect multiple computers inside a virtual environment, I am going to have to make some changes to the virtual environment. That you'll also have to do on your end if you choose to follow me in VirtualBox. One of the first things we need to do is we need to change how VirtualBox handles network cards.
The first step to this is going up to the File menu, click that, and then go down to Preferences. Once in the Settings box we need to go down to the Network Option. VirtualBox has a number of different options for networks. What we are interested in right now are the host-only networks. So go ahead and click the Host-only tab. You will notice that this box is empty. This box is empty because we need to add a host network. We add a host network by clicking the plus sign over here. Go ahead and click Yes on this. If Windows asks you for permission go ahead and click Yes. Now we have a host-only network card, we need to go ahead and set its preferences. The way we set its preferences is clicking this little screwdriver icon. This is important because you need to see the IP address that VirtualBox assigned to this Host-only Network.
Go ahead, and write down the IP address on your screen. The IP address you see will be different from mine. Go ahead, and write down the IP address shown in the top box that says IPv4 Address. You need to write down the IP address on your screen. Now, click OK. Click OK one more time. Now that we have set up the VirtualBox's Host ID, we need to go ahead and set that up in each of the virtual machines as well.
The way we do that is we click on a virtual machine. Then, we click Settings. And then click the Network icon. Once we click the Network icon, we want to come over here to the drop-down box that says NAT, and drop that down and choose Host-Only Adapter. We also want to make sure Promiscuous Mode is set to Allow All. If it's not, go head and change it to Allow All. Click OK. Now click on the second virtual machine and go through the same process. Now we have changed the virtual machines to host only network cards, we can go ahead and bring up our virtual machines.
The first machine we want to bring up is our domain controller. Go ahead and log on to it. And put in your password. Here in the Server Manager tool, it may show Dashboard. If it does, just click the Local Server, and then come over to the Ethernet setting and click that. Once you're in Ethernet setting, you want to click the Ethernet Network Card. Right-click it, and then click Properties. Next we want to come down to the Internet Protocol Version 4, click that, and click Properties again.
This is where the IP you wrote down becomes very important. We want to set this IP address to, use the following IP address. The IP address we put in here is the 192.168, in my case 83, and then I'm going to put .100. I'm choosing .100 for my virtual domain controller's physical IP address. I am choosing that IP address because it is part of the range of IP addresses the host will allow. Next want to go ahead and put the Subnet Mask, which should come up by default.
Next, I want to set the Default Gateway. The IP address I put in the Default Gateway should be the exactly IP address that came up in the Host Adapter setting when you first configured it in VirtualBox. We also want to set up a DNS server address. Since we are on the Domain Controller, we want to go ahead and use the Domain Controller's IP address because the DNS Server is set up on this machine. Go ahead and click OK, and then close this, and close the Network Connections box.
We now want to bring up our other server in VirtualBox. And assign that IP address as well. Again, if dashboard comes up, you need to go ahead and change it to the Local Server tile. Again, click Ethernet Link, right-click on the Ethernet Network card, click Properties, click the Internet Protocol Version 4. Click Properties again. Again set it so that you have to manually put in the IP address. Go ahead and put in the IP address again.
But this time we want to change our IP address to ten instead of 100, because you cannot have two computers on the same network with the same IP address. Finally, the DNS address is going to be the DNS address we put in the previous machine. We are basically pointing to our domain controller as our DNS controller also. So we need to put the same IP address there. Go ahead and click OK. Click Close. And close out the Network Connections box. You are now ready to put this local standalone server onto the domain.
There are currently no FAQs about Basic Installation and Configuration of Windows Server 2012.