Slow clock in openSUSE 10.3 guest

Discussions related to using VirtualBox on Linux hosts.
Post Reply
egandb
Posts: 7
Joined: 13. Jun 2008, 17:21

Slow clock in openSUSE 10.3 guest

Post by egandb »

Make sure to install VBox Guest Additions in your virtual machines. I spent a lot of extra time, re-installed, re-configured, etc… only to find out that I needed to use the nohz=off kernel option and Guest Additions to get my guest system clock to run at normal speed. Without Guest Additions installed, the clock on my openSUSE 10.3 guest ran extremely slow, unless I had my Win2k guest off.

Setup:
Host: openSUSE 10.3
Guest 1: Win2K
Guest 2: openSUSE 10.3

"Werx gud ya!" :D
frank
Oracle Corporation
Posts: 3362
Joined: 7. Jun 2007, 09:11
Primary OS: Debian Sid
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux, Windows
Location: Dresden, Germany
Contact:

Post by frank »

Are you sure that you compiled the vboxdrv module against the correct kernel sources? I've read some reports like this and every time the problem was that the CONFIG_HZ option of the running kernel was different from the kernel sources vboxdrv was compiled against.
egandb
Posts: 7
Joined: 13. Jun 2008, 17:21

Post by egandb »

Not sure exactly what you're talking about, but I followed the installation instructions as they were provided and it's been working alright since I installed the Guest Additions.
frank
Oracle Corporation
Posts: 3362
Joined: 7. Jun 2007, 09:11
Primary OS: Debian Sid
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux, Windows
Location: Dresden, Germany
Contact:

Post by frank »

I'm talking about the problem that your time was apparently not properly synchronized between guest and host. This can happen for small time differences but not for big differences. I've seen some people reporting problems that their guest clock seems to run at a notably slower or faster speed than the host clock. In almost every case the reason was a miscompiled vboxdrv host Linux kernel module.
egandb
Posts: 7
Joined: 13. Jun 2008, 17:21

Post by egandb »

AFAIK, I compiled it correctly for the kernel version I'm running on. Again, followed directions, but until I installed the Guest Additions, the clock ran very, very slow. I want to say roughly 1 second guest = 4-5 seconds host. Scary slow!
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

If you run it on a laptop, it's possible that the CPU runs at full speed during boot and then trottles back due to powernowd or any other daemon that can change the CPU speed. The other way around is also possible for a clock that is too fast.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
frank
Oracle Corporation
Posts: 3362
Joined: 7. Jun 2007, 09:11
Primary OS: Debian Sid
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux, Windows
Location: Dresden, Germany
Contact:

Post by frank »

egandb, I still assume that the kernel module was wrong compiled, sorry. I've seen to many such reports. The best way to find that out is to completely recompile your kernel, install it and to recompile the kernel module and use it. Of course if this will have a low priority for you if you are happy with the current solution.

Clocking down the CPU frequency shouldn't be an issue with VBox 1.6 anymore.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

Frank Mehnert wrote:Clocking down the CPU frequency shouldn't be an issue with VBox 1.6 anymore.
I didn't know if VB had this issue or not, but VMWare did/does. Thought it might be related.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply