Specifications

www.vmware.com
80
VMware GSX Server Virtual Machine Guide
A default script for each power state is included in VMware Tools. These scripts are
located in the guest operating system in C:\Program Files\VMware.
Windows hosts: If the virtual machine is configured to use DHCP, the script executed
when you suspend a virtual machine releases the IP address of the virtual machine.
The script executed when you resume a virtual machine renews the IP address of the
virtual machine.
Linux hosts: The script executed when you suspend a virtual machine stops
networking for the virtual machine. The script executed when you resume a virtual
machine starts networking for the virtual machine.
For each power state, you can use the default script or you can substitute a script you
created. In addition, you can test a script or disable the running of a script. Complete
the following steps.
1. In the Script Event list, select the power operation with which to associate the
script.
2. Do one of the following:
To select a different script, click Custom Script, then click Browse and select
the new script.
To edit a script, click Edit. The script opens in your default editor. Make your
changes there.
To test the script, click Run Now.
To disable the running of a script, clear the Use Script check box.
3. Click Apply to save your settings.
When You … This Default Script Runs
Suspend the guest operating system suspend-vm-default.bat
Resume the guest operating system resume-vm-default.bat
Power off the guest operating system poweroff-vm-default.bat
Power on the guest operating system poweron-vm-default.bat