! “Suspending and Resuming Virtual Machines” on page 91
! “Shutting Down a Virtual Machine” on page 92
! “Powering Virtual Machines On and Off” on page 92
Using Power Options for Virtual Machines
The basic power operations for a virtual machine include powering on, powering off, suspending, resuming, and resetting. These options are analogous to the power operations on a physical computer.
If VMware Tools is running, you can run scripts when you change the power state of a virtual machine. For more information, see “Executing Scripts When the Virtual Machine’s Power State Changes” on page 55.
When you reset a virtual machine, you can choose either to restart the guest operating system, which gracefully closes applications and restarts the guest operating system, or to reset the virtual machine, which is the same as pressing the reset button on a physical computer.
Similarly, when you power off the virtual machine, you can choose either to shut down the guest operating system, which gracefully closes applications and shuts the guest operating system down, or to turn off the virtual machine, which is the same as pressing the power button on a physical computer.
All the power options are available on the Power menu. The menu items might not be available, depending upon the current power state of the virtual machine. For example, if the virtual machine is powered off, you cannot select any power off, suspend,
For the purpose of running scripts in the guest operating system, the commands on the Power menu take precedence over how the toolbar power buttons are configured.
For example, if the Suspend toolbar button is configured to run a script when you suspend the virtual machine, and you do not want to run the script, choose Power >
Suspend. Similarly, if the Suspend toolbar button is not configured to run a script, and you want to run the script at the time you suspend the virtual machine, choose Power
> Suspend after running script.
Options for Powering On a Virtual Machine
Choose from the following options when powering on a virtual machine:
! Power On — powers on the virtual machine. This is the same as clicking the Power On button on the toolbar. When the virtual machine is suspended, this menu item appears as Resume.
! Power On and Run Script — powers on the virtual machine, then executes the associated script.
Options for Powering Off a Virtual Machine
Choose from the following options when powering off a virtual machine:
! Power Off — powers off the virtual machine. This is similar to turning off a physical computer by pressing its power button, so any programs running in the virtual machine could be adversely affected.
! Shut Down Guest — runs the associated script, then gracefully shuts the guest operating system down and, if the guest operating system supports Advanced Power Management, powers off the virtual machine. This is the same as choosing Start > Shut Down > Shut Down in a Windows operating system or issuing a shutdown command in a Linux operating system.
You can configure the stop button ( ) on the toolbar to power off the virtual machine or shut down the guest operating system. Choose VM > Settings, then click Options >
Power, and choose the desired action in the list under Power Controls.
Options for Suspending a Virtual Machine
Choose from the following options when suspending a virtual machine:
! Suspend — suspends the virtual machine.
! Suspend after Running Script — executes the associated script, then suspends the virtual machine.
Options for Resuming a Virtual Machine
Choose from the following options when resuming a virtual machine:
! Resume — resumes the suspended virtual machine. When the virtual machine is powered off, this menu item appears as Power On.
! Resume and Run Script — resumes the suspended virtual machine, then executes the associated script.
Options for Resetting a Virtual Machine
Choose from the following options when resetting a virtual machine:
! Reset — resets the virtual machine. This is similar to resetting a physical computer by pressing its reset button, so any programs running in the virtual machine could be adversely affected.
! Restart Guest — gracefully restarts the virtual machine. This is the same as choosing Start > Shut Down > Restart in a Windows operating system or issuing a reboot command in a Linux operating system.
You can configure the reset button ( ) on the toolbar to reset the virtual machine or restart the guest operating system. Choose VM > Settings, then click Options > Power, and choose the desired action in the list under Power Controls.
Changing a Virtual Machine’s Power State from the Management Interface
Depending upon your permissions, you can change the power state of the virtual machine in the VMware Management Interface. Your permissions are listed in the Users and Events tab for the virtual machine. For more information, see “Viewing a List of Connected Users”.
To change the virtual machine’s power state, click the button that corresponds to the virtual machine’s current power state. A pop‐up menu appears, displaying the following buttons:
Changing the power state executes any script associated with the power state change.
For more information about running scripts, see “Executing Scripts When the Virtual Machine’s Power State Changes” on page 55.