How to keep a VMWare VM's clock in sync?

SCdF picture SCdF · Nov 10, 2008 · Viewed 155.7k times · Source

I have noticed that our VMWare VMs often have the incorrect time on them. No matter how many times I reset the time they keep on desyncing.

Has anyone else noticed this? What do other people do to keep their VM time in sync?

Edit: These are CLI linux VMs btw..

Answer

bernie picture bernie · Nov 10, 2008

If your host time is correct, you can set the following .vmx configuration file option to enable periodic synchronization:

tools.syncTime = true

By default, this synchronizes the time every minute. To change the periodic rate, set the following option to the desired synch time in seconds:

tools.syncTime.period = 60

For this to work you need to have VMWare tools installed in your guest OS.

See http://www.vmware.com/pdf/vmware_timekeeping.pdf for more information