6.0.1

Table Of Contents
n
On Linux, Mac OS X, Solaris, and FreeBSD guest operating systems, to edit a script, make sure xterm
and vi are installed in the guest operating system and are in your PATH, or specify which editor to use
by setting the EDITOR environment variable.
n
If you plan to script commands and need to know what the exit codes are, see “Exit Codes for the
VMware Tools Configuration Utility,” on page 223.
Procedure
1 Log in to the guest operating system as root.
2 Write the custom scripts and place them in the correct directory, as instructed by the comments in the
default script files for each power operation.
Guest Operating System Directory
Linux, Solaris, FreeBSD
/etc/vmware-tools
Mac OS X
/Library/Application Support/VMware Tools
Do not make changes to the default scripts.
The VMware Tools service runs the script whenever the specified power operation occurs.
Default VMware Tools Scripts
VMware Tools includes one or more default scripts for each power state. The default script behavior
depends in part on the guest operating system.
Microsoft Windows Guest Operating Systems
On most Microsoft Windows guest operating systems, the default script that runs when you suspend a
virtual machine releases the IP address of the virtual machine. The default script that runs when you resume
a virtual machine renews the IP address of the virtual machine. This behavior affects only virtual machines
configured to use DHCP.
On Windows guest operating systems, the default scripts are located in the Program Files\VMware\VMware
Tools folder.
IMPORTANT You cannot run scripts on Windows NT, Me, Windows 98, and Windows 95 guest operating
systems.
Linux, Mac OS X, Solaris, and Free BSD Guest Operating Systems
On most Linux, Mac OS X, Solaris, and FreeBSD guest operating systems, the default script that runs when
you suspend a virtual machine stops networking for the virtual machine. The default script that runs when
you resume a virtual machine starts networking for the virtual machine.
On Linux, Solaris, and FreeBSD guest operating systems, the default scripts are located in the /etc/vmware-
tools directory. On Mac OS X operating systems the default scripts are located in the /Library/Application
Support/VMware Tools directory.
You cannot run scripts on NetWare guest operating systems.
vSphere Virtual Machine Administration
220 VMware, Inc.