Skip to content

Commit c9b739c

Browse files
Merge pull request #298311 from simranparkhe/patch-13
Update confidential-vm-faq.yml
2 parents d09245c + 86b49f3 commit c9b739c

File tree

1 file changed

+16
-44
lines changed

1 file changed

+16
-44
lines changed

articles/confidential-computing/confidential-vm-faq.yml

Lines changed: 16 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -211,50 +211,22 @@ sections:
211211
Azure bills such resources separately from the confidential VM costs.
212212
213213
- question: |
214-
What can I do if the time on my DCesv5/ECesv5-series VM differs from UTC?
214+
What can I do if the time on my DCesv6/ECesv6-series VM differs from UTC for Linux?
215215
answer: |
216-
Rarely some DCesv5/ECesv5-series VMs may experience a small time difference from UTC. A long term fix is available for this soon. In the meantime here are the workarounds for Windows and Ubuntu Linux VMs:
217-
218-
``` Windows
219-
sc config vmictimesync start=disabled
220-
sc stop vmictimesync
221-
```
222-
For Ubuntu Linux images, run the following script:
216+
Rarely some DCesv6/ECesv6-series Ubuntu Linux VMs may experience a small time difference from UTC. A long term fix is available for this soon. In the meantime here are the workarounds:
223217
224-
``` Ubuntu Linux
225-
#!/bin/bash
226-
227-
# Backup the original chrony.conf file
228-
cp /etc/chrony/chrony.conf /etc/chrony/chrony.conf.bak
229-
230-
# check chronyd.service status
231-
status=$(systemctl is-active chronyd.service)
232-
233-
# check chronyd.service status is "active" or not
234-
if [ "$status" == "active" ]; then
235-
echo "chronyd.service is active."
236-
else
237-
echo "chronyd.service is not active. Exiting script."
238-
exit 1
239-
fi
240-
241-
# Comment out the line with 'refclock PHC /dev/ptp_hyperv'
242-
sed -i '/refclock PHC \/dev\/ptp_hyperv/ s/^/#/' /etc/chrony/chrony.conf
243-
244-
# Uncomment the lines with 'pool ntp.ubuntu.com' and other pool entries
245-
sed -i '/#pool ntp.ubuntu.com/ s/^#//' /etc/chrony/chrony.conf
246-
sed -i '/#pool 0.ubuntu.pool.ntp.org/ s/^#//' /etc/chrony/chrony.conf
247-
sed -i '/#pool 1.ubuntu.pool.ntp.org/ s/^#//' /etc/chrony/chrony.conf
248-
sed -i '/#pool 2.ubuntu.pool.ntp.org/ s/^#//' /etc/chrony/chrony.conf
249-
250-
echo "Changes applied to /etc/chrony/chrony.conf. Backup created at /etc/chrony/chrony.conf.bak."
251-
252-
echo "Restart chronyd service"
253-
systemctl restart chronyd.service
254-
255-
256-
echo "Check chronyd status"
257-
systemctl status chronyd.service
258-
```
259-
218+
For Ubuntu Linux images, run the following steps:
219+
220+
1. Run this command to update the chronyd file to disable using the IC Time Sync service.
221+
``` Ubuntu Linux
222+
sed -i '/^refclock PHC \/dev\/ptp_hyperv poll 3 dpoll -2 offset 0/s/^/#/' /etc/chrony/chrony.conf
223+
```
224+
2. Enable the Linux VM to use Network Time Protocol (NTP) instead.
225+
``` Ubuntu Linux
226+
sed -i '/^#pool.*ntp/s/^#//' /etc/chrony/chrony.conf
227+
```
228+
3. Restart the chronyd service to synchronize to current time.
229+
``` Ubuntu Linux
230+
systemctl restart chronyd.service
231+
```
260232

0 commit comments

Comments
 (0)