Linux – Getting time to sync with NTP on Centos 5 VM

centoslinuxntptime

My Centos 5 VM is drifting time.

I have scoured different answers to solve this problem.

I've looked at the VMWare's tips and added tinker panic 0 on top of my ntp.conf file. I also changed the kernel parameters to:

kernel /vmlinuz-2.6.18-194.32.1.el5 ro root=/dev/VolGroup00/LogVol00 notsc divider=10 clocksource=acpi_pm

It worked for a while and then I recently restarted my machine and it is back to its old ways again. I'm not sure how to make it work again even though I followed the same procedure as last time.

Any ideas?

Here is how my ntpq -pn looks like:

     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 122.226.192.4   204.152.184.72   2 u   32   64  377   68.894  38873.7 5711.48
 116.193.170.16  192.93.2.20      2 u   35   64  177  135.991  45598.7 10745.4
 116.193.83.174  192.43.244.18    2 u   38   64  377   76.782  43291.2 8170.13
 61.153.197.226  209.81.9.7       2 u   32   64  377   83.523  34288.8 6679.24

Best Answer

I feel like a complete moron. Just realized I was loading the wrong default kernel on grub and the grub options had a misspelling in one of the values. I fixed it now and it is working...

For those who are curious, I mispelled:

clocksource=acpi_pm

as

clocksource=acpi_p

Lesson learned.