Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 10-30-2012, 05:05 PM   #1
LQ Newbie
Registered: Aug 2009
Posts: 3

Rep: Reputation: 0
ntpd daemon not synced with NTP server


i am running Virtual Machine on ESX:

Linux ssca2002 2.6.18-274.3.1.el5 #1 SMP Fri Aug 26 18:49:02 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
Red Hat Enterprise Linux Server release 5.8 (Tikanga)

below is my ntp.conf. # we have our own ntp server

tinker panic 0
restrict default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery

# restrict -6 ::1

# Hosts on local network are less restricted.
#restrict mask nomodify notrap


#server # local clock
#fudge stratum 10

driftfile /var/lib/ntp/drift

keys /etc/ntp/keys

Only two of this VM causes problem with the time offset about +- 24 sec to about few min.

[root@ssca2004 sysconfig]# /usr/sbin/ntpdate -q
server, stratum 3, offset 7.022972, delay 0.02647
30 Oct 17:02:46 ntpdate[17097]: step time server offset 7.022972 sec

#dmesg also show something relates to cmos:

[root@ssca2004 sysconfig]# /usr/sbin/ntpdate -q
server, stratum 3, offset 7.022972, delay 0.02647
30 Oct 17:02:46 ntpdate[17097]: step time server offset 7.022972 sec

How to fix this? Since this is VM, it might not be problem with HW or maybe the host vm? but how come the rest of VMs are fine.

Any patches available?

Your help is greatly appreciated.

Thank a lot!

Old 11-01-2012, 06:14 AM   #2
LQ Newbie
Registered: Oct 2012
Location: Russia
Distribution: Arch, CentOS, RHEL, Debian, Ubuntu
Posts: 15

Rep: Reputation: Disabled

Try this article:

I had a similar problem with some CentOS virtual machines on Hyper-V. I've tried few methods from this article and they worked out. But for different machines I had to use different approaches despite that they all were identical.
Old 11-02-2012, 11:17 AM   #3
LQ Newbie
Registered: Aug 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you.

So VMware Tools time synchronization HAS TO BE DISABLED IF USE NTP SERVER.

i actually found the same site that you gave me. I had to use their recommendation at the end of page for my VM to work with NTP server clock.

VMware Tools time synchronization configuration

When using NTP in the guest, disable VMware Tools periodic time synchronization.

To disable VMware Tools periodic time sync, perform one of these options:
Set tools.syncTime = "FALSE" in the configuration file (.vmx file) of the virtual machine.


Deselect Time synchronization between the virtual machine and the host operating system in the VMware Tools toolbox GUI of the guest operating system.


Run the vmware-guestd --cmd "vmx.set_option synctime 1 0" command in the guest operating system. To enable time syncing again, use the same command with "0 1" instead of "1 0".

For ESX 4.1 and later, use these parameters for Linux, Solaris, and FreeBSD:
To display the current status of the service:

vmware-toolbox-cmd timesync status

To disable periodic time syncronization:

vmware-toolbox-cmd timesync disable


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the maximum number of NTP requests per second ntpd can handle? sunshadow Linux - Server 2 03-14-2012 11:56 AM
SUSE Linux v10 NTP won't stay Synced dmoreau Linux - Newbie 5 11-06-2009 09:06 AM
System boot hangs at Starting NTP server: ntpd. WHY? duyuyang Linux - Newbie 5 10-29-2008 08:47 AM
NTPd - ntp.conf warath Linux - Software 8 04-05-2004 09:42 AM
How do I start ntp daemon at boot? jkcunningham Linux - Software 5 07-19-2002 09:49 AM

All times are GMT -5. The time now is 05:15 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration