It’s Alive!

This post is going to be the first step in creating actual VMs that we are going to be using in our lab environment. First, we need to finalize the parent VM as a template, this just ensures we don’t power it on or accidentally delete it. Select the Windows Server 2012 VM and choose Edit virtual machine settings.

 

Screen Shot 2015-06-08 at 9.55.59 AM

 

Then select the Options tab and go Advanced settings item. We want to Enable Template mode (to be used for cloning) by simply putting a check in the checkbox and hitting OK.

Screen Shot 2015-06-08 at 10.01.22 AM

 

Now that we have it setup as a template we need to create a snapshot of the VM. All of the further clones will be based on this snapshot.

So right click the VM and select Snapshot > Take Snapshot… from the dropdown.

Screen Shot 2015-06-08 at 10.03.44 AM

 

Give it a name and description just for further use.

Screen Shot 2015-06-08 at 10.07.14 AM

 

The First Clone

Now that we have the template finished the first VM we deploy is going to be our Domain Controller.

Right click the Windows Server 2012 VM and select Manage > Clone…

Screen Shot 2015-06-08 at 10.55.39 AM

 

The Clone Virtual Machine Wizard will pop-up and simply hit Next then verify it is set to Clone from – An existing snapshot. The snapshot we took earlier should be listed in that dropdown and select Next.

Screen Shot 2015-06-08 at 10.58.26 AM

 

Verify Clone method is set to Create a linked clone and Next.

Screen Shot 2015-06-08 at 10.59.18 AM

 

Store the VM on the Solid State Drive and simply name it DC.

Screen Shot 2015-06-08 at 11.01.14 AM

 

Go ahead and power on the DC. It will boot and run through setup.

Screen Shot 2015-06-08 at 11.03.54 AM

 

Windows will prompt for Regional/Language Settings, Product key, and Password. It will boot after entering all required information.

If you notice any sluggishness with display I would suggest simply reinstalling VMware Tools but you won’t always have this issue.

First thing we need to do is put the DC on the network we created in Part 1 to that it is isolated from our home network. Go into Edit Settings on the VM by right clicking and selecting Settings from the drop down. Select Network Adapter and change Custom to VMnet2 then OK and go back to the VM.

Screen Shot 2015-06-08 at 11.29.31 AM

 

 

We now need to edit the IPv4 Settings on the VM so that it has a static IP. I have set the IP address to 10.0.0.1 and the subnet mask is a /24 (255.255.255.0) for clarity. If you are following along I would suggest you do the same. DNS is set to itself, 10.0.0.1 and I have 8.8.8.8 in there for connectivity for the time being.

Screen Shot 2015-06-08 at 11.41.45 AM

 

Next, we want to rename the VM computer name to DC and reboot it.

Screen Shot 2015-06-08 at 11.45.32 AM

 

After reboot, go back into the Computer Name/Domain Changes and click the More… button.

Fill in a valid DNS suffix for the new domain that we will create. I named mine cnwrlab.local. This means my DC will be named DC.cnwrlab.local. Reboot after hitting OK.

Screen Shot 2015-06-08 at 12.05.08 PM

 

After logging back in we want to go into Server Manager and click on Add roles and features. We want it to be a Role-based or feature-based installation then select Next. Make sure the DC is selected and once again hit Next. On the Select Server Roles page we want to select DHCP Server and DNS Server then Next.

Screen Shot 2015-06-08 at 3.14.52 PM

 

Hit Next again through the Features, DHCP Server, and DNS Server. For the Confirmation section go ahead and click Install. Once installation is completed choose Complete DHCP configuration on the Results screen.

Screen Shot 2015-06-08 at 3.23.14 PM

 

DHCP Post-Install configuration wizard will appear. Simply hit Next on the first screen and Commit on the second screen as Use the following user’s credentials should already be selected. If not, put a different user in below with the Specify… button.

Screen Shot 2015-06-08 at 3.39.10 PM

 

After the wizard is completed open the DHCP console. Now we need to create a scope. Choose the Action selection along the top after selecting IPv4 and click New Scope…

Screen Shot 2015-06-08 at 4.35.35 PM

 

Select Next on the first page of the New Scope Wizard and then give the scope a name and hit Next.

Screen Shot 2015-06-08 at 4.37.22 PM

 

Set the IP Address Range as follows from 10.0.0.100 to 10.0.0.200.

Screen Shot 2015-06-08 at 4.39.43 PM

 

Continue clicking Next until out of the wizard all the defaults are fine for a lab.

Now we need to setup the DNS now that the DHCP is done. Open the DNS Manager and select Forward Lookup Zone then to add a new zone. On the Action menu, click New Zone…

The New Zone Wizard will pop up and we want to leave Primary zone selected and hit Next.

Screen Shot 2015-06-08 at 4.45.56 PM

 

Zone name should be your domain name. Mine is cnwrlab.local. The file name is fine as the default. Change the Dynamic Update section to Allow both nonsecure and secure dynamic updates and hit Next and Finish.

Screen Shot 2015-06-08 at 4.48.56 PM

 

We need to do the same for Reverse Lookup Zone so do the same thing to add a new zone. The settings need to be set to Primary zoneIPv4 Reverse Lookup Zone, and the Network ID needs to be set to 10…

Screen Shot 2015-06-08 at 4.51.56 PM

 

Change the default once again for Dynamic Update to Allow both nonsecure and secure dynamic updates and Finish.

Now simply reboot the server and you should be listed in both the Forward and Reverse Lookup Zones.

Now we need to setup the actual DC part of the installation. Simply go into Add Roles and Features Wizard and select Active Directory Domain Services. Continue Next through the wizard until clicking Install. After install is completed Close the wizard. We now need to dcpromo the domain controller.

Open Server Manager and in the Notifications section. There will be a Promote this server to a domain controller option. Select that option.

Screen Shot 2015-06-09 at 10.19.07 AM

 

The Active Directory Domain Services Configuration Wizard will appear and we want to select Add a new forest and set the Root domain name to your domain name, mine being cnwrlab.local.

Screen Shot 2015-06-09 at 10.21.12 AM

 

Leave the defaults on this page for Domain and Forest functional level unless you are planning on messing with older DCs. Set the DSRM password to something you will remember and hit Next.

Screen Shot 2015-06-09 at 10.24.20 AM

 

On the next page the only thing needing changed is the Credentials for delegation creation. I changed mine to DC\Administrator and my password then hit Next.

 

I leave the default input for NetBIOS domain name and hit Next until I get to the Prerequisites Check and hit Install as I don’t see any problems.

Screen Shot 2015-06-09 at 10.30.42 AM

During installation your domain controller should reboot and after powering back up it will now be acting as your domain controller for your lab domain. If you ran into any issues with DNS or DHCP, you should be able to get back into its respective manager and authorize it again.

You can also change the Forward and Reverse Lookup Zones in DNS to AD integrated, but it’s not necessary for the lab.

That is going to be it for the DC. The next part we will focus on the SQL server quick and then head into vCenter/ESXi/Storage environment.