LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-28-2011, 10:03 AM   #1
thllgo
Member
 
Registered: Sep 2003
Location: Laurel MD
Posts: 296

Rep: Reputation: 32
ubuntu, KVM and date/time clock problems


Hello,

I've been searching the web for about two days and have found sites that admit there are timing problems with KVM virtual machines but have not found a site that explains the problem in depth or how to correct it. Does anyone know of a good site that will explain the problems and how to correct them?

I'm running several VM Linux guests on a some Ubuntu hosts under KVM and all of them have severe clock issues. Within a week of setting the time and starting NTP they are all wrong by several hours, one was fast by nearly a day and a half. I've been a sys admin for nearly 20 years and have never seen such clock drift issues.

The physical hosts are all Dell 2850s and 2950s running Ubuntu with Kernel 2.6.28-18-server, that's Ubuntu 9 I believe (far more experience with RH than Ubuntu). The guest OS is RHEL 5.1. Running the command "cat /proc/cpuinfo |grep constant_tsc" does not produce output so I don't have a tsc on my CPUs. Since the guests are all RHEL 5.1 it is my understanding they don't use the para-virtualized clock either.

Any help will be greatly appreciated.
 
Old 04-03-2011, 06:37 PM   #2
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
Although I don't know about KVM VMs, I do know that VirtualBox and
VMware VMs can have problems with time. It usually happens because
the system's timeclock assumes that the cpu runs consistently, but
in a VM (especially if the host uses frequency scaling) the cpu gets
varying numbers of cpu cycles per time unit. This is what causes
the drift.

A general suggestion is to not use time synchronization with the
host and then use ntp inside the guest.

You may want to search for suggestions for VMware time shift,
since I have seen a page that has different recommendations for
various versions of various distros.
 
1 members found this post helpful.
Old 04-04-2011, 08:33 AM   #3
thllgo
Member
 
Registered: Sep 2003
Location: Laurel MD
Posts: 296

Original Poster
Rep: Reputation: 32
This seems to be the general consensus I've been finding on the web for various implementations of VMs. I read one post that suggested using NTP and disabling getting timing from the local clock. I've been trying the section on NTP recommendations and it seems to work.

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


Reply



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
Time Warp / Clock Problem - Ubuntu Alternate CD install over Ubuntu Server krimzen85 Linux - Software 2 08-07-2009 10:01 AM
clock-adjustment time is offseet from clock-display time bezdomny Linux - Desktop 2 11-19-2008 02:48 PM
Date, clock and time zone settings varun_saa Mandriva 2 05-05-2008 07:10 AM
Setting system date and time affecting the clock and date on BIOS satimis Ubuntu 7 09-21-2007 08:02 AM
Various clock issues: Clock shows wrong time only in Knoppmyth, & CMOS time change ? davidbix General 1 04-05-2006 09:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:14 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
Open Source Consulting | Domain Registration