Thank you for your reply, but vmware-cmd runs on the ESX host, not within a guest. The action needs to occur within the guest, just as checking the box occurs within the guest.
As it turns out there is some documentation for this in the workstation 6 beta. I will try this and post the results. I figured I'd post this now, in the event that anyone else gets to it before I can repost.
Finally got around to updating this thread. VMware workstation 6 has been GA for a bit, and the following is in that documentation (Start at Page 145). I have not checked to see if it is included in ESX 3.0.2 documentation.
In order to enable or disable Vmware Tools time sync, the .vmx file needs to be adjusted. In order to do this and have it take effect without a power off/power on operation, one has to do this from the guest.
There are two options for this. The first is to open the vmware tools icon in windows (or the vmware-toolbox X application in GNU/Linux) and select or deselect the time sync option.
The other, and what I was looking for at the start of this thread is the command line method.
For windows, use vmwareservice.exe for linux, use vmware-guestd. The command requires that you specify both the current and the future value correctly for this to work :
vmwareservice (or vmware-guestd) --cmd "vmx.set_option synctime " where 0 denotes FALSE and 1 denotes TRUE.
SO for example,
enable VMware time sync where it was previously disabled:
vmwareservice --cmd "vmx.set_option synctime 0 1"
...and to turn it back off:
vmwareservice --cmd "vmx.set_option synctime 1 0"
turn it on...
vmware-guestd --cmd "vmx.set_option synctime 0 1"
...and turn it back off:
vmware-guestd --cmd "vmx.set_option synctime 1 0"
Is there a way to enable/disable
If I try for example
vmservice --cmd "vmx.set_option time.synchronize.restore 1 0"
its returning Unknown option name
Hi i am new to command line and powershell scripting this way.
I am in a smiilar situation and need to enable sync time on a list of 50 VM guests or so.
Please let me know the script/Command line to achieve this.
Is that necessary to add that to vmx file? vmtool tick not enough? or tick and reboot?