public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH manager/qemu-server 0/2] fix #5032: sync guest time after restore from saved state
@ 2026-06-12 12:29 Jakob Klocker
  2026-06-12 12:29 ` [PATCH qemu-server 1/2] fix #5032: qemu: sync guest time on resume and snapshot of " Jakob Klocker
  2026-06-12 12:29 ` [PATCH pve-manager 2/2] fix #5032: ui: qemu agent: add set-time-on-resume option Jakob Klocker
  0 siblings, 2 replies; 3+ messages in thread
From: Jakob Klocker @ 2026-06-12 12:29 UTC (permalink / raw)
  To: pve-devel; +Cc: Jakob Klocker

This series adds a new agent option set-time-on-resume to 
automatically synchronize the guest clock via the QEMU Guest Agent 
after operations that can leave the guest time stale. The option is 
enabled by default when the QEMU Guest Agent is configured.

When a VM is restored from a saved state (hibernation or snapshot with
RAM), the guest clock continues from the point the state was saved and
no longer matches wall-clock time. The same skew can appear after
creating a snapshot of a running VM. For guests whose OS does not
correct this on its own, the drift persists until the next NTP sync (if
any), which can cause problems for time-sensitive workloads.

This series introduces the set-time-on-resume agent option and triggers
a guest-set-time call:
 * after restoring a VM from a saved state or snapshot with RAM
 * after taking a snapshot

The option is exposed in the VM configuration GUI so it can be toggled
per guest.

This series depends on [0] being applied first.

[0] https://lore.proxmox.com/pve-devel/20260612100758.116697-1-j.klocker@proxmox.com/T/#u

Link: https://bugzilla.proxmox.com/show_bug.cgi?id=5032


qemu-server:

Jakob Klocker (1):
  fix #5032: qemu: sync guest time on resume and snapshot of saved state

 src/PVE/QemuConfig.pm       |  7 ++++++
 src/PVE/QemuServer.pm       | 10 ++++++++
 src/PVE/QemuServer/Agent.pm | 47 +++++++++++++++++++++++++++++++++++++
 3 files changed, 64 insertions(+)


pve-manager:

Jakob Klocker (1):
  fix #5032: ui: qemu agent: add set-time-on-resume option

 www/manager6/Utils.js                     |  2 ++
 www/manager6/form/AgentFeatureSelector.js | 18 ++++++++++++++++++
 2 files changed, 20 insertions(+)


Summary over all repositories:
  5 files changed, 84 insertions(+), 0 deletions(-)

-- 
Generated by murpp 0.12.0



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-06-12 12:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-12 12:29 [PATCH manager/qemu-server 0/2] fix #5032: sync guest time after restore from saved state Jakob Klocker
2026-06-12 12:29 ` [PATCH qemu-server 1/2] fix #5032: qemu: sync guest time on resume and snapshot of " Jakob Klocker
2026-06-12 12:29 ` [PATCH pve-manager 2/2] fix #5032: ui: qemu agent: add set-time-on-resume option Jakob Klocker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal