Ubuntu VMs jump 60–120 seconds ahead after live migration; systemd‑timesyncd reports large step adjustments
Environment
Ubuntu 22.04 LTS VMs running on KVM/QEMU hosts managed by libvirt; live migrations performed between hosts with chrony on hosts but VMs configured to use systemd‑timesyncd (default) and no guest chrony/ntpd installed.
Symptoms
Shortly after a live migration, the VM's clock jumps forward by 60–120 seconds. Applications relying on time (cron jobs, TLS certificate checks) experience failures or run prematurely. Jump happens only after migrations, not during normal reboot.
Observations
journalctl shows systemd‑timesyncd logging 'Clock step was XXs' and then adjusting time. The VM's hwclock (rtc) remains at the pre‑migration value. Host clocks are synchronized with chrony and show no similar jumps. Disabling systemd‑timesyncd on the guest prevents the jump; installing chrony in the guest also prevents the problem. No host‑level live migration failures or guest panic recorded.
Already attempted
Restarted systemd‑timesyncd service, installed chrony as an experiment on a test VM (stopped timesyncd and installed chrony — solved jumps), adjusted timesyncd configuration to fewer peers (no effect), ensured host and guest do not share RTC misconfiguration. Did not modify hypervisor kernel or QEMU args in production.
Question
Why does systemd‑timesyncd step the clock forward after live migration, what safely reversible configuration changes will prevent it, and what long‑term solution is recommended for virtualized Ubuntu guests?
Verified community troubleshooting
No answers yet..
Incident analysis
Most likely causes
Summary
Suggested Fixes
Continue troubleshooting
Related troubles
Matched from the title, description and tags