Time goes backwards

Kip Macy kmacy at freebsd.org
Thu Feb 5 12:03:04 PST 2009


On Thu, Feb 5, 2009 at 11:58 AM, Mister Olli <mister.olli at googlemail.com> wrote:
> hi,
>
>
> Am Donnerstag, den 05.02.2009, 16:58 +0100 schrieb Julian Stecklina:
>> Kip Macy <kmacy at freebsd.org> writes:
>>
>> > Can you please try with the latest sources and let me know if you
>> > still see this?
>>
>> I've tried with r188140 and see no change. It still reverts to Jan 25
>> 00:50 every couple of minutes. dmesg is at
>
> The same for me. Setting 'xen.independent_wallclock=0' in the domU and
> deactivating ntpd in the domU make the time jumps happen nearly
> immediately:
> ======================================================
> virt-001 template_8-CURRENT # while (true); do echo "date"; sleep 10s; done | xm console template_8-CURRENT
> Thu Feb  5 20:52:22 CET 2009
> template_8-CURRENT# date
> Thu Feb  5 20:52:32 CET 2009
> template_8-CURRENT# date
> Thu Feb  5 20:52:42 CET 2009
> template_8-CURRENT# date
> Thu Feb  5 20:52:52 CET 2009
> template_8-CURRENT# date
> Sun Jan 25 00:54:16 CET 2009
> template_8-CURRENT# date
> Sun Jan 25 00:54:26 CET 2009
> template_8-CURRENT# date
> Sun Jan 25 00:54:36 CET 2009
> template_8-CURRENT#

I will take a closer look. This is clearly a separate issue from the
loss of timer interrupts - I had assumed that they were related.



> virt-001 template_8-CURRENT # echo "uname -a" || xm console template_8-CURRENT
> uname -a
> virt-001 template_8-CURRENT # echo "uname -a" | xm console template_8-CURRENT
> virt-001 template_8-CURRENT # xm console template_8-CURRENT
>
> template_8-CURRENT# uname -a
> FreeBSD template_8-CURRENT.blechhirn.net 8.0-CURRENT FreeBSD 8.0-CURRENT #0 r188157: Thu Feb  5 14:53:10 CET 2009     root at template_8-CURRENT.blechhirn.net:/usr/obj/usr/src/sys/freebsd8_XEN  i386
> template_8-CURRENT#
>
>
>
>> Btw, when I do 'reboot' in the virtual machine, it just stops and has to
>> be recreated.
>
> The same problem here. Even with
>        on_reboot   = 'restart'
> in my config file.
>
> Is this a XEN problem, or is it related to the FreeBSD kernel?
>

FreeBSD. A different argument to shutdown needs to be passed for the
reboot case.

-Kip


More information about the freebsd-xen mailing list