You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/virtual-machines/linux/time-sync.md
+22-2Lines changed: 22 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ ms.service: virtual-machines
6
6
ms.collection: linux
7
7
ms.topic: how-to
8
8
ms.workload: infrastructure-services
9
-
ms.date: 05/04/2022
9
+
ms.date: 04/26/2023
10
10
ms.author: cynthn
11
11
---
12
12
@@ -127,6 +127,26 @@ Here, chrony will force a time update if the drift is greater than 1 second. To
127
127
systemctl restart chronyd
128
128
```
129
129
130
+
### Time sync messages related to systemd-timesyncd
131
+
132
+
In some cases, the systemd-timesyncd service might still be enabled and trying to do a sync upon a reboot, if you are still seeing messages in syslog that look similar to:
133
+
134
+
````
135
+
systemd-timesyncd[945]: Network configuration changed, trying to establish connection.
136
+
Aug 1 12:59:45 vm-name systemd-timesyncd[945]: Network configuration changed, trying to establish connection.
137
+
Aug 1 12:59:45 vm-name systemd-timesyncd[945]: Network configuration changed, trying to establish connection.
138
+
Aug 1 12:59:45 vm-name systemd-timesyncd[945]: Network configuration changed, trying to establish connection.
139
+
Aug 1 12:59:45 vm-name systemd-timesyncd[945]: Network configuration changed, trying to establish connection.
140
+
Aug 1 12:59:45 vm-name systemd-timesyncd[945]: Synchronized to time server 185.125.190.56:123 (ntp.ubuntu.com)
141
+
`````
142
+
143
+
You can disable it by using:
144
+
145
+
```bash
146
+
systemctl disable systemd-timesyncd
147
+
````
148
+
In most cases, systemd-timesyncd will try during boot but once chrony starts up it will overwrite and become the default time sync source.
149
+
130
150
For more information about Ubuntu and NTP, see [Time Synchronization](https://ubuntu.com/server/docs/network-ntp).
131
151
132
152
For more information about Red Hat and NTP, see [Configure NTP](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/ch-configuring_ntp_using_ntpd#s1-Configure_NTP).
@@ -139,7 +159,7 @@ On SUSE and Ubuntu releases before 19.10, time sync is configured using [systemd
139
159
140
160
### cloud-init
141
161
142
-
Images that use cloud-init to provision the VM can use the ntp section to setup a time sync service. An example of cloud-init installing chrony and configuring it to use the PTP clock source for Ubuntu VMs:
162
+
Images that use cloud-init to provision the VM can use the `ntp` section to setup a time sync service. An example of cloud-init installing chrony and configuring it to use the PTP clock source for Ubuntu VMs:
0 commit comments