From: Keir Fraser Subject: Re: Dom0 <> DomU clock sync Date: Mon, 03 Sep 2007 15:17:30 +0100 Message-ID: References: <46DC1511.6020302@swisscenter.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <46DC1511.6020302@swisscenter.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: S=?ISO-8859-1?B?6Q==?=bastien RICCIO Cc: xen-devel List-Id: xen-devel@lists.xenproject.org On 3/9/07 15:07, "S=E9bastien RICCIO" wrote: > Ntpd is not running in dom0. I am updating the dom0 time with ntpdate > (crontab every hour). > Should ntpd be running on dom0 ? So long as ntpdate calls settimeofday(), this should be sufficient to updat= e Xen's notion of time too. It seems that isn't happening for some reason. Do all guests (including dom0) have independent_wallclock equal to 0? What kernel are you using in dom0 (e.g., vendor kernel?). Ntpd in dom0 would be an interesting thing to try. That should cause dom0 t= o periodically (every few minutes) push its time down to Xen to be picked up by all domUs. But really ntpdate should be doing the right thing... In our kernels it should be *impossible* for dom0 and domU time to diverge when independent_wallclock is set to zero everywhere... -- Keir