Skip to content

Commit 86dc808

Browse files
Merge pull request #236004 from cynthn/228208
Time-sync PR:228208
2 parents 988f364 + e469ed3 commit 86dc808

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

articles/virtual-machines/linux/time-sync.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.service: virtual-machines
66
ms.collection: linux
77
ms.topic: how-to
88
ms.workload: infrastructure-services
9-
ms.date: 05/04/2022
9+
ms.date: 04/26/2023
1010
ms.author: cynthn
1111
---
1212

@@ -127,6 +127,26 @@ Here, chrony will force a time update if the drift is greater than 1 second. To
127127
systemctl restart chronyd
128128
```
129129

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+
130150
For more information about Ubuntu and NTP, see [Time Synchronization](https://ubuntu.com/server/docs/network-ntp).
131151

132152
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
139159

140160
### cloud-init
141161

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:
143163

144164
```yaml
145165
#cloud-config

0 commit comments

Comments
 (0)