LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


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

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


Hi,

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 127.0.0.1
# restrict -6 ::1

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

server 192.168.122.76

#server 127.127.1.0 # local clock
#fudge 127.127.1.0 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 192.168.122.76
server 192.168.122.76, stratum 3, offset 7.022972, delay 0.02647
30 Oct 17:02:46 ntpdate[17097]: step time server 192.168.122.76 offset 7.022972 sec

#dmesg also show something relates to cmos:

[root@ssca2004 sysconfig]# /usr/sbin/ntpdate -q 192.168.122.76
server 192.168.122.76, stratum 3, offset 7.022972, delay 0.02647
30 Oct 17:02:46 ntpdate[17097]: step time server 192.168.122.76 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!

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

Rep: Reputation: Disabled
Hey,

Try this article: http://kb.vmware.com/selfservice/mic...rnalId=1006427

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, 10:17 AM   #3
lamoul
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.

OR

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

OR

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
 
  


Reply


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 10:56 AM
SUSE Linux v10 NTP won't stay Synced dmoreau Linux - Newbie 5 11-06-2009 08:06 AM
System boot hangs at Starting NTP server: ntpd. WHY? duyuyang Linux - Newbie 5 10-29-2008 07:47 AM
NTPd - ntp.conf warath Linux - Software 8 04-05-2004 08:42 AM
How do I start ntp daemon at boot? jkcunningham Linux - Software 5 07-19-2002 08:49 AM


All times are GMT -5. The time now is 10:07 AM.

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