LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-29-2010, 01:36 AM   #1
Stressik
LQ Newbie
 
Registered: Mar 2010
Posts: 10

Rep: Reputation: 0
CentOS time problem - time goes to fast


Hello. I have installed CentOS on a VM2007 (from M$).
Version 2.6.18-164.11.1.el5 (Red Hat 4.1.2-46).
On the instance is installed Asterisk, whole packet is from the AsteriskNOW! CD.
Unfortunately I have problem with time - the time simply goes to fast (or sometimes to slow). I have maked a
Quote:
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-164.11.1.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-164.11.1.el5 ro root=/dev/VolGroup00/LogVol00 clock=pit
initrd /initrd-2.6.18-164.11.1.el5.img
but that didn't help.
I have also tried a ntpdate together with cron, and also failure. Cron works, the log shows, that the script with ntpdate is running but I see no result - I still have a problem with the time.
How can I solve this?
Thanks.
 
Old 03-29-2010, 02:22 AM   #2
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
The problem is the software you are using, this issue is resolved in VirtualBox using Guest Additions, and in VMWare using tools. AFAIK, MS does not support RedHat or CentOS, therefore, there is no guest additions for VM2007. However, I may be wrong, it is worth checking out microsofts support pages.

Just a note on the issue, it is caused by the abstraction layer presented to the guest OS, where the clock cycles of the CPU are presented inaccurately. What you probably notice is that at system start up, the time is correct, since the VM will sync with the host hardware clock at boottime, but then falls out of sync rapidly. The solution that I refer to above essentially creates a link between the host and guest clocks, but as you can imagine, this can only be initiated from the guest OS, not the other way around.
 
Old 03-29-2010, 02:24 AM   #3
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
Well, what do ya know, take a look at this: http://blogs.msdn.com/virtual_pc_guy...available.aspx, it might just solve your problem.
 
Old 03-29-2010, 05:23 AM   #4
Stressik
LQ Newbie
 
Registered: Mar 2010
Posts: 10

Original Poster
Rep: Reputation: 0
I have tried to install AsteriskNOW! on a Sun VirtualBox. Installation goes succesfull, but I can not install Guest Addons:
Quote:
sudo sh /mnt/cdrom/VBoxLinuxAdditions-x86.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 3.1.6 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version of VirtualBox Guest Additions...
Building the VirtualBox Guest Additions kernel modules [FAILED]
(Your system does not seem to be set up to build kernel modules.
Look at /var/log/vboxadd-install.log to find out what went wrong)
Installing the Window System drivers [FAILED]
(Could not find the X.Org or XFree86 Window System.)
I have installed kernel-devel, kernel-headers, dkms gcc, rebooted and still nothing... Is Guest Addons installing required to properly count time?

Edit:
For those with this same issue:
Quote:
yum install kernel sources
yum install kernel-devel
yum install gcc
ln -s /usr/src/kernels/2.6.18-92.1.18.el5-i686 /usr/src/linux
sh VBoxLinuxAdditions-x86.run
Question1
But the question is - what else should I do to make the clock work correct with VirtualBox?

Question2
Why the hell VirtualBOX is so slow? I have running VB on xeon 3050 with sbs2k3 and 2GB of RAM - when I connect to the IVR i hear voice like Zeus - very slow and with flicks. All the CLI also works very slow. VM2007 works fine...
Thanks!

Last edited by Stressik; 03-30-2010 at 01:09 AM. Reason: another issue
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
System time vs Hardware time and Daylight Savings Time Toadman Linux - General 6 03-17-2007 08:12 AM
System time vs Hardware time and Daylight Savings Time Toadman Linux - Networking 6 03-16-2007 07:14 PM
System time too fast stratogratte Linux - Software 2 04-21-2006 03:31 PM
Time Moving Too Fast revof11 Linux - Hardware 7 12-03-2005 07:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration