VMware vSphere

 View Only

 Check the vmware tools timesync settings in guest OS?

nblr06's profile image
nblr06 posted Jan 06, 2025 01:19 AM

I mean, 

There are time sync options: "Synchronize at startup and resume" and "Synchronize time periodically" in the VM options webUI of virtual machine.

And as far as i know, we can use the vmware tools utility in the guest OS to acquire the current configuration of "Synchronize time periodically", such as:

vmware-toolbox-cmd timesync status

If the result is "enabled" then it indicates the "Synchronize time periodically" is checked.

But...what about "Synchronize at startup and resume"? Is it possible to know whether this option is enabled or not through the vmware tools utility in the guest OS?

pcgeek2009's profile image
pcgeek2009

We disable this as we are a Microsoft shop and all VM's sync with AD. However, from my understanding, that command is also supposed to respond with the settings as well. Does it not?

ggathagan's profile image
ggathagan

While you can set the time in the BIOS of a VM, there's no way to pass on a command in BIOS to run a timesync on a VM until the OS is up and running.
That would infer that VM tools would have to be involved in order to pass on that command.
A related question would be whether or not the VM tools have their own timesync mechanism, independent of the VM's settings.
For instance, does a timesync attempt occur on a Linux VM if ntp or chrony are not configured?