Changing virtual machine power states is useful when you do maintenance on the host. You can use the system default settings for the toolbar power controls or you can configure the controls to interact with the guest operating system. For example, you can configure the stop button on the toolbar to power off the virtual machine or shut down the guest operating system.

You can modify many virtual machine configurations while the virtual machine is running, but you might need to change the virtual machine power state for some configurations.

Virtual Machine Power Button Settings lists available power buttons and describes their behavior.

Virtual Machine Power Button Settings

Power Button

Description

This virtual machine Power-Off image shows a red square button.

Shuts down the guest operating system or powers off the virtual machine. A power off operation displays a confirmation dialog box indicating that the guest operating system might not shut down properly. Use this power off option only when necessary.

The virtual machine Suspend image shows two orange side-by-side, vertical bars.

Suspends the virtual machine without running a script when VMware Tools is not installed. When VMware Tools is installed and available, a suspend action runs a script, and suspends the virtual machine.

This Power On image shows a right facing green arrow.

Powers on a virtual machine when a virtual machine is stopped, or resumes the virtual machine and runs a script when it is suspended and VMware Tools is installed and available. Resumes the virtual machine and does not run a script when VMware Tools is not installed.

The virtual machine reset option image shows a red and green arrow turning counter clockwise in a circle.

Resets the virtual machine when VMware Tools is not installed. Restarts the guest operating system when VMware Tools is installed and available. A reset operation displays a confirmation dialog box indicating that the guest operating system is not shut down properly.

Verify that you have access to at least one virtual machine in the inventory.

Verify that you have privileges to perform the intended power operation on the virtual machine.

To set optional power functions, you must install VMWare Tools in the virtual machine.

Power off the virtual machine before editing the VMware Tools options.

1

In the vSphere Client inventory, right-click the virtual machine and select Edit Settings.

2

Click the Options tab and select VMware Tools.

3

In the right panel, select the Power Controls for the virtual machine.

4

Select an option for the Power Off button.

Option

Description

Shut Down Guest

Uses VMware Tools to initiate an orderly system shut down of the virtual machine. This type of powering off is known as a "soft" power operation. Soft power operations are possible only if the tools are installed in the guest operating system.

Power Off

Immediately stops the virtual machine. This type of powering off is known as a "hard" power operation.

System Default

Follows system settings. The current value of the system settings is shown in parentheses.

5

Select an option for the Suspend button.

Option

Description

Suspend

Pauses all virtual machine activity.

System Default

Follows system settings. The current value of the system setting is shown in parentheses.

6

Select an option for the Reset button.

Option

Description

Restart Guest

Uses VMware Tools to initiate an orderly reboot. (This type of reset is known as a "soft" power operation. Soft power operations are possible only if the tools are installed in the guest operating system.)

Reset

Shuts down and restarts the guest operating system without powering off the virtual machine. (This type of reset is known as a "hard" power operation.)

System Default

Follows system settings; the current value of the system setting is shown in parentheses.

7

Click OK to save your changes.

Configure VMware Tools scripts to run before or after power operations.