VMware Workstaion Home Lab Setup Part 3 – Domain Controller


Jonathan Frappier Virtxpert

With our Windows virtual machine built, patched, and cloned, its time to setup the Domain Controller for the home lab.  We will use the Domain Controller for authentication throughout the home lab setup including the necessary service accounts for VMware vSphere, SSO and vCloud Automation Center/vRealize Automation.  If you are here from part 2 you should be looking at a booted virtual machine clone here are the steps to finish off the Windows system wizard – if you already blew through this no worries you can skip the next section.

  • Tick the I accept box and click the Accept button.
  • Set your region, language and keyboard layout and click Next
  • Set your administrator password and click Finish
  • You should now be at the login screen.

Now its time to setup this Windows VM as our Domain Controller – it used to be quite easy – type

dcpromo

and follow the wizard, unfortunately Microsoft in all their wisdom decided to change the process after 12 years of it working flawlessly.

  • Press CTRL-ALT-INS on your keyboard or click on the VM menu and select Send CTRL-ALT-DEL (CTRL-ALT-INS seems much easier to me)
  • Log in with the password you just set
  • First update the date/time in Windows so it is in the correct time zone. You can click on the clock in the lower right corner or bring up the Date and Time control panel item
  • Once the date is set, click on the Internet Time tab, ensure it is set to automatically synchronize with time.windows.com and click OK
  • In this setup, I will use the domain controller as an NTP server so I can point my ESXi virtual machines and other appliances here so time is synchronized properly (NTP is critical in any environment, even the lab). In order to use Windows as an NTP server there is a registry change we need to validate. Bring up the start menu and type regedit
  • Navigate to HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesW32TimeTimeProvidersNtp – ensure that Enabled is set to 1 (this was already set to 1 for me)
  • If you are not already there, open the Start menu, right click on Computer and select properties
  • Under Computer name, domain and work group settings click the Change settings button the click the Change button
  • Name your computer, I prefer short and simple so dc01 is pretty common for me but I’m going with vxprt-dc01 here.  Leave the Workgroup selected and click the OK button
  • When the Computer Name/Domain change popup opens click OK, click Close on the System Properties window and then click the Restart Now button
  • Once the virtual machine restarts, log back in as administrator
  • Now, open Server Manager (it may already be open – I didn’t say simon says close the Server Manager window :)
  • Click on Add roles and features
server-manager

Windows Server Manager

  • When the Add Roles and Features Wizard starts, click Next
  • Select Role-based or feature-based installation, click Next
  • Ensure select a server from the server pool radio button is selected and that your server is highlighted, then click Next
  • Check the box for Active Directory Domain Services, click the Ad Features button when prompted, and click Next
  • Click Next on the features page
  • On the AD DS page, click Next
  • On the Confirm installation selections tick the box to Restart the destination server automatically if required (then Yes – it shouldn’t need a reboot but hey why not) and then click the Install button.
  • When finished, click the Close button

At this point, the necessary components have been put in place to configure Active Directory but nothing has been configured yet.  That’s next!

VMware Workstaion Home Lab Setup Part 3 – Domain Controller