PDA

View Full Version : Anyone got NTP / time working?


augustz
05-30-2005, 06:41 AM
I know this has come up a few times, but I'm having trouble getting my VM to keep accurate time.

I've tried to set the independent clock, but while ntp and friends see the skew of the local clock, they seem unable to modify it.

This is on VM3, if that is a possible factor.

I saw a number of earlier posts on this issue, but is was unclear if anyone ended up with actuall success in syncing their clocks.

jkf
05-30-2005, 07:42 AM
I have ntpd working inside my vm to keep the clock in sync. All it required was setting the following sysctl in /etc/sysctl.conf to decouple the wall clock.

xen.independent_wallclock = 1

I start ntpd afterward and its been running great. :cool:

I don't know what distro you're running, but I'm using Gentoo, and I had to hack the /etc/init.d/clock script so that it would recognize being run under Xen and stop trying to read/write to the hardware clock. Without the hack, the bootmisc script was never being run, so /etc/sysctl.conf never got processed.

matta
05-31-2005, 12:09 AM
I just converted all hosts (and the standard setup) to use ntpd. ntpd is set to sync using 3 popular NTP servers so it should always be accurate.