From: Michael Tokarev <mjt@tls.msk.ru>
To: "kvm@vger.kernel.org" <kvm@vger.kernel.org>
Subject: Re: Is ntpd in guest necessary?
Date: Mon, 17 Nov 2008 12:42:07 +0300 [thread overview]
Message-ID: <49213C6F.4050502@msgid.tls.msk.ru> (raw)
In-Reply-To: <49202DE4.3030801@redhat.com>
Avi Kivity wrote:
> Michael Tokarev wrote:
>> A question that I asked on irc many times,
>> but got no answer..
>>
>> Giving guest linux with CONFIG_KVM_TIME set,
>> is it necessary to run ntpd in it for accurate
>> time, or ntpd on host is sufficient?
>>
>> And the same, but without CONFIG_KVM_TIME ?
>
> In theory, CONFIG_KVM_CLOCK should avoid the need for ntp. Let us know
> if you get different results.
Well. The question was not come from nowhere.
It *seems* like it is working, but somewhat.. strange.
I.e., when the time steps on the host (for whatever reason),
it stays the same on guests, at least for some time. Later
on it syncronizes, *sometimes*, but not always. I tried to
reproduce this unsyncronization (hence the delay with replying),
but can't do it easily "on demand". Maybe I were just dreaming
at the time I saw it, but I don't think so. Or maybe something
has changed in recent kernels/kvm so that it does not happen
any more. That's why I asked in the first place.
In short: with CONFIG_KVM_TIME set, it *seems* to work, but
I'm not 100% sure still. The question was if it *supposed*
to work in the first place, and you answered that.
And withOUT CONFIG_KVM_TIME, it stays unsyncronized.
Thanks!
/mjt
prev parent reply other threads:[~2008-11-17 9:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-13 15:56 Is ntpd in guest necessary? Michael Tokarev
2008-11-13 17:58 ` David Mair
2008-11-16 14:27 ` Avi Kivity
2008-11-17 2:51 ` Alberto Treviño
2008-11-17 9:42 ` Michael Tokarev [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49213C6F.4050502@msgid.tls.msk.ru \
--to=mjt@tls.msk.ru \
--cc=kvm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox