Friday, May 29, 2015

Building a VMware Workstation Homelab - Part 05: Domain Controller

The first VM we will deploy in our lab is  our Domain Controller.

Right-click on Windows2012R2_Base VM and select Manage - Clone.


Base the clone on an Existing Snapshot named Version 1.0 (ir whatever you named it before).


Create a Linked Clone.


Store it on the SSD drive and name it DC01


Power On the newly created clone DC01
It will boot up and run the mini setup.


Create a password and log in

You may have notice that the display performance is a bit sluggish. Just Reinstall VMware Tools and choose Repair - it will run fine again after the repair.


Okay, the first thing we have to do on our Domain Controller is configuring the network settings.

Edit the settings of the VM and change the Network Adapter to VMnet2. The DC01 is now isolated from our home network. It can only communicate with other VMs on the VMnet2 (but there aren't any for now).

Fill in the IP4 Settings like the screen below.


Next, Rename the VM to DC01 and reboot.


After the reboot, get back into the Computer Rename dialog box and press More... button.

Fill in a valid DNS Suffix for your new domain we will create. Mine will be named devlab.local. This means my DC01 will be DC01.devlab.local. Reboot afterwards


Next up, open Server Manager and click the Add Roles link. Select DHCP Server & DNS Server.
Click Next a couple of times until you finish.

From Server Manager click on the Tools tab and select DHCP.

Expand out the tree until you have IPv4 right-click and select New Scope...
Give the Scope a name and description. Mine was "Lab" and "Lab Env"
  • IP Address Range
    • Start IP address: 10.0.0.100
    • End IP address: 10.0.0.200
    • Length: 8
    • Subnet mask: 255.0.0.0
  • Add Exclusions and Delay
    • none
  • Lease Duration
    • Days: 8
  • Configure DHCP Options
    • No. I will configure these options later
  • Router (Default Gateway)
    • none yet > Next
  • Domain Name and DNS servers
    • none yet > Next
  • WINS Server
    • None > Next
  • Activate Scope
    • Yes, I want to activate this scope now > Next > Finish

From Server Manager click on the Tools tab and select DNS.

Expand out the tree until you have Forward Lookup Zones right-click and select New Zone...

Create the Forward Lookup Zone with the following settings:

Type Primary zone
Zone name devlab.local
Create a new file ... devlab.local.dns
Dynamic Updates Allow both unsecure and secure dynamic updates

Then, create a Reverse Lookup Zone with the following settings:

Type Primary zone
IP IPv4 Reverse Lookup Zone
Network ID 10…
Create a new file... 10.in-addr.arpa.dns
Dynamic Update Allow both unsecure and secure dynamic updates



Now perform an ipconfig /registerdns or reboot the server.

Ensure that it listed in the Forward and Reverse lookup zone


Now it's time to install the Active Directory Domain Services.

From Server Manager press  Add roles and Feature >  Next  Next  Next 

  • Server Roles
    • Select Active Directory Domain Service
      • Add Features


Press Next > Next > Next > Install > Close


Back to Server Manager press the yellow warning triangle 
Press Promote this server to a domain controllor.


Select Add a new forest and give your root domain a name. I called mine devlab.local


Specify the DSRM administrator password.


Type in your administrator password.


Press Next


Press Next > Next > Install. Reboot after.


Log in when the server is ready. Go to Server Manager press the yellow triangle. Select Complete DHCP configuration. 



Use your domain admin account and press Commit.


That's it.



No comments:

Post a Comment

Part 26 - How To Deploy Bginfo Using SCCM 2012 R2

We a using a powershell script to install and config Bginfo from Sysinternals . Download the script from here: psBginfo - For simpl...