[Ma-linux] Virtual machine time sync after host resume

Joseph S D Yao jsdy at tux.org
Tue Nov 24 21:31:25 EST 2009


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
ntpdate?


-- 
/*********************************************************************\
**
** Joe Yao				jsdy at tux.org - Joseph S. D. Yao
**
\*********************************************************************/


More information about the Ma-linux mailing list