PDA

View Full Version : System clock off


jkf
03-28-2005, 12:40 AM
I noticed this evening that the system clock in my vm is ~2 minutes slow. I tried using ntpdate to correct the clock, but all it does is show the offset and and not update the clock. So, I'm assuming I can't actually change the system clock. Is there anything I can do to keep the system clock in my vm in sync or is that something that needs to be done from the host vm?

Thanks

matta
03-28-2005, 02:14 AM
We're working on a perm solution... problem is ntpdate skews the date too much and ntpd just plain doesn't work 75% of the time. Right now i'll just force a sync on all servers.

jkf
03-28-2005, 04:00 AM
Heh, cool. Thanks alot! :D

hart
03-28-2005, 08:07 AM
[QUOTE=jkf]I noticed this evening that the system clock in my vm is ~2 minutes slow. I tried using ntpdate to correct the clock, but all it does is show the offset and and not update the clock. So, I'm assuming I can't actually change the system clock. Is there anything I can do to keep the system clock in my vm in sync or is that something that needs to be done from the host vm?[/QUOTE]

To set the time on your VM do "echo 1 > /proc/sys/xen/independent_wallclock".

jkf
03-28-2005, 09:02 AM
Right on! :D

Is there any kind of documention on Linux guest vm options for Xen?

hart
03-28-2005, 12:02 PM
[QUOTE=jkf]Right on! :D

Is there any kind of documention on Linux guest vm options for Xen?[/QUOTE]
There's some at Xen homepage http://www.cl.cam.ac.uk/Research/SRG/netos/xen/ and at http://xen.epiuse.com/xen-faq.txt