Just as an FYI cactus, it appears that that link is not functioning at the moment so I'm going to paste the contents of google cached text below for reference in case anyone in the future has need of the contents:
(Original, currently dysfunctional, link to the following text:
http://synapticsolutions.com.au/?page_id=28)
Clock Running fast in CentOS 4.3 [SME7] Guest
First of all thanks to Sonora Communication Inc for for the original HOWTo on this subject.
Vmware White Paper on Timekeeping in Virtual Machines
However we were still gaining time on the Linux guest after applying the changes. After some further reading we came up with this configuration.
We had the same problem not using VMWare at all! it is related to the Duo Core 2 and cpuspeed
Debugged and tested by Robert Slater and Jehandan Jeyaseelan
This howto relates to:
Host System
Hardware.
A fast Xeon on an Intel SMP Motherboard .
Software:
CentOS 4.4 OS pretty much out of the box.
Guest System
SME server version 7 [based on CentOS 4.3]
On with the howto! All the usual disclaimers apply..
Host System Pre-VMware install.
Disable CPUSpeed:
chkconfig –del cpuspeed
Force the host system to use the clock=pmtmr option on next boot:
Edit the file below with your favorite text editor: Be careful…
/boot/grub/menu.lst
EXAMPLE ONLY. YOUR KERNEL WILL BE DIFFERENT
title CentOS (2.6.9-34.X.2.EL)
root (hd0,0)
kernel /vmlinuz-2.6.9-34.X.2.EL ro root=/dev/main/root clock=pmtmr
initrd /initrd-2.6.9-34.X.2.EL.img
Set the Host system to use a timeserver. Please see Centos Documentation on ntpd for this.
Now we have modified the CentOS host sytem we can install Vmware to the system.
Download, install and configure the latest server RPM file. The kernel-source RPM file needs to be installed, as well as the gcc compiler package.
rpm -Uvh VMware-server-xxxxx.i386.rpm
vmware-config.pl
In vmware-config.pl, choose these options (or adjust as desired):
* default file locations
* networking - yes
* vmnet0 bridged to eth0
* NAT - no
* default console connection port [902]
* virtual machines location - the default is fine, but you may want to change this
* serial number - get from VMware web site
If upgrading, don’t bother running the vmware-config-mui.pl just yet
Download, install and configure the latest server web interface file. This interface allows viewing the status and control of the VMware Server remotely via a web browser.
tar -xzvf VMware-mui-xxxxx.tar.gz
cd vmware-mui-distrib
./vmware-install.pl
In vmware-install.pl, choose these options (or adjust as desired):
* default file locations
* run vmware-config-mui.pl - yes
then:
cd ..
Download, install and configure the latest server console file. This can be installed on most any PC. These instructions are for a Linux client.
unzip VMware-server-linux-client-xxxxx.zip
rpm -Uvh VMware-server-console-xxxxx.i386.rpm
/usr/bin/vmware-config-server-console.pl
Install Guest OS
You now have install SME 7 as you would for a physical machine.
Configure the Guest OS
Edit /etc/modprobe.conf . You will see a line like this:
pcnet32
make it look like this:
#pcnet32
Save the file
Next we are going to do the same for the guest OS as the host OS.
Edit the /boot/grub/menu.lst
EXAMPLE ONLY. YOUR KERNEL MAY BE DIFFERENT
title CentOS (2.6.9-34.0.2.EL)
root (hd0,0)
kernel /vmlinuz-2.6.9-34.0.2.EL ro root=/dev/main/root clock=pmtmr
initrd /initrd-2.6.9-34.0.2.EL.img
Install the VMware Tools RPM
At VMware Console, click VM->Install VMware Tools.
At SME host console, enter:
mount /dev/cdrom /media/cdrom
rpm -Uvh /media/cdrom/VMwareTools-*.i386.rpm
vmware-config-tools.pl
Follow the instructions displayed on the screen to implement the vmxnet driver.
Start VMware Tools
At the SME console:
/etc/rc.d/init.d/vmware-tools start
Make VmTools tools start on reboot:
ln -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S19vmware-tools
/sbin/e-smith/db configuration set vmware-tools service status enabled
/sbin/e-smith/signal-event post-upgrade
/sbin/e-smith/signal-event reboot
Shutdown the SME 7 Guest machine again if you have it set to autostart on host reboot.
Edit the *.vmx file, the default location for the virtual machines .vmx file is:
/var/lib/vmware/Virtual Machines/VIRTUAL_MACHINE_NAME.vmx
Add the line below to this file.
tools.syncTime = “TRUE”
Save the file.
Shutdown all guest operating systems
Shutdown main server. This may take some time…Don’t think it’s hung. Wait for the shutdown to complete.
Time Setup
Configure SME 7 to use local time not a a network time server.
For a full explanation of this please see the white paper.
VMWare Clock running slowly!!
This howto stop the clock running to fast.
If your clock is running slowly then add some more kernel parameters.
title CentOS (2.6.9-34.0.2.EL)
root (hd0,0)
kernel /vmlinuz-2.6.9-34.0.2.EL ro root=/dev/main/root clock=pmtmr nosmp noapic nolapic
initrd /initrd-2.6.9-34.0.2.EL.img
These are not tested by us, but are from the vmware white paper.
This document is subject to the terms and conditions of the GNU GPL