Timekeeping with VMware on Linux

30Jun07

Clock

If you’re like most users, you have some form of power management installed in Linux, especially if you are using a laptop. These power management applications typically scale down the processor speed resulting in your guest OS’s clock running faster than your host’s clock (source).

If you have VMware Tools installed, you can go into the options tab and enable “Time synchronization between the virtual machine and host operating system”. Unfortunately, this doesn’t keep the clock synchronized at all times for some users but rather synchronizes it at intervals. One solution to fix this time problem is to specify the maximum CPU speed in VMware’s configuration file. To do this you need to edit the configuration file:

sudo gedit /etc/vmware/config

With the configuration file open, look for the following lines:

host.cpukHz = 1830000
host.noTSC = TRUE
ptsc.noTSC = TRUE

If they do not exist go ahead and add them. Change the 1830000 number to match the frequency of your CPU. For example 1830000 = 1.83GHz. Once you have done this, restart VMware and boot into your guest OS, your clock should now stay in sync with your host OS.

Advertisements


One Response to “Timekeeping with VMware on Linux”


  1. 1 Timekeeping in VMWare « Dünnes

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: