NTP problem for virtual RHEL 4 server on VmWare

Eric Sisler lbylnxgek at gmail.com
Wed Nov 12 16:47:09 UTC 2008


On Fri, Nov 7, 2008 at 2:49 AM, Kenneth Holter <kenneho.ndu at gmail.com>wrote:

> Hei.
>
>
> One of our RHEL 4 servers running on VmWare has a quite serious NTP
> problem.
> I know that NTP can be an issue when running red hat boxes on VmWare, so as
> a fix I put this small script in a file in /etc/cron.hourly:



Early on I went through the frustrations with time & NTP problems on RHEL 4
virtual machines.  I've used a number of the earlier suggestions, including
various boot time  & VMware configuration options.  I even went so far as to
compile a custom kernel with the clock frequency set back to 100, as it was
for the 2.4.x kernels.  Overall it didn't seem like any of the boot time or
VMware config options made that much difference.  Recompling the kernel
works, but gets to be a lot of overhead after awhile.

Now for the odd part:  Currently my RHEL4 VMs have time sync enabled in the
VMware config file & also have NTP running.  It seems that the longer NTP
runs, the more accurate the time gets on the VM.  When booting a "new" VM,
it wasn't uncommon for NTP to adjust the time by 20-30 seconds.  Once the VM
gets a bit "older" & NTP has been running longer, when rebooting the VM
clock adjustment goes down to around 5-6 seconds.  I suspect part of this
has to do with the frequency & adjustment history recorded by NTP.

The updated VMware KB may be of some help as well.  Good luck!

-Eric



More information about the redhat-list mailing list