Linux Clock

Discussions about using Linux guests in VirtualBox.
Post Reply
Hortnon
Posts: 22
Joined: 1. Jul 2009, 19:17
Primary OS: MS Windows 2008
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Solaris, Linux, Windows

Linux Clock

Post by Hortnon »

So with the recent releases of VirtualBox, the clock issues have mostly been resolved. My Ubuntu systems now don't race at about 3x speed. But fresh installs of CentOS and RedHat with Guest Additions installed still do. I think this is probably what causes a problem I'm having where a single key press puts like 15 of the letter down.

Anyway, this makes it very difficult to use, and could cause problems with clustering or database software. Any ideas what could be done to fix this?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Linux Clock

Post by Perryg »

Are you sure that the guest additions were successfully installed. I do not have this problem with any guest OS after the GAs are installed.
Hortnon
Posts: 22
Joined: 1. Jul 2009, 19:17
Primary OS: MS Windows 2008
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Solaris, Linux, Windows

Re: Linux Clock

Post by Hortnon »

Well, I get mouse integration and the desktop is able to resize correctly if I resize the VM window
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Linux Clock

Post by Perryg »

I see where you and Frank (Sun) have been working on this issue since ver 3.0.4. I have no idea why I do not have this issue but you should probably issue a ticket in bugtracker about this. (or reopen an existing one) From what I read they think the issue is fixed.
Hortnon
Posts: 22
Joined: 1. Jul 2009, 19:17
Primary OS: MS Windows 2008
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Solaris, Linux, Windows

Re: Linux Clock

Post by Hortnon »

I'm also confused because the other VM's that I was having the issue with I no longer am. But now 3 freshly installed OS's with nothing but the guest additions have the issue.

Here's the ticket for anyone else's reference:

http://www.virtualbox.org/ticket/5925
EmmEff
Posts: 24
Joined: 17. Sep 2008, 23:22

Re: Linux Clock

Post by EmmEff »

I'm experiencing the same problem with a Ubuntu 9.04 (x86_64) host and an Oracle Enterprise Linux 5.3 x86_64 guest. I have the Guest Additions installed as well and the clock still lags.
MarkCranness
Volunteer
Posts: 875
Joined: 10. Oct 2009, 06:27
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows Server 2008 R2; Ubuntu 11.04; Windows 2000 Server; Windows XP

Re: Linux Clock

Post by MarkCranness »

Perhaps check the TM: cTSCTicksPerSecond= value (look in VBox.log) agrees with the CPU clock rate.
Force set it with:

Code: Select all

VBoxManage setextradata "<VMName>" "VBoxInternal/TM/TSCTicksPerSecond" <rate>
For Linux-ey guests people have reported (IIRC) that setting some combination (one or more) of the nolapic_timer, noapic, nolapic, notsc kernel parameters helps.

If you can stand it, try disabling all CPU power save features (EIST in the BIOS and/or try an 'Always on' power schemes).
Hortnon
Posts: 22
Joined: 1. Jul 2009, 19:17
Primary OS: MS Windows 2008
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Solaris, Linux, Windows

Re: Linux Clock

Post by Hortnon »

STILL having this issue, with 5.4 and 3.2.4 installed with a fresh guest....now keyboard freaks out and types 20-50 characters when it was only pressed for a second. VM has been up 10 min and is 5 min ahead so far.
Post Reply