core-admin/dom0/pm-utils/01qubes-sync-vms-clock
Joanna Rutkowska 115df6f1af Dom0: sync wallclocks in all vms upon resume from S3 sleep
This is really a workaround, until Xen implements proper suspend/resume
mechanism for notfying DomUs about system-wide S3 sleep.

See this thread for more details:

http://lists.xensource.com/archives/html/xen-devel/2010-07/msg00037.html
2010-07-06 16:32:50 +02:00

16 lines
242 B
Bash
Executable File

#!/bin/sh
. "${PM_FUNCTIONS}"
sync_qubes_vms_wallclock()
{
DATE=$(date)
echo "Syncing VMs clock to: $DATE"
qvm-run --all -u root "date -s \"$DATE\""
}
case "$1" in
thaw|resume) sync_qubes_vms_wallclock ;;
*) exit 0 ;;
esac