rtc! Sun xVM: Wrong timezone offset in PV DomU?

| | Comments (0) | TrackBacks (0)
Running paravirtualized Linux Kernels as DomU on Sun xVM/Xen 3.4.2 I had the "little" problem that timezone offsets are not correct. My machines are located in Germany so the Timezone in Linux is "Europe/Berlin". The result:

OpenSolaris Dom0: Tuesday, September 22, 2009  7:06:38 AM UTC
Linux SLES 11 DomU: Tue Sep 22 11:06:38 CEST 2009

"CEST" means Central European Summer Time, and the offset should be two hours, not four!

The solution:
Dom0's real time (hardware) clock has to be set to UTC!
Using Linux as Dom0 this would be a simple  "hwclock --utc" call. On OpenSolaris the command is:

rtc -z UTC

The result will be written permanently in /etc/rtc_config.
Don't forget to do a
 
svcadm disable ntp; ntpdate ...yourtimeserver...; svc enable ntp

DomU Linux machines are immediately changing to the right time (9:06 CEST in the example above).

0 TrackBacks

Listed below are links to blogs that reference this entry: rtc! Sun xVM: Wrong timezone offset in PV DomU?.

TrackBack URL for this entry: http://southbrain.com/mt/mt-tb.cgi/107

Leave a comment

June 2010

Sun Mon Tue Wed Thu Fri Sat
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30      

About

This blog is owned by:

Pascal Gienger
Kanzleistr. 14
78462 Konstanz
Phone +49 7531 584298
Fax +49 7531 584298-9

Phone USA 1-678-791-4182

YouTube Channel: pascalgienger