Re: Linux server time getting out of sync frequently.



On Tue, 2008-05-27 at 14:50 -0700, Josh Miller wrote:
John Horne wrote:
as i recall, there are a few parameters you can set within the vmware app
for the guest os, in order to sync the timing, and to stop the skew from
occuring...

i think you might also have to modify the kernel startup attributes.

The only solution I have found to work is to stop NTP on the guest and
simply run ntpdate (getting the time from other reliable server) every
hour or so via cron. The only 'solution' I have not tried is rebuilding
the kernel. Suggestions like use the PIT time source on the kernel
startup line may well improve the timekeeping, but it still loses time.

Hi, coming into this late, but I have been very successful with the
following solution:

1. make sure all ESX hosts are syncing time via NTP with a reliable source
2. disable NTPD in all guests
3. set each guest to sync time via VMware tools by setting
tools.SyncTime=TRUE
4. in each guest, on the kernel line in grub.conf, set clock=pit and reboot

Tried it, but didn't work. The guests still lost time (although the host
was still accurate).


John.

--
---------------------------------------------------------------
John Horne, University of Plymouth, UK Tel: +44 (0)1752 587287
E-mail: John.Horne@xxxxxxxxxxxxxx Fax: +44 (0)1752 587001

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



Relevant Pages

  • Re: [9fans] THNX linux kernel
    ... That kernel must not have my patches, hmm, I will put my latest kernel ... /*P:100 This is the Launcher code, a simple program which lays out the ... then reads repeatedly from /dev/lguest to run the Guest. ... of the guest memory region. ...
    (comp.os.plan9)
  • [RFC PATCH 2/3] lguest: Boot with virtual == physical to get closer to native Linux.
    ... We still want the kernel address for tlb flushing: ... The Guest kernel expects to be placed in memory at the physical ... int ret, len = 0; ... int demand_page(struct lguest *info, unsigned long cr2, int errcode); ...
    (Linux-Kernel)
  • Re: virtual machines
    ... If the virtual machine monitor you're using only allows for the creation ... Xen hypervisor and, if your kernel is older than 2.6.30, a Xen-patched ... documentation - and then reboot your machine, enabling the hardware ... hardware-virtualized guest system. ...
    (comp.os.linux.misc)
  • Re: A proposal - binary
    ... >> VMI is being proposed as an appropriate way to connect Linux to Xen. ... >>> elsewhere in the kernel. ... guest kernel and the hypervisor isn't fixed how could somone run a 2.6.19 guest ...
    (Linux-Kernel)
  • Re: A proposal - binary
    ... Everywhere in the kernel where we have multiple implementations we want ... VMWare with the task of maintaining their ABI, ... one of the big uses of virtualization will be to run things in sandboxes, when people do this they typicaly migrate the sandbox from system to system over time (working with chroot sandboxes I've seen some HUGE skews between what's running in the sandbox and what's running in the host). ... If the interface between the guest kernel and the hypervisor isn't fixed how could somone run a 2.6.19 guest and a 2.6.30 guest at the same time? ...
    (Linux-Kernel)