Time synchronization is extremely important in a domain as MS uses it for its authentication mechanism. This is how I’ve got my Microsoft NTP server functioning and how to get VMWare hosts to use the Microsoft NTP server. The following instructions are from the VMWare website.
Configure the Windows NTP Client
Enable NTP mode:
- Locate
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters
- Set the
Type
value toNTP
.
Enable NTP client:
- Locate
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config
- Set the
AnnounceFlags
value to5
.
Specify the upstream NTP servers to sync from:
- Locate
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders
- Set the
NtpServer
value to a list of at least 3 NTP servers.I used 1.pool.ntp.org (0-3 are acceptable)
Specify a 15-minute update interval
- Locate
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient
- Set the
SpecialPollInterval
value to900
.
Restart the W32time service
Configure ESX Host
Configure ESXi/ESX to synchronize time with the Windows server Active Directory Domain Controller:
- Connect to the ESXi/ESX host or vCenter Server using the vSphere Client.
- Click the ESXi/ESX host in the inventory.
- Click the Configuration tab.
- Under the Software heading, click Time Configuration.
- Click Properties.
- Ensure that the NTP Client Enabled option is selected.
- Click Options.
- Click NTP Settings.
- Click Add and specify the fully qualified domain name or IP address of the Windows server Domain Controller(s).
- Click OK.
- Click OK to save the changes.
Additional configuration must be done from the command line.
- Open a console to the ESXi/ESX host.
- Open the
/etc/ntp.conf
file in a text editor. - Add the
tos maxdist
command on its own line:
tos maxdist 30
- Save and close the configuration file.
- Make the
/etc/likewise/lsassd.conf
file writable by running the command:
chmod +w /etc/likewise/lsassd.conf
- Open the
/etc/likewise/lsassd.conf
file in a text editor. - Locate the
sync-system-time
option, uncomment it, and set the value tono
:
sync-system-time = no
- Save and close the configuration file.
- On ESXi, save the configuration changes to the boot bank so they persist across reboots by running the command:
/sbin/auto-backup.sh
- Restart the
ntpd
andlsassd
services for the configuration changes to take effect by running the commands:
/etc/init.d/lsassd restart
/etc/init.d/ntpd restart