[arch-general] system time stucks in a loop
Hi, I have an archlinux virtualbox guest on windows host. The clock of the guest linux is randomly stuck in a few seconds loop, rendering the system in a semi-freeze state. It looks like this: http://dl.dropbox.com/u/841166/archwtf/date2.png It happens irregularly, sometimes not happens for days and sometimes it does this 2-3 times a day. Any ideas what went wrong or how to debug this properly? There is nothing relevant in dmesg nor syslog. Other linux guests don't do this, I also tried different vbox versions, I do not really know what can cause this kind of an error. I searched and could not find a bug like this in neither the vbox bug tracker nor anything kernel related. I'm open to every ideas, this bug is driving me crazy. -- János
Le 22/10/2010 14:26, János Illés a écrit :
I have an archlinux virtualbox guest on windows host. The clock of the guest linux is randomly stuck in a few seconds loop, rendering the system in a semi-freeze state.
Hmm, I've never had this issue, but here are a few ideas: - try to disable ntpd and/or ntpdate (which might be run by cron?) on your guest - try to disable time sync between host and client on the VBox host: http://rickguyer.com/virtualbox-disable-time-sync-between-host-and-client/ - try to add "clock=pit" in your guest kernel boot line: http://support.microsoft.com/kb/918461/en-us/ (I think it's quite rare to have a link to microsoft.com posted here :)) Hope this helps. Regards, -- Thomas/Schnouki
On Fri, Oct 22, 2010 at 14:54, Thomas Jost <schnouki@schnouki.net> wrote:
Hmm, I've never had this issue, but here are a few ideas:
Great ideas, thank you! I learned that the clock kernel parameter is deprecated, it is now called clocksource. Still it is somehow gets ignored, and the kernel uses acpi_pm instead. $ dmesg|grep clock Kernel command line: root=/dev/sda1 resume=/dev/sda2 rootdelay=1 ro vga=787 clocksource=pit Measured 18368 cycles TSC warp between CPUs, turning off TSC clock. Switching to clocksource acpi_pm Something is definitely going on here. I also removed openntpd completely for now, and running the virtual machine without it to see if it helps. -- János
Am 22.10.2010 16:20, schrieb János Illés:
I learned that the clock kernel parameter is deprecated, it is now called clocksource. Still it is somehow gets ignored, and the kernel uses acpi_pm instead.
$ dmesg|grep clock Kernel command line: root=/dev/sda1 resume=/dev/sda2 rootdelay=1 ro vga=787 clocksource=pit Measured 18368 cycles TSC warp between CPUs, turning off TSC clock. Switching to clocksource acpi_pm
Look at this: $ cd /sys/devices/system/clocksource $ ls -F clocksource0/ $ cd clocksource0/ $ ls -F available_clocksource current_clocksource $ cat available_clocksource tsc hpet acpi_pm $ cat current_clocksource hpet Playing around here might help or give ideas. As far as I know, 'tsc' is a bad choice for a clocksource (not sure why or if I am even correct), but a good fallback when acpi_pm fails and hpet is unavailable. Under KVM, I have a special KVM clocksource which synchronizes with the host clock. Similarly on Xen.
On Fri, Oct 22, 2010 at 16:29, Thomas Bächler <thomas@archlinux.org> wrote:
Playing around here might help or give ideas.
Oh, thanks. It seems I only have acpi_pm. Is that normal? $ cat available_clocksource acpi_pm $ cat current_clocksource acpi_pm -- János
On 10/22/2010 09:34 AM, János Illés wrote:
On Fri, Oct 22, 2010 at 16:29, Thomas Bächler <thomas@archlinux.org> wrote:
Playing around here might help or give ideas.
Oh, thanks. It seems I only have acpi_pm. Is that normal?
$ cat available_clocksource acpi_pm $ cat current_clocksource acpi_pm
Is for me: 19:24 nirvana:/sys/devices/system/clocksource/clocksource0> cat available_clocksource acpi_pm 19:24 nirvana:/sys/devices/system/clocksource/clocksource0> cat current_clocksource acpi_pm -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com
On Fri, Oct 22, 2010 at 14:54, Thomas Jost <schnouki@schnouki.net> wrote:
Hope this helps.
I removed openntpd completely and disabled time sync. The vm still freezes eventually. Also, I cannot set clocksource to anything else than acpi_pm Let's go back to brainstorming mode, i welcome any new ideas. -- János
On 10/24/2010 05:06 AM, János Illés wrote:
On Fri, Oct 22, 2010 at 14:54, Thomas Jost <schnouki@schnouki.net> wrote:
Hope this helps.
I removed openntpd completely and disabled time sync. The vm still freezes eventually. Also, I cannot set clocksource to anything else than acpi_pm
Let's go back to brainstorming mode, i welcome any new ideas.
OK, Let's start over. I haven't a clue about your clocksource loop, but I would suggest rebuilding virtualbox using: http://aur.archlinux.org/packages.php?ID=9753 Of all the different packages, I have had great luck with this one. Just download the tarball and untar/ungzip with: tar -xzf virtualbox_bin.tar.gz cd virtualbox_bin/ makepkg -s sudo pacman -U virtualbox_bin-3.2.10-2-x86_64.pkg.tar.xz Then test again. -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com
On 10/25/10 18:18, David C. Rankin wrote:
On 10/24/2010 05:06 AM, János Illés wrote:
On Fri, Oct 22, 2010 at 14:54, Thomas Jost<schnouki@schnouki.net> wrote:
Hope this helps. I removed openntpd completely and disabled time sync. The vm still freezes eventually. Also, I cannot set clocksource to anything else than acpi_pm
Let's go back to brainstorming mode, i welcome any new ideas.
OK,
Let's start over. I haven't a clue about your clocksource loop, but I would suggest rebuilding virtualbox using:
http://aur.archlinux.org/packages.php?ID=9753
Of all the different packages, I have had great luck with this one. Just download the tarball and untar/ungzip with:
tar -xzf virtualbox_bin.tar.gz
cd virtualbox_bin/
makepkg -s
sudo pacman -U virtualbox_bin-3.2.10-2-x86_64.pkg.tar.xz
Then test again.
That might help but if it where me I would build it using "A clean chroot" The instructions to do that is here: http://wiki.archlinux.org/index.php/DeveloperWiki:Building_in_a_Clean_Chroot That way you would not get anything you didn't bargain for ;)
On Mon, Oct 25, 2010 at 17:49, Baho Utot <baho-utot@columbus.rr.com> wrote:
On 10/25/10 18:18, David C. Rankin wrote:
On 10/24/2010 05:06 AM, János Illés wrote:
On Fri, Oct 22, 2010 at 14:54, Thomas Jost<schnouki@schnouki.net> wrote:
Hope this helps.
I removed openntpd completely and disabled time sync. The vm still freezes eventually. Also, I cannot set clocksource to anything else than acpi_pm
Let's go back to brainstorming mode, i welcome any new ideas.
OK,
Let's start over. I haven't a clue about your clocksource loop, but I would suggest rebuilding virtualbox using:
http://aur.archlinux.org/packages.php?ID=9753
Of all the different packages, I have had great luck with this one. Just download the tarball and untar/ungzip with:
tar -xzf virtualbox_bin.tar.gz
cd virtualbox_bin/
makepkg -s
sudo pacman -U virtualbox_bin-3.2.10-2-x86_64.pkg.tar.xz
Then test again.
That might help but if it where me I would build it using "A clean chroot"
The instructions to do that is here:
http://wiki.archlinux.org/index.php/DeveloperWiki:Building_in_a_Clean_Chroot
That way you would not get anything you didn't bargain for ;)
Another suggestion would be to download the puel version from Oracle/Sun (http://download.virtualbox.org/virtualbox/vboxdownload.html) and install it. I use it on two boxes and have not experienced any problems. Myra -- Life's fun when your sick and psychotic!
Am Mon, 25 Oct 2010 18:19:45 -0500 schrieb Myra Nelson <myra.nelson@hughes.net>:
Another suggestion would be to download the puel version from Oracle/Sun (http://download.virtualbox.org/virtualbox/vboxdownload.html) and install it.
That's what the AUR package virtualbox_bin is doing. Heiko
On Mon, Oct 25, 2010 at 18:29, Heiko Baums <lists@baums-on-web.de> wrote:
Am Mon, 25 Oct 2010 18:19:45 -0500 schrieb Myra Nelson <myra.nelson@hughes.net>:
Another suggestion would be to download the puel version from Oracle/Sun (http://download.virtualbox.org/virtualbox/vboxdownload.html) and install it.
That's what the AUR package virtualbox_bin is doing.
Heiko
Sorry bout that, I should have read the pkgbuild first. -- Life's fun when your sick and psychotic!
On Tue, Oct 26, 2010 at 01:38, Myra Nelson <myra.nelson@hughes.net> wrote:
Sorry bout that, I should have read the pkgbuild first.
Or you guys all should have read the original post. The host OS is windows. -- János
2010/10/22 János Illés <ijanos@gmail.com>:
I searched and could not find a bug like this in neither the vbox bug tracker nor anything kernel related.
For the record: I've found a 2 years old bug in virtualbox (still open) http://www.virtualbox.org/ticket/3135 The workaround suggested in the comments (adding divider=10 nolapic_timer to the kernel line) worked for me. -- János
participants (7)
-
Baho Utot
-
David C. Rankin
-
Heiko Baums
-
János Illés
-
Myra Nelson
-
Thomas Bächler
-
Thomas Jost