Jochen
Jochen

Reputation: 1853

Windows time drifting with Qemu/KVM

I have a Windows VM running with kvm/qemu which is experiencing time drift. What would be the optimal libvirt settings for a Windows guest?

Currently I am using this, but it did not help:

<clock offset='localtime'>
  <timer name='rtc' tickpolicy='catchup' track='guest'>
    <catchup threshold='123' slew='120' limit='10000'/>
  </timer>
</clock>

Upvotes: 3

Views: 10734

Answers (1)

Jochen
Jochen

Reputation: 1853

This did the trick for me:

<clock offset='localtime'>
  <timer name='rtc' tickpolicy='catchup' track='guest'/>
  <timer name='pit' tickpolicy='delay'/>
  <timer name='hpet' present='no'/>
</clock>

you also need to make sure Windows uses the platformclock when booting:

bcdedit /set USEPLATFORMCLOCK on

Upvotes: 5

Related Questions