1. In the Start menu bar, click "Run" to enter regedit to open the Windows registry
2. Set as NTP server type.
Modify the Login file: "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters"
The [Type] setting value is modified to "NTP".
3. Set the authorization time server
Modify the Login file: "Hkey_local_machine\system\currentcontrolset\services\w32time\config"
[AnnounceFlags] Modify the setting value to 5.
4. Enable NTP server
Modify the Login file: "Hkey_local_machine\system\currentcontrolset\services\w32time\timeproviders\ntpserver"
The [Enabled] value is modified to 1.
5. Restart Windows Time Service
Open the Start menu, enter "CMD" in the command line mode to enter:
? Net?stop?w32time?&&?net?start?w32time??? Restart the Win32time service.
Attention:
1. Set the W32Time service startup mode to Automatic in system service.
2. Make sure the firewall allows UDP123 port access.
Open udp:123 Port
Open the Start menu, enter "CMD" in the command line mode to enter:
netsh firewall add portopening protocol = UDP Port =123 name = NTPSERVER
To configure an ESXi host as an NTP client
1. Log in to Vcenter server via Web client and configure it by
2. Enable the ESXi command line
Press ALT+F1 to toggle the command interface
3. Modify the ESXi configuration file
1.vi/etc/ntp.conf Add the following content
TOS Maxdist 30
2. Save and launch
3. Set Write permissions for/etc/likewise/lsassd.conf
chmod +w/etc/likewise/lsassd.conf
4.vi/etc/likewise/lsassd.conf find the following configuration items minus the comments and the preceding spaces,
Sync-system-time = No
5. Save and launch.
6. Execute the following command
/sbin/auto-backup.sh
7. Restart the following two services
/ETC/INIT.D/LSASSD restart
/ETC/INIT.D/NTPD restart
Configuration of Windows server R2 NTP time server