VMware Workstaion Home Lab Setup Part 4 – Domain Controller setup


Jonathan Frappier Virtxpert

Alight, so far we have built our Windows template in VMware Workstation that we will use for various home lab purposes, cloned it and got the first clone ready to be a domain controller.  Given the limited resources in the lab, I’m not sure I want to tackle PKI at this time, though maybe I’ll try a lightweight opensource project at some point.  Anyways back to why you are here, configuring Active Directory;

  • The last thing to do before promoting the server to a DC is to give it a static IP address, after all we don’t want that changing (even if we are using DNS for everything).  Bring up the Start menu
  • Click on Control Panel >> Network and Sharing Center >> Change Adapter settings
  • Right click on Ethernet0 and select properties
  • Double click on Internet Protocol Version 4 (TCP /IPv4)
  • Change Obtain an IP address automatically to use the following and enter the IP information for your network.  In my case I will set it to 192.168.6.5 with a subnet mask of 255.255.255.0 and a default gateway of 192.168.6.2 for my NAT’d VMware Workstation network.  If it is not already, set the Preferred DNS server to 127.0.0.1
  • Server Manager should still be open from the previous post – if not open it.
  • Click on AD DS in the left navigation menu.  You should have a yellow bar that says Configuration required… click the Yellow Triangle in the upper 1/3 of the window
Windows Server Manager configure AD DS

Windows Server Manager configure AD DS

  • Click on Promote this server to a domain controller
  • Select the Add a new forest radio button
  • Specify your root domain name.  If you are included to pay for SSL certificates use a valid TLD that you own as there are very few providers offering certificates for private domains such as .local.  I am going with all self signed certificates in my lab (for now) so I’ve chosen vxprt.local (.lan has troubles with OSX…at least it used to) and click Next
  • On the Domain Controller Options page, you can change the functional levels if you think you’d ever need to introduce and older domain controller, its unlikely so you should only need to add the DSRM password, then click Next
  • On the remaining steps, just click next (or review information provided if you like)
  • On the Prerequisites Check page, click Install.  The VM will reboot.
  • Log in with the domain administrator password you set
  • Open the Start menu and click on Administrative Tools >> DNS
  • Expand your DC >> Forward Lookup Zones and click on the zone for your domain (e.g. vxprt.local)
  • Verify that your server appears with an A record for the IP previously set.
  • Right click on Reverse Lookup Zone and click on New Zone
  • Click Next, accepting defaults until you get to the Reverse Lookup Zone Name page
  • Type in the first 3 octets of the IP subnet you are using, so for example I would type in 192.168.6, this will help generate the appropriate zone name, click Next two more times and click Finish.  You now have a reverse lookup zone so hosts can be resolved by name and IP address.
  • Go back to your forward lookup zone for your domain and double click on the A record for your DC
  • Check the Update associate pointer PTR record and click ok; this will create a record in the reverse zone you just created
  • The last step is to set a DNS forwarder since this server will server as the primary DNS server for all other servers.
  • Right click on your server, just under DNS and select properties
  • Click on the Forwarders tab and click the Edit… button
  • Remove any local addresses from the list by highlighting it and selecting delete
  • I will use the public Google DNS servers, but you could also use something like OpenDNS.
  • Click where it says “Click here to add and IP address…” and enter 8.8.8.8 and 8.8.4.4 – those should resolve to google-public-dns-a and b; click OK and OK again, then close DNS Manager
  • Open IE and verify you can get to the intenret, you should be all set!

So far we have setup our Windows template VM, created a Linked Clone and made it into a Domain Controller and NTP server, next we can get into setting up our virtual ESXi hosts.

VMware Workstaion Home Lab Setup Part 4 – Domain Controller setup