Posted by
bryanz on Wed Dec 05 2007 22:07 (
Link)
i'm working on migrating my sites into vmware guests on a new system i have at home and have been having problems with clock drift. i beat my head against the wall for several days until i found the solution. install vmware tools, then in your host's /etc/vmware/config add this:
host.cpukHz = 2400000
host.noTSC = TRUE
ptsc.noTSC = TRUE
and in your guest .vmx add "tools.syncTime = true"
my problem was the intel speedstep hosing the clock rate when it would scale the processor speed up and down to save power. if you have problems with you clock running too fast, append "clock=pit" to your guest's kernel boot parameters. if your clock is running too slow, use "nosmp noapic nolapic". make sure you turn off ntp clock syncing in your guest no matter what, it will mess things up.
here's a link that has more information than you'll ever need to know about vmware clock drift:
http://www.vmware.com/pdf/vmware_timekeeping.pdf