Specifications

CHAPTER 3 Using VMware Tools
83
Choosing Scripts for VMware Tools to Run During Power State Changes
Through VMware Tools, you can run scripts that execute when you power on, power
off, suspend or resume the virtual machine. For more information, see Executing
Scripts When the Virtual Machine’s Power State Changes on page 76.
Note: Scripts cannot be run in FreeBSD guest operating systems.
A default script for each power operation is included in VMware Tools. These scripts
are located in the guest operating system in /etc/vmware-tools.
For each power state, you can use the default script or you can substitute a script you
created. In addition, if you are logged on as root, you can edit a script, test a script or
disable the running of a script. Complete the following steps.
1. To edit the appropriate power operation, deselect Use default script to suspend
guest operating system, Use default script to resume guest operating system,
Use default script to shut down guest operating system or Use default script
to power on guest operating system.
2. Do one of the following:
To select a different script, click Browse and select the new script.
When You … This Default Script Runs
Suspend the guest operating system suspend-vm-default
Resume the guest operating system resume-vm-default
Power off the guest operating system poweroff-vm-default
Power on the guest operating system poweron-vm-default