Loading

×Sorry to interrupt
CSS Error

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

Running custom quiescing scripts inside Windows & Linux virtual machines (1006671)

Last Updated: 5/24/2023Categories: Best PracticesTotal Views: 74288Language:
Chinese (Simplified)JapaneseEnglish

6 like this article

Subscribe to get an email
newsletter with new updates

6 people found this helpful Please provide article feedback:

Details

This article provides answers to frequently asked questions on running custom quiescing scripts (pre-freeze and post-thaw) inside Windows and Linux virtual machines.

Custom quiescing scripts are often used by third-party backup modules that integrate with VMware APIs for Data Protection (VADP).

Note: VMware Tools must be installed in the guest operating system for this feature to work correctly.

Solution

Q. What is the default directory location for the custom scripts to be used during quiescing of a virtual machine?

A.

Windows:
The directory location for custom quiescing scripts on Windows is by default C:\Program Files\VMware\VMware Tools\backupScripts.d.

It will be different if VMware Tools was installed somewhere other than the default location of C:\Program Files\VMware\VMware Tools.

In general, the quiescing scripts are located in the “backupScripts.d” subdirectory of the directory where VMware Tools is installed.

To know the name of VMware Tools installation directory, please check it from the below Windows Registry:
“HKLM\Software\VMware, Inc.\VMware Tools\InstallPath”.

Linux:
The directory location for custom quiescing scripts on Linux is by default /etc/vmware-tools/backupScripts.d/.

Q. Does VMware Tools automatically create backupScripts.d directory in the virtual machine?

A. The backupScripts.d directory is not created or deleted automatically when VMware Tools is installed or uninstalled in Windows or Linux virtual machine. The directory has to be created manually when you want to setup custom quiescing scripts in the virtual machine. Similarly, the directory and its files have to be removed manually after uninstalling VMware Tools.

Q. In what order does VMware Tools invoke the custom quiescing scripts in the virtual machine?

A.
VMware Tools invokes the custom quiescing scripts in the following order before quiescing/freezing the guest file systems:

The legacy pre-freeze script (C:\Windows\pre-freeze-script.bat on Windows and /usr/sbin/pre-freeze-script on Linux) is executed.

All the scripts in backupScripts.d (C:\Program Files\VMware\VMware Tools\backupScripts.d on Windows and /etc/vmware-tools/backupScripts.d on Linux) are executed in alphabetical order with "freeze" as the first argument.

VMware Tools invokes the custom quiescing scripts in the following order after thawing/unfreezing the guest file systems:

All the scripts in backupScripts.d (C:\Program Files\VMware\VMware Tools\backupScripts.d on Windows and /etc/vmware-tools/backupScripts.d on Linux) are executed in descending alphabetical order with "thaw" or "freezeFail" as the first argument.

The legacy post-thaw script (C:\Windows\post-thaw-script.bat on Windows and /usr/sbin/post-thaw-script on Linux) is executed.

Caution: The "backupScripts.d" directory should only contain executable scripts. Storing any other type of file or non-executable scripts in this directory may cause a failure during quiescing of the virtual machine.

Additional Information

For translated versions of this article, see:

日本語: ESX 3.5 Update 2 以降での Windows 仮想マシン内のカスタム静止スクリプトの実行 (2081678)

简体中文: 在具有 ESX 3.5 Update 2 及更高版本的 Windows 虚拟机内部运行自定义静默脚本 (2086999)

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
Chinese (Simplified)JapaneseEnglish

Attachments

Additional Resources

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

KB
•
Download and Install VMware Fusion (2014097)

KB
•
在使用 VMware Converter 时可能不会与虚拟机一起转换的应用程序和驱动程序 (1006626)

Results 1-3 of 3

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware vSphere ESXi

VMware vSphere

VMware ESX Server

VMware Consolidated Backup

Related Versions:

VMware vSphere ESXi 6.5

VMware vSphere ESXi 6.0

VMware vSphere ESXi 5.5

VMware vSphere ESXi 5.1

VMware vSphere ESXi 5.0

VMware vSphere 6.7.x

VMware ESXi 4.1.x Installable

VMware ESXi 4.1.x Embedded

VMware ESXi 4.0.x Installable

VMware ESXi 4.0.x Embedded

VMware ESXi 3.5.x Installable

VMware ESXi 3.5.x Embedded

VMware ESX Server 3.5.x

VMware ESX 4.1.x

VMware ESX 4.0.x

VMware Consolidated Backup 1.5.x

view all

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