Weblog entry #13 for lters

Xen Servers and Time
Posted by lters on Tue 15 Apr 2008 at 21:10
Tags: none.
With a new install of Xen and Etch, than using the xen tools to install a new copy of Etch, the time seems to stay off.

The system has minimal config changes and creating the xen client looks like this:
xen-create-image --hostname Xrrr.my.flat --ip 10.1.1.1 --dist etch


Installing ntpdate and running ntpdate -b myntpserver does not seem to fix it.
Tzconfig changes the timezone but does not fix it.
It still seems to be about 5 hours off.

Why is a xen client different than regular Etch?

 

Comments on this Entry

Posted by mwr (149.149.xx.xx) on Wed 16 Apr 2008 at 00:58
[ Send Message | View Weblogs ]
IIRC, if you set the time properly in the Xen dom0, all the domU servers will automatically get the right time. So do the ntpdate/ntpd stuff there instead, since ntpdate/ntpd don't work in Xen domU servers anyway.

[ Parent | Reply to this comment ]

Posted by Anonymous (217.237.xx.xx) on Wed 16 Apr 2008 at 08:11
I can remember having the same problem on multiple xen machines and I think on hardware machines too. They were also 5-6h off.
I m not 100% sure what fixed it for me, but I think I did something with the links to /usr/share/zoneinfo/Europe/Berlin or I wrote into /etc/timezone Europe/Berlin by Hand. Something didnt work right with tzconfig I think.
Sorry for not giving more details.
---------------------------
Yes.... I compared my homeserver and a xen server at work. At home /etc/localtime is symlinked to /usr/share/zoneinfo/Europe/Berlin. I think at work I piped the content of Berlin to localtime directly for some reason. (But still, I run ntp)

[ Parent | Reply to this comment ]

Posted by i5513 (213.227.xx.xx) on Wed 16 Apr 2008 at 19:04
[ Send Message | View Weblogs ]
I don't know why is necessary, but you have to run tzconfig and choose your alternative "again" to clock works

[ Parent | Reply to this comment ]

Posted by lters (69.176.xx.xx) on Wed 16 Apr 2008 at 12:53
[ Send Message | View lters's Scratchpad | View Weblogs ]
Thanks for the comments.

I did not have Dom0 working right.
Fixing that fixed the problem.

respectfully, lters

[ Parent | Reply to this comment ]

User Login

Username:

Password:

[ Advanced Login ]

Register Account

Quick Site Search