This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Huge timedrifts when running under KVM

I'm running ASG 7.306 in a virtualised environment with linux KVM. The timedrift I experience are quite huge. (10 secs on 30 minutes)

With the ntp function I can't seem to catch up, it seems ntpd only syncs when it's started and never again.

Other KVM guests are experience these timedrifts, so I don't blame it on KVM.

Are there ways to keep the timedrift to an absolute minimum? (Kernels of other guests are compiled with KERN_HZ=100, probably this is an issue)


This thread was automatically locked due to age.
Parents
  • You might be able to pass parameters such as KERN_HZ=100 in through the bootloader (e.g. GRUB).

    Otherwise, you could try hacking the NTPd settings to sync more often.

    Barry
  • KVM? Keyboard/Video/Mouse?

    Are you using Virtual Infrastructure 3? VMware Server?

    I noticed the VMware image shipped for 7.306 is in an old mode (4) and ships legacy VMware tools. These must be updated to work correctly.

    Generally, you should never perform a time sync using an NTP client on a VM. Time synchronisation is always handled by VMware Tools accepting time updates from the underlaying host. This is because the clock calculations are generally incorrect since the number of ticks presented by the virtualised hardware is not necessarily the same as the number of ticks presented by the physical hardware.  Here's the best practices guide:

    http://www.vmware.com/pdf/vmware_timekeeping.pdf

    So if you are using ESX, you need to configure NTP on the ESX host itself and let the time be replicated to the guest: Installing and Configuring NTP on VMware ESX Server

    If you are using Server you need to configure NTP appropriately for the host (w32time service on Win and NTPD on Lin syncing against the lowest stratum NTP servers in your region as source from pool.ntp.org). Again ensure you have the latest VMware tools client installed.

    Lastly, ensure NTP is disable in your ASG VM.

    Hope this helps!
  • KVM is a linux-based VM system, not related to VMWare.

    Barry
Reply Children