Home » Changing Guest Time Synchronization Setting From Within-Guest OS

Changing Guest Time Synchronization Setting From Within-Guest OS

I recently got a question about enabling and disabling time synchronization for virtual machines.
The customer ask about a solution to change the settings from within the operating system.

Normally I would change the virtual machine time synchronization settings by hand with the vSphere Client/Web Client/HTML5 or with a PowerCLI script, but after some searching it appears, there is a solution provided by VMware.

The solution is provided by the following command “vmware-toolbox-cmd”. The command becomes available when VMware Tools is installed on a Linux operating system. I have tested it with Open-VM-Tools and the official VMware Tools and in both cases, it works.

After changing the setting, the checkbox “Synchronize quest time with host” is enabled or disabled after a couple of seconds.

### Show current time synchronization status
vmware-toolbox-cmd timesync status

### Disable virtual machine time synchronization 
vmware-toolbox-cmd timesync disable

### Enable virtual machine time synchronization 
vmware-toolbox-cmd timesync enable

Screenshot(s):

Leave a Reply