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

[Xen-users] Setting kernel time zone in domU?

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Setting kernel time zone in domU?
From: Rich Wales <richw@xxxxxxxxx>
Date: Sat, 22 Dec 2007 21:04:19 -0800
Delivery-date: Sat, 22 Dec 2007 21:05:16 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <4769C294.7030203@xxxxxxxxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <380-220071211724520781@xxxxxxxxxxxxxx> <47661107.1040709@xxxxxxxxxxxxxxxxxxxx> <47662393.9080108@xxxxxxxxxxxx> <4766C714.3020102@xxxxxxxxxxxxxxxxxxxxxxxx> <4769C294.7030203@xxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666
Earlier, I wrote:

> The domU was freezing up in /etc/rcS.d/S11hwclock.sh -- presumably
> while trying to run /sbin/hwclock.  I mounted the domU's disk, added
> HWCLOCKACCESS=no to /etc/default/rcS -- bypassing the clock setting
> code (presumably unnecessary, right?, since the domU's clock is
> simply a reflection of the dom0's clock?) -- and the domU comes up
> just fine now.

Well, almost.  Two problems remain:

(1) The startup of a domU stalls for about three minutes, apparently
    in the /etc/rcS.d/S11hwclock.sh script.  I can get rid of this
    delay by making /sbin/hwclock non-executable (chmod 000).

(2) My local time zone is not being set during startup -- the system
    thinks it should use UTC.  "hwclock --hctosys" is supposed to set
    the kernel's timezone value, but that isn't happening because I
    set HWCLOCKACCESS=no, bypassing the "hwclock" calls in hwclock.sh.

Any suggestions for setting the kernel's timezone value to the local
timezone in a domU without running "hwclock --hctosys"?

-- 
Rich Wales      ===      Palo Alto, CA, USA      ===     richw@xxxxxxxxx
http://www.richw.org   ===   http://en.wikipedia.org/wiki/User:Richwales

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