Skip navigation
VMware
9,010 Views 5 Replies Last post: Nov 17, 2011 7:55 AM by tigerdeccan RSS
wilson94t Hot Shot 110 posts since
Oct 28, 2004
Currently Being Moderated

Apr 8, 2007 10:49 AM

enable VMGuest time sync with ESX host via vmware tools command line option

In order to enable a VMGuest to sync time with an ESX Host, the following line needs to be enabled in the VMX file:    tools.syncTime = "TRUE"

 

 

Windows Guests:

Login, click on the vmware tools icon in the system tray, options tab, and select the Time Synchronization between the virtual machine and the console operating system option.

Close Vmware tools properties.

Logoff.

 

 

Linux Guests:

Login.

start the Xserver  (off to a bad start already)

launch the  vmware-toolbox application which requires XWindows, click on the Time Synchronization between the virtual machine and the console operating system option.

exit vmware-toolbox

shutdown Xserver

logoff.

 

Request:

Command line option to enable the tools.syncTime = "TRUE" feature in the vmx file from within the guest, just as these check boxes do.   We'd like this option to be available for both Windows and Linux vmware-tools.

 

Justification:

\* When we do upgrades, make setting changes, or otherwise manage our guest environment, we want to script as much as possible and avoid logons. 

 

\* We do not wish to or run X windows on our Linux systems.

 

\* We wish to allow junior admins to deploy Linux or Windows VMguests who do not have access to the .vmx files on the ESX server.  

 

\* Manual edits of the .vmx file each time the VMguest is built is not desirable.

Ken.Cline Champion 5,167 posts since
Jul 7, 2004
Currently Being Moderated
1. Apr 8, 2007 4:12 PM in response to: wilson94t
Re: enable VMGuest time sync with ESX host via vmware tools command line op

I'm not in front of a box to test right now, but try this:

 

Re: enable VMGuest time sync with ESX host via vmware tools command line opvmware-cmd myVM.vmx setconfig tools.syncTime TRUE[/code]

Ken Cline VMware vExpert 2009 VMware Communities User Moderator Blogging at: http://KensVirtualReality.wordpress.com/
tigerdeccan Hot Shot 170 posts since
Sep 19, 2011
Currently Being Moderated
5. Nov 17, 2011 7:55 AM in response to: wilson94t
Re: enable VMGuest time sync with ESX host via vmware tools command line op

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

 

 

Bookmarked By (0)

Share This Page

Communities