An ESXi host configured to use a Microsoft Windows 2003 or newer Domain Controller as a time source never synchronizes its clock with a default configuration.
When using Active Directory integration in vSphere ESXi, it is important to synchronize time between ESXi and the directory service to facilitate the Kerberos security protocol.
The default settings should be left unchanged when ESXi is joined to the domain and not to configure NTP. If NTP is to be used, the active directory server must be configured to use a reliable time source (NTP) itself.
ESXi support synchronization of time with an external NTPv3 or NTPv4 server compliant with RFC 5905 and RFC 1305. Microsoft Windows 2003 and newer use the W32Time service to synchronize time for windows clients and facilitate the Kerberos v5 protocol. For more information, see the Microsoft Knowledge Base article 939322 and How the Windows Time Service Works.
By default, an unsynced Windows server chooses a 10-second dispersion and adds to the dispersion on each poll interval that it remains in sync. An ESXi host, by default, does not accept any NTP reply with a root dispersion greater than 1.5 seconds.
ESXi requires an accurate time source to synchronize with. To use a Windows 2003 or newer server, it should be configured to get its time from an accurate upstream NTP server. For more information, see the Microsoft Knowledge Base article 816042.
Use the registry editor on the Windows server to make the configuration changes:
Note: This procedure modifies the Windows registry. Before making any registry modifications, ensure that there is a current and valid backup of the registry and the virtual machine.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters
NTP
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient
Configure ESXi/ESX to synchronize time with the Windows server Active Directory Domain Controller:
tos maxdist 30
/usr/lib/vmware/likewise/bin/lwregshell
lwregshell (error = 40700 - LWREG_ERROR_NO_SUCH_KEY_OR_VALUE)
/etc/init.d/lwsmd start
HKEY_THIS_MACHINE\Services\lsass\Parameters\Providers\ActiveDirectory
directory with this command:cd HKEY_THIS_MACHINE\Services\lsass\Parameters\Providers\ActiveDirectory
set_value SyncSystemTime 0
quit
and pressing Enter./usr/lib/vmware/likewise/bin/lwsm refresh lsass
/usr/lib/vmware/likewise/bin/lwsm refresh lsass
Refreshing service: lsass
/usr/lib/vmware/likewise/bin/lwregshell list_values "[HKEY_THIS_MACHINE\Services\lsass\Parameters\Providers\ActiveDirectory]"
For ESXi 7.0.3, see vSphere ESXi 7.0 U3 and later versions NTP configuration steps loading a text file containing NTP configuration commands.
Once the configuration changes are complete, ensure that the time is synchronized between the ESXi host and the Windows server. For more information, see Troubleshooting NTP on ESX and ESXi.