* Is ntpd in guest necessary? @ 2008-11-13 15:56 Michael Tokarev 2008-11-13 17:58 ` David Mair 2008-11-16 14:27 ` Avi Kivity 0 siblings, 2 replies; 5+ messages in thread From: Michael Tokarev @ 2008-11-13 15:56 UTC (permalink / raw) To: kvm@vger.kernel.org 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 ? Thanks! /mjt ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Is ntpd in guest necessary? 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 1 sibling, 0 replies; 5+ messages in thread From: David Mair @ 2008-11-13 17:58 UTC (permalink / raw) To: Michael Tokarev; +Cc: kvm@vger.kernel.org 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 ? What was your experience when you tested with each config? -- David. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Is ntpd in guest necessary? 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 1 sibling, 2 replies; 5+ messages in thread From: Avi Kivity @ 2008-11-16 14:27 UTC (permalink / raw) To: Michael Tokarev; +Cc: kvm@vger.kernel.org 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. -- error compiling committee.c: too many arguments to function ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Is ntpd in guest necessary? 2008-11-16 14:27 ` Avi Kivity @ 2008-11-17 2:51 ` Alberto Treviño 2008-11-17 9:42 ` Michael Tokarev 1 sibling, 0 replies; 5+ messages in thread From: Alberto Treviño @ 2008-11-17 2:51 UTC (permalink / raw) To: Michael Tokarev; +Cc: kvm@vger.kernel.org On Sunday 16 November 2008 07:27:48 am you wrote: > In theory, CONFIG_KVM_CLOCK should avoid the need for ntp. Let us know > if you get different results. I've been running a VM for a couple of days with a 2.6.27 kernel and CONFIG_KVM_CLOCK and the clock is synchronized. Is there a driver we could use on Windows to keep the clock synchronized there as well? ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Is ntpd in guest necessary? 2008-11-16 14:27 ` Avi Kivity 2008-11-17 2:51 ` Alberto Treviño @ 2008-11-17 9:42 ` Michael Tokarev 1 sibling, 0 replies; 5+ messages in thread From: Michael Tokarev @ 2008-11-17 9:42 UTC (permalink / raw) To: kvm@vger.kernel.org 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-11-17 9:42 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 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 is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox