Results 1 to 1 of 1
  1. #1
    Join Date
    Oct 2011
    Posts
    46
    Thanks
    0
    Thanked 7 Times in 6 Posts
    Rep Power
    10

    Linux ntp time Offset on Xen VM incorrect

    I noticed that one of our VM's clocks wasn't being updated correctly on Linux CentOS VM that we are running on a XenServer. I did a number of things to confirm that NTP was updating, but for whatever reason, the clock still came up with a high offset (18+ seconds). After a lot of searching I found that by default, the VM's clocks are synchronized to the HOST clock running on the control domain, and cannot be independently changed. This was surprising to me because NTP was still configured and appeared able to synchronize the clocks.

    This makes sense from a CPU saving standpoint, as only one server really needs to be running the NTP service, so long as all VM's can update their clocks off of it. If you want to override this setting, just add the following line to your /etc/sysctl.conf file

    Code:
    # Allow the VM to update it's own clock, and do not use the DOM host clock.
    xen.independent_wallclock=1

    and then restart networking
    service networking restart

    Good luck!
    Greg

  2. The Following User Says Thank You to gcawood For This Useful Post:

    Rob (02-15-2012)




 

 

Similar Threads

  1. First time using Linux
    By Allison in forum Getting Started
    Replies: 20
    Last Post: 04-29-2012, 02:01 AM
  2. Replies: 0
    Last Post: 01-22-2012, 03:50 PM
  3. Replies: 0
    Last Post: 12-17-2011, 06:52 PM
  4. Replies: 0
    Last Post: 12-03-2011, 10:27 PM
  5. Best Time-Tracking Applications for Linux
    By Fred in forum Linux News
    Replies: 0
    Last Post: 11-28-2011, 11:52 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
           








Check out Linux Central for Linux software and other goodies!





» Stats

Members: 3,578
Threads: 3,920
Posts: 9,446
Top Poster: Fred (1,486)
Welcome to our newest member, BarronBetts

» Links



Powered by vBadvanced CMPS