WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Disabling clock set in PV boot?

To: Xen <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] Disabling clock set in PV boot?
From: Evan Lavelle <sa212+xen@xxxxxxxxxxx>
Date: Wed, 04 Nov 2009 15:53:33 +0000
Delivery-date: Wed, 04 Nov 2009 07:54:18 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4AD83A8F.20506@xxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <4AD83A8F.20506@xxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)
A partial answer, for anyone who comes this way in the future:

Is there some way to prevent Xen from setting the clock for a PV guest while booting it?

The answer seems to be no. 'hwclock' doesn't work (as you'd expect), and 'date' is disabled until some point in the boot sequence which I haven't identified. You can't wait till booting has completed to fix the date, because by that time you can have thousands of files which have been incorrectly stamped.

If you really want a guest with an independent system time, then it looks like it has to be hvm. When 'hwclock' is run from rc.sysinit it sometimes sets the date to the Dom0 date (on a cold boot?), and sometimes sets it to the last time at which the DomU shut down. This isn't a problem, because you can insert a 'date' command immediately after 'hwclock' and it works.

You probably also have to turn off SELinux in the guest; the dom0 date leaks through somehow during the boot. There are also a few files in /proc which occasionally seem to get timestamped 3 days in the future, but this is easy enough to fix.

-Evan

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Xen-users] Disabling clock set in PV boot?, Evan Lavelle <=