libvirt KVM driver need special timer policy settings for reliable guest time keeping
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Daniel Berrange |
Bug Description
There are a number of emulated timers presented to KVM virtual machines, the most important of which are the PIT and the RTC. Unfortunately the default KVM/QEMU policies for these timers is sub-optimal, raising potential for BSOD in Windows 7 guests and time drift in old Linux guests (those with kernels lacking KVM clock). To address this, Nova needs to set a couple of custom policies for KVM guests. The following XML can be used
<clock offset='utc'>
<timer name='pit' tickpolicy=
<timer name='rtc' tickpolicy=
</clock>
Which corresponds the following KVM options
-
-rtc base=utc,
The PIT and RTC settings are required for Linux guests, and the RTC setting is required for Windows guests. The PIT setting should not adversely affect Windows guest, so it is reasonable at this point to set both settings for all guests. In the future this ought to be configurable per guest OS type and disk images identified by OS type somehow.
Changed in nova: | |
milestone: | none → folsom-2 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | folsom-2 → 2012.2 |
Fix proposed to branch: master /review. openstack. org/8422
Review: https:/