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

Notices


Reply
  Search this Thread
Old 11-25-2009, 02:06 PM   #1
dreamlemon
Member
 
Registered: Feb 2007
Distribution: Slackware
Posts: 37

Rep: Reputation: 15
Time drift Vmware


Hi debianers
I install debian (lenny) in VMWARE ACE 6.3
I met a time drift of 7 seconds per day.
Is it posible to completly get rid of time drift in a VM?
Or is it VMWARE-specific?
In QEMU or virtualbox it will be better?
 
Old 11-25-2009, 02:10 PM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hello,

I have several Debian servers running in VMWare ESX and have installed ntp on all of them. They synchronize perfectly.

To install ntp from the console:
Code:
apt-get ntp
Kind regards,

Eric
 
Old 11-25-2009, 02:13 PM   #3
dreamlemon
Member
 
Registered: Feb 2007
Distribution: Slackware
Posts: 37

Original Poster
Rep: Reputation: 15
Hi EricTRA,
How often you sync time of your machines?
I did use ntp.
But sometimes this issue even made ntp fail to do.
 
Old 11-25-2009, 02:21 PM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hello,

I don't have any frequency set, the ntp daemon should take care of that automatically. The larger the offset the more frequent the daemon will send out packets to synchronize the system time.

One thing I have encountered is when the hardware clock wasn't set correctly. This happened once and I had strange behavior too.

To check hardware clock:
Code:
hwclock
To update the system time to the hardware clock:
Code:
hwclock --systohw
Also if the starting time of the server was too much off comparing to the real time then you'll have to adjust the time once before starting and relying on the ntp daemon.

You could try with ntpdate to find out if there is a problem connecting to the ntp pool, but you'll have to install the package first:
Code:
apt-get install ntpdate
Also while the ntp daemon is running you cannot execute ntpdate, it will give you an error.

Kind regards,

Eric
 
Old 11-25-2009, 02:46 PM   #5
dreamlemon
Member
 
Registered: Feb 2007
Distribution: Slackware
Posts: 37

Original Poster
Rep: Reputation: 15
Hi EricTRA,
I am using xp as host.
I use ntpdate to adjust that debian
via internet.
So Windows has no hwclock.
And I dont have much interest(unless necessay) to build a ntpd in XP.
Do you have more suggestion?
 
Old 11-25-2009, 02:49 PM   #6
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hi,

Well, that's as far as my knowledge and experience goes with with the whole ntp thing. Maybe this site can help you a bit more to fine tune and/or find an error:

Time synchronization with NTP

Kind regards,

Eric
 
Old 11-25-2009, 03:02 PM   #7
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
In general: you really don't want to be querying an NTP server at frequent intervals to try to correct this. (That's impolite in terms of network traffic and sheer requests.) If the drift is pronounced enough, your clock is going to be all over the place. Seven seconds per day is actually not bad.

Besides, this is a known, documented issue: http://kb.vmware.com/selfservice/mic...rnalId=1006427

Read through that KB article and try a google query for "linux vmware clock" if you need more info.
 
Old 11-25-2009, 03:25 PM   #8
dreamlemon
Member
 
Registered: Feb 2007
Distribution: Slackware
Posts: 37

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by anomie View Post
In general: you really don't want to be querying an NTP server at frequent intervals to try to correct this. (That's impolite in terms of network traffic and sheer requests.) If the drift is pronounced enough, your clock is going to be all over the place. Seven seconds per day is actually not bad.

Besides, this is a known, documented issue: http://kb.vmware.com/selfservice/mic...rnalId=1006427

Read through that KB article and try a google query for "linux vmware clock" if you need more info.
1.yes.Unless setting up a ntpd on host or LAN.
2.Actually I did mind even 0.1 second per day
what if you would like to simply time a command or script?
that willl lose precision.
3.that kb does not contain debian 5.X ( only 4.x)
 
  


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
Linux Time Drift Samgari Linux - Server 2 08-19-2009 08:59 PM
Ubuntu and 8.04 VMware Fusion Time skibud2 Ubuntu 4 06-29-2009 12:42 PM
[SOLVED] Time Sync Issues - Clock Drift Way Off - CentOS 5.2, VMware 1.0.8, Plesk CP 8.6.0 bskrakes Linux - Server 13 03-02-2009 02:38 PM
Dell Laptop time drift rockdw Linux - Hardware 0 01-31-2003 07:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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

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