windowsserver R2 NTPTime Server Configuration
in the Windows Server R2 in use Windows Time (W32Time) service Build a SNTP/NTP Server is Windows or non- Windows The client provides time services.
1 , in the Start menu bar, click "Run" Input regedit , open Windows Registration Form
650) this.width=650; "title=" 1.png "src=" Https://s2.51cto.com/wyfs02/M00/90/6A/wKiom1jwabrSRwXzAAJEMZl_ Fuo046.png-wh_500x0-wm_3-wmp_4-s_3466971350.png "alt=" Wkiom1jwabrsrwxzaajemzl_fuo046.png-wh_50 "/>
2 , set to become NTP The server type.
Modify the login file:"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters"
[Type] the setting value is modified to "NTP" .
650) this.width=650; "title=" 2.png "style=" Float:none; "src=" https://s3.51cto.com/wyfs02/M00/90/69/ Wkiol1jwalzsw9bcaappnaya8lg378.png-wh_500x0-wm_3-wmp_4-s_3233320991.png "alt=" Wkiol1jwalzsw9bcaappnaya8lg378.png-wh_50 "/>
650) this.width=650; "title=" 3.png "style=" Float:none; "src=" https://s2.51cto.com/wyfs02/M01/90/6B/ Wkiom1jwal3j9z-2aaobpzmzukk183.png-wh_500x0-wm_3-wmp_4-s_72829223.png "alt=" Wkiom1jwal3j9z-2aaobpzmzukk183.png-wh_50 "/>
3 , setting the authorization time server
Modify the login file : "Hkey_local_machine\system\currentcontrolset\services\w32time\config"
[AnnounceFlags] Modify the setting value to 5
650) this.width=650; "title=" 4.png "style=" Float:none; "src=" https://s4.51cto.com/wyfs02/M02/90/6B/ Wkiom1jwaocw0dxdaar5brgtqoo523.png-wh_500x0-wm_3-wmp_4-s_4127300053.png "alt=" Wkiom1jwaocw0dxdaar5brgtqoo523.png-wh_50 "/>
650) this.width=650; "title=" 5.png "style=" Float:none; "src=" https://s1.51cto.com/wyfs02/M01/90/6B/ Wkiom1jwaokt9ghraasxg9sw2z0667.png-wh_500x0-wm_3-wmp_4-s_4244223291.png "alt=" Wkiom1jwaokt9ghraasxg9sw2z0667.png-wh_50 "/>
4 , enabled NTP Server
Modify the login file : "hkey_local_machine\system\currentcontrolset\services\w32time\ Timeproviders\ntpserver "
[Enabled] value is modified to 1
650) this.width=650; "title=" 6.png "style=" Float:none; "src=" https://s1.51cto.com/wyfs02/M01/90/6B/ Wkiom1jwaqbzdubkaaqq4znfc_s698.png-wh_500x0-wm_3-wmp_4-s_1068962832.png "alt=" wKiom1jwaqbzDUbKAAQQ4zNfC_ S698.png-wh_50 "/>
650) this.width=650; "title=" 7.png "style=" Float:none; "src=" https://s2.51cto.com/wyfs02/M00/90/6B/ Wkiom1jwarsanyd6aaqgnzcd_my234.png-wh_500x0-wm_3-wmp_4-s_2829135894.png "alt=" wKiom1jwarSAnyD6AAQgNzcD_ My234.png-wh_50 "/>
5 , re-up Windowstime Service
Open the Start menu input CMD "Enter in command-line mode:
net stop w32time && net start W32Time reboot Win32time service.
650) this.width=650; "title=" 8.png "src=" https://s5.51cto.com/wyfs02/M00/90/6A/ Wkiol1jwbdcghw58aalsynzfg3k298.png-wh_500x0-wm_3-wmp_4-s_3772567699.png "alt=" Wkiol1jwbdcghw58aalsynzfg3k298.png-wh_50 "/>
Issues to be aware of:
1 , setting in system services W32Time the service startup mode is automatic.
2 , determine whether the firewall allows UDP123 port access.
Open udp:123 Port
Open the Start menu input CMD "Enter in command-line mode:
netsh firewall addportopening protocol = UDP Port =123 name = NTPSERVER
650) this.width=650; "title=" 9.png "src=" https://s2.51cto.com/wyfs02/M00/90/6B/ Wkiom1jwbezrobr0aan0jlnfkrm766.png-wh_500x0-wm_3-wmp_4-s_1125098794.png "alt=" Wkiom1jwbezrobr0aan0jlnfkrm766.png-wh_50 "/>
will be ESXi host configured for NTP Client
1 , through the Web client log in to Vcenter server, Press to configure
650) this.width=650; "title=" 10.png "src=" https://s2.51cto.com/wyfs02/M00/90/6B/wKiom1jwbF_ Wrpidaadcaa76gko598.png-wh_500x0-wm_3-wmp_4-s_1967122696.png "alt=" wkiom1jwbf_wrpidaadcaa76gko598.png-wh_50 "/ >
2 , enable ESXi command Line
650) this.width=650; "title=" 11.png "style=" Float:none; "src=" https://s2.51cto.com/wyfs02/M02/90/6A/ Wkiol1jwbivhy3ggaaamdoo7dla099.png-wh_500x0-wm_3-wmp_4-s_47377178.png "alt=" Wkiol1jwbivhy3ggaaamdoo7dla099.png-wh_50 "/>
650) this.width=650; "title=" 12.png "style=" Float:none; "src=" https://s1.51cto.com/wyfs02/M00/90/6A/ Wkiol1jwbizcanh1aaaeldrhn00928.png-wh_500x0-wm_3-wmp_4-s_1992537918.png "alt=" Wkiol1jwbizcanh1aaaeldrhn00928.png-wh_50 "/>
Press alt+f1 Toggle Command Interface
3 , modify ESXi configuration file
1. VI /etc/ntp.conf
Add the following content
tosmaxdist 30
2. Save and launch
3. Set /etc/likewise/lsassd.conf
the Write permission
chmod+w /etc/likewise/lsassd.conf
4. /etc/likewise/lsassd.conf
VI 找到下列配置项去掉注释和前面的空格
,
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/lsassdrestart
/ETC/INIT.D/NTPD restart
This article from "Liu Xiao Rabbit" blog, declined reprint!
Windows Server R2 NTP time server configuration