Time drifts in virtual machines and the service console due to the HPET misreporting its frequency
search cancel

Time drifts in virtual machines and the service console due to the HPET misreporting its frequency

book

Article ID: 337676

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

Symptoms:
  • Time drifts at a constant rate in virtual machines
  • Time in the service console drifts


Environment

VMware ESX Server 3.0.x
VMware ESX Server 3.5.x

Resolution

Background

Time drifts in virtual machines and possibly the Service Console can be due to the HPET misreporting its frequency. The term "time drift" describes situations where the reported time diverges from the correct time at an approximately constant rate.
Time drifting in the Service Console is caused by NTP running in the Service Console not being able to correct the time.
All hardware timers run at a slightly different rate than their specified frequency. In most cases this can be compensated for by running time synchronization software such as NTP or w32time. However some HPET implementations misreport their frequency by hundreds of parts per million, which may be more error than the time synchronization software is able to correct. NTP in particular is only able to correct for errors less than 500ppm. In this situation, typically the other timers in the system are running much closer to their specified frequency than the HPET.

Solution

If the HPET is significantly misreporting its frequency, you must disable the use of the HPET.
To do this using the VMware Infrastructure Client:
  1. Click the Configuration tab.
  2. Click Advanced Settings.
  3. Deselect the VMkernel.Boot.timerEnableHPET option in Advanced Settings.

    Alternately, run the command esxcfg-advcfg -k FALSE timerEnableHPET in the Service Console.
Reboot the ESX host for the configuration to take effect.
Affected Hardware: This issue affects machines on which ESX uses the HPET as a reference timer. That is limited to machines with an HPET that fall into one of two categories:
  • IBM x-Series machines with more than one CEC.
  • Machines that use AMD K8 processors.


Additional Information

For more information related to time drifting, see Time in virtual machine drifts due to hardware timer drift (1006072).