-
2. Re: enable VMGuest time sync with ESX host via vmware tools command line op
wilson94t Apr 8, 2007 10:21 PM (in response to Ken.Cline)Hi Ken,
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.
Thank you.
wilson
-
3. Re: enable VMGuest time sync with ESX host via vmware tools command line op
wilson94t Apr 18, 2007 9:45 PM (in response to wilson94t)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.
-
4. Re: enable VMGuest time sync with ESX host via vmware tools command line op
wilson94t Aug 5, 2007 12:20 AM (in response to wilson94t)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,
Windows:
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"
GNU/Linux:
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"
-
5. Re: enable VMGuest time sync with ESX host via vmware tools command line op
tigerdeccan Nov 17, 2011 7:55 AM (in response to wilson94t)GREAT !!!
Is there a way to enable/disable
time.synchronize.continue
time.synchronize.restore
time.synchronize.resume.disk
time.synchronize.shrink
time.synchronize.tools.startup
If I try for example
vmservice --cmd "vmx.set_option time.synchronize.restore 1 0"
its returning Unknown option name
Thanks
mumtaz
-
6. Re: enable VMGuest time sync with ESX host via vmware tools command line op
saty25 Jul 11, 2012 3:35 AM (in response to tigerdeccan)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.
Thanks
-
7. Re: enable VMGuest time sync with ESX host via vmware tools command line op
cosy Jul 1, 2013 3:39 PM (in response to saty25)Hi,
Is that necessary to add that to vmx file? vmtool tick not enough? or tick and reboot?
AS