When installing VMware Tools on a Windows guest, Time Synchronization is not enabled by default. However, the “best practice” is to enable time synchronization in Windows Guests.
There are several ways to do this from outside the virtual machine, but I wanted to find a way to enable time synchronization from the guest himself, either during installation or after installation.
Surprisingly, it was not as easy as I expected. (I suggested that it would be possible to set this as the / config option during the installation of the tools)
After a bit of searching, I found a way to do this in a VMware article entitled "Using the VMware Tools Command Line Interface".
So, if time synchronization is disabled, you can enable it by running the following command in the guest system:
VMwareService.exe –cmd "vmx.set_option synctime 0 1″
Additional notes
For some (IMHO stupid) reason, this utility requires you to specify the current as well as the new value
0 = disabled 1 = enabled
So - if you run this command on a machine that is already installed, you will get the error "Invalid old value." Obviously, you can “ignore” this error at startup (so this is not a huge deal), but the current design seems a bit dumb. IMHO it would be much more reasonable if you could just indicate the value that you want to set, and not require indicating the current value.
i.e. VMwareService.exe -cmd "vmx.set_option synctime <0 | 1>"
Nirav Shah Aug 23 '11 at 7:24 a.m. 2011-08-23 07:24
source share