I launched the official RHEL 8.8 image and confirmed the configuration. You can update yours as necessary to match or utilize the PTP configuration
Default chrony.conf:
If you want to utilize PTP follow the steps below:
Confirm you have ptp hyperlink setup:
[root@dehermanrhel azureuser]# ls -l /dev/ptp_hyperv
lrwxrwxrwx. 1 root root 4 Sep 10 17:38 /dev/ptp_hyperv -> ptp0
If not, add the udev rule and reload:
$ sudo cat > /etc/udev/rules.d/99-ptp_hyperv.rules << EOF
ACTION!="add", GOTO="ptp_hyperv"
SUBSYSTEM=="ptp", ATTR{clock_name}=="hyperv", SYMLINK += "ptp_hyperv"
LABEL="ptp_hyperv"
EOF
$ sudo udevadm control --reload
$ sudo udevadm trigger --subsystem-match=ptp --action=add
Once this is setup you can configure /etc/chrony.conf and add these lines:
refclock PHC /dev/ptp_hyperv poll 3 dpoll -2 offset 0 stratum 2
makestep 1.0 -1
More details can be found on the RHEL documentation Configuring NTP Using the chrony Suite.Hope this helps! Let me know if you still have questions.
If you still have questions, please let us know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.
If the answer has been helpful, we appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase visibility of this question for other members of the Microsoft Q&A community.
Thank you for helping to improve Microsoft Q&A!