VMware GSX Server 2.5.2Features | Documentation | Knowledge Base | Discussion Forums You can run scripts in the guest operating system when you change the power state of a virtual machine; that is, when you power on, power off, suspend or resume the virtual machine. Scripts can help automate guest operating system operations when you change the virtual machine's power state. Note: There are no scripts for FreeBSD and NetWare guest operating systems. You perform these power operations from the toolbar buttons and menus in the consoles. For more information on changing the power state of a virtual machine in a console, see Special Power Options for Virtual Machines. Scripts can run when using the power buttons in the VMware Management Interface. For more information, see Changing the Power State of a Virtual Machine. Scripts can be executed only when the VMware guest operating system service is running. The guest service starts by default when you start the guest operating system. For more information about the guest service, see About the VMware Guest Operating System Service. Default scripts are included in VMware Tools. On a Windows host, provided the virtual machine is configured to use DHCP, the default script executed when suspending a virtual machine releases the IP address of the virtual machine while the default script executed when resuming a virtual machine renews the IP address of the virtual machine. On a Linux host, the default script executed when suspending a virtual machine stops networking for the virtual machine while the default script executed when resuming a virtual machine starts networking for the virtual machine. In addition, you can create your own scripts. The scripts you can run must be batch files for Windows hosts but can be any executable format (such as shell or Perl scripts) for Linux hosts. You should have a thorough familiarity with these types of scripts before you modify the default scripts or create your own. If you create your own scripts, you must associate each script with its particular power operation. For more information, see Choosing Scripts for VMware Tools to Run During Power State Changes for Windows guests and Choosing Scripts for VMware Tools to Run During Power State Changes for Linux guests. In order for scripts and their associated power operations to work, the following conditions must be met:
Caution: When you reinstall VMware Tools after you upgrade the GSX Server software, any changes you made to the default scripts are overwritten. Any scripts you created on your own remain untouched, but do not benefit from any underlying changes that enhance the default scripts. Note: Scripts cannot be run in Windows 95, NetWare and FreeBSD guest operating systems. Note: All default scripts in Windows NT and Windows Me guest operating systems do not release and renew the IP address. To release and renew an IP address in a Windows NT or Windows Me guest operating system, you can create custom scripts. |