Now it's time to virtualize the major component in an IT Infrastructure the Active Directory!
1. Modify Registry settings on the PDC Emulator for the forest root domain:
There are several considerations which we need to make before making this plunge to the virtual world.
First we need to analyse our own environment and check the Active directory topology, its various sites and services, bandwidth, virtualization platform to be used,disaster recovery etc.
In this article we would like to focus on the major deployment consideration, the failure of which would be disastrous for an virtualized Active Directory Active Directory in a VMware ESXi platform. The issue is known as clock drift, think what will happen if the Active Directory is running 20 mins behind the actual time!
What is clock drift?
In a virtualized environment, virtual machines that don’t require CPU cycles don’t get CPU cycles. For the typical Windows application in a virtual machine, this is not normally a major problem. When virtualizing Microsoft’s Active Directory, however, these idle cycles can cause significant time drift for domain controllers. Active Directory is critically dependent on accurate timekeeping, and one of the most important challenges you must address is how to prevent clock drift. In fact, a large part of a successful Active Directory implementation will be in the proper planning of time services.Accurate timekeeping is also essential for the replication
process in a multi-master directory environment
How to fix it?
The solution is to use the Windows Time Service and not VMware Tools synchronization for the forest root PDC Emulator. This requires configuring the forest PDC emulator to use an external time source. The procedure for defining an alternative external time source for this “master” time server is as follows:1. Modify Registry settings on the PDC Emulator for the forest root domain:
In this key HKLM\System\CurrentControlSet\Services\W32Time\ Parameters\Type
Change the Type REG_SZ value from NT5DS to NTP.
This determines from which peers W32Time will accept synchronization. When the REG_SZ value is changed from NT5DS to NTP, the PDC Emulator synchronizes from the list of reliable time servers specified in the NtpServer registry key.
HKLM\SYSTEM\CurrentControlSet\Services\W32Time\ Parameters\NtpServer
Change the NtpServer value from time.windows.com,0x1 to an external stratum 1 time source—for example, clock.us.navy.com,0x1. This entry specifies a space-delimited list of stratum 1 time servers from which the local computer can obtain reliable time stamps. The list can use either fully-qualified domain names or IP addresses. (If DNS names are used, you must append ,0x1 to the end of each DNS name.)
HKLM\System\CurrentControlSet\Services\W32Time\Config
Change AnnounceFlags REG_DWORD from 10 to 5. This entry controls whether the local computer is marked as a reliable time server (which is only possible if the previous registry entry is set to NTP as described above). Change the REG_DWORD value from 10 to 5 here.
2. Stop and restart the time service:
net stop w32time
net start w32time
3. Manually force an update:
w32tm /resync /rediscover