Synchronized time with kvm_clock

Alex Hermann
2010-04-26T10:08:05Z

Hello all,

from the various sources google comes up with, it seems kvm_clock is now the
preferred clock source for kvm guests. I was hoping it would keep the time
synced with the host, but apparentely it doesn't. I'm seeing a pretty steady 1
sec diff between host and guest. The host is synced with external time sources
by means of ntp.

Am I supposed to run ntp inside the guest when using kvm_clock as a
clocksource? Othwerwise, what clocksource should be used in the guest
1) to automatically get synced time with the host? or
2) which can be used alongside ntpd in the guest?

host:
cat /sys/devices/system/clocksource/clocksource0/current_clocksource
tsc

guest:
cat /sys/devices/system/clocksource/clocksource0/current_clocksource
kvm-clock

Pleas cc me, I'm not on the list.
--
Greetings,

Alex Hermann