Re: system time

Simon Gao
2007-09-27T18:26:01Z

Farkas Levente wrote:
> Avi Kivity wrote:
>
>>> this means it's better to run ntpd on all guests even if it's running on
>>> the host:-((
>>>
>>>
>> I think there are issues with running ntp on the guest due to tsc being
>> very inaccurate on virtualized guests.
>>
>
> does this means itás not possible to run a guest with accurate time?
>
>
You can try cron job like this:

15,30,45 * * * * ntpdate 'some time server' > /dev/null 2>&1

To use ntpdate, ntpd must not run. Adjust frequency of time sync
accordingly

Of course, it would be nice to implement something in kvm to help guest
sync up with host.

Simon