vmware fast clock

I encountered an interesting problem when I transfered my Vmware operating system to my new computer. The clock on my virtual OS was way off. I noticed that the seconds were going by a lot faster than they should be which caused the incorrect time. A google search indicated that I needed to add some flags to the vmware configuration file to specify “the correct maximum CPU speed.” See for yourself, Host Power Management Causes Problems with Guest Timekeeping (Windows Hosts). As stated in the VMware Kb article, the cause of this issue is that my CPU takes advantage of a dynamic clock (cpuspeed). Anyway, the article provided a clear solution to add the following three lines to your ‘config.ini’ file for a 1.7Ghz CPU:

host.cpukHz = "1700000"
host.noTSC = "TRUE"
ptsc.noTSC = "TRUE"

The problem is that the article only provided Windows paths for this config.ini file. However, if your host OS is Linux, the equivalent file is located in /etc/vmware/config. Problem solved, good luck.

By the way, the article also provides some instructions to determine your systems clock speed. In Linux, this would be done by:

cat /proc/cpuinfo | grep "CPU MHz"