I have following setup for web development: Windows laptop with Microsoft Virtual PC 2007, in it i have Centos virtual machine.
Problem i have is that every time when laptop goes to sleep with virtual machine running or every time i close virtual machine using Save state and then start it again it is stuck with time before it went to sleep.
If i restart OS in virtual machine is syncs its time with host operating system, what i also want to add it ability to do it regularly to avoid time drift.
You can try using ntpdate, which may be in /usr/sbin or /sbin:
For more info try:
I hope this helps.
try running ntpdate when you bring the server up, or run it every 15 minutes out of cron:
(eg */15 * * * * * /usr/sbin/ntpdate)