Accurate time synchronization is critical for environment stability. Incorrect time negatively impacts authentications, cryptographic algorithms, distributed systems such as SQL and Exchange, and Active Directory replication. This article provides diagnostic steps and resolutions for common NTP synchronization failures on VMware ESXi.
/var/run/log/hostd.log) contain errors such as: kernel reports TIME_ERROR: 0x4041: Clock Unsynchronized.leap_alarm string.Network communication failure or intermediate firewall blocking UDP port 123.
The upstream NTP server is unreachable or provides inconsistent polling replies.
High root dispersion (greater than 1500 ms).
Version mismatch between NTPv3 and NTPv4.
1. Validate Network Connectivity - Verify network connectivity between the ESXi host and the NTP server:
vmkping command from the management VMkernel interface.(Typically vmk0) vmkping -I vmk# <NTP server IP>
2. Query NTP Service -Use the `ntpq` utility to check synchronization status from the ESXi command line:
watch ntpq -pn
3. Capture Network Traffic - Verify if NTP packets are being successfully transmitted and received:
esxcfg-vmknic -l
tcpdump-uw -c 5 -n -i vmk# host <NTP_Server_IP> and port 123
4. Adjust Root Dispersion (tos maxdist) - If the NTP server is a Windows Domain Controller or reports high dispersion:
cp /etc/ntp.conf /etc/ntp.conf.bak
echo "tos maxdist 15" >> /etc/ntp.conf
esxcli system ntp set -f /etc/ntp.conf.bak && esxcli system ntp set -e 0 && esxcli system ntp set -e 1
5. Restart NTP Daemon - If configuration is correct but synchronization is stalled:
/etc/init.d/ntpd restart*Note: It may take one to fifteen minutes for time to synchronize to reflect accurately after the service restart.
Additional Information