[Ma-linux] Virtual machine time sync after host resume
rrenomeron at gmail.com
Wed Nov 25 18:42:37 EST 2009
On 11/24/2009 09:31 PM, Joseph S D Yao wrote:
> On Tue, Nov 24, 2009 at 08:23:46PM -0500, Rich Renomeron wrote:
>> I have a gaggle of kvm/libvirt-managed virtual machines on my desktop
>> box, which occasionally gets suspended. When I resume the desktop, the
>> clock on the VMs is still at the host resume time. I've tried
>> installing NTP, but after an overnight suspend, it won't adjust the time
>> because the time difference is too great.
>> The only solution I can think of is putting ntpdate in a cron job. Is
>> there a better way?
> I haven't done anything with suspend/resume besides disabling it [;-)],
> but can't you put a script in something like /etc/acpi/resume.d to run
The problem is AFAICT, the guests have no idea that the host has been
suspended, so the resume scripts aren't run on the guests when the host
I guess I could doing some ssh-based thing from the host's resume
scripts, but I don't like that very much either (ssh keys giving root
In an ideal world, I could either override ntpd's "sanity threshold", or
libvirt would be smart enough to trigger some kind of suspend ACPI event
when the host has a similar event, but I haven't figured out how to do that.
From the Notebook of Rich Renomeron
Plan to be spontaneous tomorrow.
More information about the Ma-linux