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] Time diferrence between dom0 and domU

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Time diferrence between dom0 and domU
From: Matthieu Patou <mat+Informatique.xen@xxxxxxxxx>
Date: Wed, 11 Nov 2009 00:03:23 +0300
Delivery-date: Tue, 10 Nov 2009 22:47:19 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4AF28B04.4090602@xxxxxxxxxxxx>
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: <4AF28B04.4090602@xxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.4pre) Gecko/20090915 Thunderbird/3.0b4
Hello Jordi,
I noticed the same problem and that's pretty nasty on HVM host running windows as the system can't login on domain by defaut due to too big time drift.

I worked around by adding ~ 6 minutes to the time of the domU at startup.

On 05/11/2009 11:21, Jordi Espasa Clofent wrote:
Hi all,

In dom0:

xen01ad:/# ls -l /etc/localtime
lrwxrwxrwx 1 root root 33 2009-07-02 10:51 /etc/localtime ->
/usr/share/zoneinfo/Europe/Madrid
xen01ad:/# ntpdate hora.rediris.es
3 Nov 18:49:46 ntpdate[9558]: adjust time server 130.206.3.166 offset
0.163783 sec

In domU:

xen-ad0006:~# date
Tue Nov 3 18:55:29 CET 2009
xen-ad0006:~# ls -l /etc/localtime
lrwxrwxrwx 1 root root 33 Nov 3 13:24 /etc/localtime ->
/usr/share/zoneinfo/Europe/Madrid
xen-ad0006:~# ntpdate hora.rediris.es
3 Nov 18:55:44 ntpdate[19800]: step time server 130.206.3.166 offset
-294.467004 sec

As you can see, the time difference between dom0 and domU is aprox 6 min.
¿why?

It's supposed that domUs has the dom0's time.

Info:

* I don't use the independent_wallclock
* xen01ad:/# uname -a && xm info
Linux xen01ad 2.6.18-6-xen-amd64 #1 SMP Tue May 5 09:56:33 UTC 2009
x86_64 GNU/Linux
host : xen01ad
release : 2.6.18-6-xen-amd64
version : #1 SMP Tue May 5 09:56:33 UTC 2009
machine : x86_64
nr_cpus : 8
nr_nodes : 1
cores_per_socket : 4
threads_per_core : 1
cpu_mhz : 2110
hw_caps :
178bf3ff:efd3fbff:00000000:00000110:00802001:00000000:000037ff
total_memory : 16383
free_memory : 4161
node_to_cpu : node0:0-7
xen_major : 3
xen_minor : 2
xen_extra : -1
xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32
hvm-3.0-x86_32p hvm-3.0-x86_64
xen_scheduler : credit
xen_pagesize : 4096
platform_params : virt_start=0xffff800000000000
xen_changeset : unavailable
cc_compiler : gcc version 4.3.1 (Debian 4.3.1-2)
cc_compile_by : waldi
cc_compile_domain : debian.org
cc_compile_date : Sat Jun 28 09:32:18 UTC 2008
xend_config_format : 4



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