How to Enable Continuous Time Sync Between QEMU Guest and Host

Aug 19, 2025
2
0
1
I installed the QEMU Guest Agent on my VM, but time synchronization only happens during snapshots and reboots. Is there a way to have more frequent synchronization with the host to avoid time drift?
 
never tried it but :
https://docs.redhat.com/en/document...ration_guide/chap-kvm_guest_timing_management
Code:
To enable the PHC device, do the following on the guest OS:
[LIST=1]
[*]Set the ptp_kvm module to load after reboot.

# echo ptp_kvm > /etc/modules-load.d/ptp_kvm.conf



[*]Add the /dev/ptp0 clock as a reference to the chrony configuration:

# echo "refclock PHC /dev/ptp0 poll 2" >> /etc/chrony.conf



[*]Restart the chrony daemon:

# systemctl restart chronyd

[/LIST]