Description
Cloud hosts in the ZStack cloud platform synchronize their hosts'time sources by default. Host time is uniformly directed to internal or public time sources, ultimately reaching the requirements for time synchronization between cloud hosts and physical machines throughout the cluster. If the user wants to manually configure the synchronization time source in the cloud host operating system, for example, if the cloud host operating system is of Windows type, and the user wants to manually set the time source in the Windows operating system (set the Ali time source as the network time source in the case that the cloud host can access the public network in the environment), what exactly do you need to do?
Environment
Cloud Platform Environment: ZStack Enterprise 3.8.6
Master Storage Environment: Ceph Type Master Storage
Mirror server environment: Ceph type mirror server
Network Environment: Flat Network
Cloud host operating system: Windows Server 2012 R2
Cause
When users use the cloud platform, they can set the time source inside the cloud host operating system when they have special needs for the time source of the cloud host, such as synchronizing the Ali cloud time source.
Resolution
1. Open Group Policy: Powershell Type command: gpedit. MSc

(Figure 1 Open Group Policy)
2. In the Computer Policy dialog box, open the following path: Computer Configuration/Management Template/System/Windows Time Service/Time Provider. As follows:

(Figure 2 Configuring NTP Client)
3. Double-click Configure Windows NTP Client to display Configure Windows NTP Client. Enter the Ntp Server item and the IP address of the time server to which you will synchronize (enter the NTP server address of Ali Cloud here: time.pool.aliyun.com), note that 0x9 or 0x1 must be present; In the type item, select NTP; Click Apply, OK button;

(Figure 3 Configuring NTP Client)
4. Start NTP client; Enable NTP client; Click Apply, OK button;

(Figure 4 Enable NTP client)

(Figure 5 Enable NTP Client)
5. PowerShell executes commands: gpupdate/force, update group policy

(Figure 6 Update Group Policy)
6. PowerShell executes commands: Services. Msc, find the Windows Time service, check if the W32Time service is started, start type is Start automatically as follows:

(Figure 7 Configure Windows Time)

(Figure 8 configures Windows Time)
7. In time and date, set the synchronization address and check Auto Synchronization, as shown below

(Figure 9 Configure Internet time settings)
8. Verify that the cloud host successfully synchronizes the Ali Cloud time source.
PowerShell executes commands:
W32tm / Query / Status

(Figure 10 shows time synchronization)
Comments
0 comments
Please sign in to leave a comment.