Loading

×Sorry to interrupt
Uncaught ReferenceError: addCTracking is not defined
throws at https://kb.vmware.com/resource/KM_TealiumTrackingJS?v=0.5:100:1

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

Skip to main content

My Subscriptions

Loading

Knowledge Base

Disabling Time Synchronization for virtual machines (1189)

Last Updated: 8/31/2022Categories: How toTotal Views: 119084Language:
Chinese (Simplified)KoreanJapaneseSpanishEnglish

182 like this article

Subscribe to get an email
newsletter with new updates

182 people found this helpful Please provide article feedback:

Learn how VMware Skyline Advisor and Skyline Health Diagnostics work together to provide proactive intelligence and self-service log analysis.

Use Skyline Advisor to avoid issues before they occur across VCF, vSphere, vSAN, NSX, vROps & Horizon. Skyline Findings are based on top KBs, VMSAs/CVEs and design best practices.

Use Skyline Health Diagnostics to root cause vSphere & vSAN logs when an issue occurs. Skyline Health Diagnostic Findings are based on top KBs and VMSA/CVEs. You can use the Skyline Health Diagnostics tool in online or offline mode.

If you require additional help from technical support, please use Skyline Advisor to initiate a Log Assist to reduce time to upload logs. TSEs can also initiate logs to reduce effort.

Details

In the VMware Tools control panel, the time synchronization checkbox is unselected, but you may experience these symptoms:

When you suspend a virtual machine, the next time you resume that virtual machine it synchronizes the time to adjust it to the host.

Time is resynchronized when you migrate the virtual machine using vMotion, take a snapshot, restore to a snapshot, shrink the virtual disk, or restart the VMware Tools service in the virtual machine (including rebooting the virtual machine).

Solution

VMware Tools can perform two types of time corrections:

Periodic time sync: The guest operating system clock is periodically (every 60 seconds) synchronized to track host time. It is recommended that guests use a native time synchronization service – such as NTPD or Chrony in Linux based operating systems, and W32Time for Microsoft Windows. If that's not viable, periodic time sync provides an alternative. This capability is turned off by default.

One-off time sync: The guest operating system clock is synchronized to host time upon specific VM life-cycle events that can cause guest clock to become incorrect, such as resuming from vMotion or a snapshot/consolidation etc. This capability is recommended for use and turned on by default.

VMware Tools does not set time backwards (when guest time is ahead of the host), except once when periodic time synchronization is turned on.

vSphere 7.0 U1 and above

In vSphere 7.0 Update 1 and later version, the VMware Tools menu in the Edit Settings Wizard for a virtual machine provides two check-boxes, which allow to enable or disable one-off time synchronization and periodic time synchronization:

To disable periodic time synchronization in a VM, launch vSphere Client, go to Edit Settings →  VM Options →  VMware Tools → Synchronize Time with Host, and deselect the checkbox Synchronize time periodically.

The vmx option for this setting is tools.syncTime and its value can be "TRUE" when periodic time sync is enabled, or "FALSE" when periodic time sync is disabled.

To disable one-off time synchronization in a VM, launch vSphere Client, go to Edit Settings →  VM Options →  VMware Tools → Synchronize Time with Host, and deselect the checkbox Synchronize at startup and resume (recommended). Disabling one-off time synchronization as described will also automatically force disable periodic time synchronization.

This setting is managed with the vmx option time.synchronize.allow. By default, when one-off time synchronization is enabled, the option has the value "TRUE", but is not contained in the vmx configuration file. When one-off time synchronization is however disabled, you can find this option in the vmx configuration file with the value "FALSE".

Workstation, Fusion, or before vSphere 7.0 U1

VMware Workstation, Fusion, and vSphere prior to version 7.01 U1 provide a single checkbox in a VM's VMware Tools control panel, which enables or disables periodic time synchronization only.

To disable periodic time synchronization in a VM, launch vSphere Client, go to Edit Settings →  VM Options →  VMware Tools → Time, and deselect the checkbox Synchronize guest time with host

To disable one-off time synchronization in a VM, you must set the following advanced configuration settings.

time.synchronize.continue = "FALSE"
time.synchronize.restore = "FALSE"
time.synchronize.resume.disk = "FALSE"
time.synchronize.shrink = "FALSE"
time.synchronize.tools.startup = "FALSE"
time.synchronize.tools.enable = "FALSE"
time.synchronize.resume.host = "FALSE"

VM advanced settings can be modified using vSphere client or by editing the VM's .vmx file.  See the following articles for more information:

Modifying advanced virtual machine settings using vSphere Client (1016098)

Editing configuration files in VMware ESXi and ESX (1017022)

Editing the .vmx file of a VMware Workstation and VMware Player virtual machine (2057902)

These advanced VM settings do not take effect until the VM (or VMware Tools running within it) is restarted.

Additional Information

The steps described above for disabling time synchronization apply ONLY to the behavior and impact of the time synchronization feature of VMware Tools running inside a VM. The guest operating system in the VM may rely on additional sources of wall clock time information for general timekeeping. Guest OSes typically read virtual CMOS/RTC clock to bootstrap system time during start up. On VMware, time on the virtual CMOS/RTC clock is derived from the host's time, at an offset established at first power-on (or when the guest OS writes back to CMOS). If subsequently, the host clock is modified to an incorrect value, or if the VM is migrated to a host with incorrect UTC time, the guest will derive a corresponding incorrect notion of wall time at start up. Disabling VMware Tools time synchronization with the host does not avoid this scenario. Therefore, it is important to always configure all ESXi hosts to synchronize time to one or more external, reliable sources of time.

See also Timekeeping in VMware Virtual Machines.

Related Information

For translated versions of this article, see:
Deshabilitar la sincronización de tiempo
禁用时间同步
時刻同期の無効化

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
Chinese (Simplified)KoreanJapaneseSpanishEnglish

Attachments

Additional Resources

KB
•
End Of General Availability of the Free vSphere Hypervisor (ESXi 7.x and 8.x) (2107518)

Result 1 of 1

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware Workstation

VMware vSphere ESXi

VMware vSphere ESXi

VMware Server

VMware Player

Related Versions:

VMware vSphere ESXi 7.0.0

VMware vSphere ESXi 6.7

VMware vSphere ESXi 6.5

VMware vSphere ESXi 6.0

Take Our Survey

Was this article helpful?

YES

NO

Copyright © 2005-2024 Broadcom. All Rights Reserved. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.

Terms of Use

Your California Privacy Rights

Privacy

Accessibility

Cookie Settings

Support Assistant