Create and configure a Domain Controller Server as a VM

1.       Create Domain controller VM.
 
1.      Browse to C: on the Host1 and create a new folder named DC1
2.      Right click on the server name and select New, Virtual Machine
3.      Click Next
4.      Name the VM. (Mine is HPV-DC-01)
5.      Check Store the VM in a different location
6.      Click Browse
7.      Select the newly created folder DC1 and click Next.
8.      Leave memory at 512 and tick Dynamic Memory
9.      Click Next
10.  Change Network to VM Traffic, and click Next
11.  On Connect Virtual Harddisk, select create a Virtual Harddisk. (Create Generation 1 disk for IDE disk)
      a. Change the name to <Servername> Disk 0.vhdx   e.g. HPV-DC-01 Disk 0.vhdx
      b. Leave the location at the default.
      c. Enter the size of drive. Additional hard disks can be added later.
 
12.  click next
13.  Select install an operating system from a CD/DVD-ROM or using an ISO.
14.  Click Next followed by Finish
Note: In general, the first drive / boot drive of a VM should be IDE, and all subsequent drives should be SCSI.
 
2.      Configure Domain Controller VM
 
1.      Right click on the newly created VM and select Settings
2.      Select the Memory node
a. Ensure the startup RAM and minimum RAM are set to 512MB.
                             b. Change the Maximum RAM according to your requirement.
3.      Select the Processor node
a. Change the number of virtual processors to 2
4.      Select the Network Adapter node and select the virtual adaptor created in section Configure Hyper-V Network.
5.      Leave all other settings, click Apply, then OK
 
3.        Start the VM
 
1.      To start VM from the hyper-v manager, right click on the VM and select connect.
2.      Wait for the server to boot from the Windows 2012 ISO/DVD
3.      Install the OS to the virtual disk.
4.      After installation type  netsh advfirewall set allprofiles state off in the command prompt.
5.      Add the additional hard drives once the main OS is installed, if you need one follow the below steps.
1.      Right click on the new VM in hyper-v manager and choose Settings
2.      Select the SCSI Controller node
3.      Add a hard drive by clicking Add in the right hand pane
4.      Make sure that the controller is SCSI Controller.
5.      Click New, then Next
6.      Make sure the disk type remains as VHDX and click next
7.      Leave the disk type as dynamically expanding and click Next
8.      Change the name to Disk 1.vhdx.
9.      Change the location to c:\dc1\<your host Servername>\Virtual Hard Disks
10.  Click Next
11.  Change the size of the disk.
12.    Click Next, then Finish
 
4.      Configure the VM as Domain Controller.
 
1.      In the Server Manager window select ‘Local Server’ on the left of the screen, then click the hyperlink next to Computer Name.
2.      Click Change
3.      Set the Computer name.
4.      After the reboot configure AD.
5.       Make the new VM a Domain controller by going to the server manager and Add Roles and features.
 
 
5.      Verify Host1 before Joining to Domain.
 
1.      Log into the hyper-v host as the local administrator.
2.      Ensure that you can ping the IP address of the first server
3.      In Network Connections, select the Network adapter ‘vEthernet (vmxnet3 Ethernet Adapter - Virtual Switch)’ right click, and select properties. (When we install HyperV in the host it will automatically create a Virtual switch with the name vEthernet and transfer the IP address from original Ethernet adaptor)
4.      Select TCP/IP v 4 and select properties
5.      Change the DNS server address to the IP address of the First DC
6.      Click OK then close the networks panel
7.      Launch a command prompt
8.      Type NSLOOKUP and press enter
9.      Type the FQDN of the domain, for example if the first DC had a fully qualified domain name of
HPV-DC-01.hpv.local.
10.  Verify that the entry is found and the IP address corresponds with the IP of your new DC.
11.  If you are getting result like “Default Server:  UnKnown” then create a PTR entry of the server HPV-DC-01 in Reverse Lookup Zone. Then restart the DNS service and now you will get the correct domain name.
Verify that you can browse to a file share on the server by DNS name

No comments: