Hi all, where can I set the date in domU. ''ntpdate -u ...'' works but dosn''t set the date. date MMDDhhmm has also no effect. What can I do? -- cu Roland Kruggel mailto: rk-liste@gmx.de System: Intel 3.2Ghz, Debian etch, 2.6.15, KDE 3.4 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Am Dienstag, 7. Februar 2006 12:18 schrieb Roland M. Kruggel:> Hi all, > > where can I set the date in domU. > > ''ntpdate -u ...'' works but dosn''t set the date. > > date MMDDhhmm has also no effect. > What can I do?Sorry, my system ist debian in dom0 and domU and xen 3.0 -- cu Roland Kruggel mailto: rk-liste@gmx.de System: Intel 3.2Ghz, Debian etch, 2.6.15, KDE 3.4 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Tue, Feb 07, 2006 at 12:22:26PM +0100, Roland M. Kruggel wrote:> Am Dienstag, 7. Februar 2006 12:18 schrieb Roland M. Kruggel: > > Hi all, > > > > where can I set the date in domU. > > > > ''ntpdate -u ...'' works but dosn''t set the date. > > > > date MMDDhhmm has also no effect. > > What can I do? > > Sorry, my system ist debian in dom0 and domU and xen 3.0It gets the time from the dom0. Set it in the dom0 to change it in all domU, unless they have independent clocks. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Am Dienstag, 7. Februar 2006 13:43 schrieb Andy Smith:> On Tue, Feb 07, 2006 at 12:22:26PM +0100, Roland M. Kruggel wrote: > > Am Dienstag, 7. Februar 2006 12:18 schrieb Roland M. Kruggel: > > > Hi all, > > > > > > where can I set the date in domU. > > > > > > ''ntpdate -u ...'' works but dosn''t set the date. > > > > > > date MMDDhhmm has also no effect. > > > What can I do? > > > > Sorry, my system ist debian in dom0 and domU and xen 3.0 > > It gets the time from the dom0. Set it in the dom0 to change it in > all domU, unless they have independent clocks.I think it so too. But I have a differece between domU and dom0 for 12 seconds -- cu Roland Kruggel mailto: rk-liste@gmx.de System: Intel 3.2Ghz, Debian etch, 2.6.15, KDE 3.4 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Em Ter, 2006-02-07 às 12:18 +0100, Roland M. Kruggel escreveu:> Hi all, > > where can I set the date in domU. > > ''ntpdate -u ...'' works but dosn''t set the date. > > date MMDDhhmm has also no effect. > What can I do?Hi, The clock of domU is tied with the dom0 clock. If you are using Xen-2.0, you can to disentail it making echo 1 > /proc/sys/xen/independent_wallclock in domU. At boot time you can add independent_wallclock=1 passing as argument to kernel. I don''t know if it works in Xen-3.0. -- Lucas de Souza Santos - 7F8050A6 @ http://subkeys.pgp.net _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Roland M. Kruggel schrieb:>Am Dienstag, 7. Februar 2006 13:43 schrieb Andy Smith: > > >>On Tue, Feb 07, 2006 at 12:22:26PM +0100, Roland M. Kruggel wrote: >> >> >>>Am Dienstag, 7. Februar 2006 12:18 schrieb Roland M. Kruggel: >>> >>> >>>>Hi all, >>>> >>>>where can I set the date in domU. >>>> >>>>''ntpdate -u ...'' works but dosn''t set the date. >>>> >>>>date MMDDhhmm has also no effect. >>>>What can I do? >>>> >>>> >>>Sorry, my system ist debian in dom0 and domU and xen 3.0 >>> >>> >>It gets the time from the dom0. Set it in the dom0 to change it in >>all domU, unless they have independent clocks. >> >> > >I think it so too. >But I have a differece between domU and dom0 for 12 seconds > >I have experienced things like that when I ran a ntp-server inside a domU (which I should have known does not work ...). Dirk _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
I use ntp-server in each domain - dom0 and all domUs. Do: echo 1 > /proc/sys/xen/independent_wallclock in each domU. I don''t do it in dom0. Works great for me. I using xen 3.0 and 3.01. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 2/10/06, Bob <maillists@zooid.com> wrote:> > I use ntp-server in each domain - dom0 and all domUs. > > Do: > > echo 1 > /proc/sys/xen/independent_wallclock > > in each domU. I don''t do it in dom0. > > Works great for me. I using xen 3.0 and 3.01. >Is it possible to ensure this from dom0 for all domU''s ? Or the only way is from inside the domU ? -- regards, Anand Gupta _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 2/10/06, Ralf Schmitt <ibm.tivoli@arcor.de> wrote:> > you could add this function to sysinit or the cron table in all domU > systems. >The reason i asked because the vm''s will be used by different customers and if a parameter existed it could be given to domU''s config file itself to avoid editing of templates of different os''s. -- regards, Anand Gupta _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
you could add this function to sysinit or the cron table in all domU systems. Regards Ralf Anand Gupta wrote:> On 2/10/06, Bob <maillists@zooid.com> wrote: > I use ntp-server in each domain - dom0 and all domUs. > > Do: > > echo 1 > /proc/sys/xen/independent_wallclock > > in each domU. I don''t do it in dom0. > > Works great for me. I using xen 3.0 and 3.01. > > Is it possible to ensure this from dom0 for all domU''s ? Or the only > way is from inside the domU ? > > > -- > regards, > > Anand Gupta > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Fri, 2006-02-10 at 20:01 +0530, Anand Gupta wrote:> On 2/10/06, Ralf Schmitt <ibm.tivoli@arcor.de> wrote: > you could add this function to sysinit or the cron table in > all domU > systems. > > The reason i asked because the vm''s will be used by different > customers and if a parameter existed it could be given to domU''s > config file itself to avoid editing of templates of different os''s. > > --Since ntp is so important, regardless of os, I just put echo 1 > /proc/sys/xen/independent_wallclock at the top of each domU''s ntp sysinit script. This was the only way I found to get reliable time sync. When I let the domU''s get their time from dom0, times would vary more than I found acceptable. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi, On Fri, Feb 10, 2006 at 05:12:21PM +0530, Anand Gupta wrote:> On 2/10/06, Bob <maillists@zooid.com> wrote: > > > > I use ntp-server in each domain - dom0 and all domUs. > > > > Do: > > > > echo 1 > /proc/sys/xen/independent_wallclock > > > > in each domU. I don''t do it in dom0. > > > > Works great for me. I using xen 3.0 and 3.01. > > > > Is it possible to ensure this from dom0 for all domU''s ? Or the only way is > from inside the domU ?Just a guess: Replace static int independent_wallclock = 0; by static int independent_wallclock = 1; in the xenified kernel sources ( arch/i386/kernel/time-xen.c ) and recompile the kernel. Regards, Frank _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users