Professional Documents
Culture Documents
Introduction ......................................................................................................................................... 2
Procedure overview .......................................................................................................................... 2
VMware ESX hardware configuration options ......................................................................................... 3
UPS directly connected to multiple VMware ESX servers........................................................................ 4
UPS directly connected to a single VMware ESX server ......................................................................... 5
UPS directly connected to a single VMware ESX server and a SAN ....................................................... 6
HP power software components............................................................................................................. 7
Installing the HPMM ......................................................................................................................... 7
Installing the agents .......................................................................................................................... 7
Configuring VMware ESX settings.......................................................................................................... 8
Configuring the HPMM ...................................................................................................................... 11
HP/VMware startup strategy ............................................................................................................... 16
SDScript file modification example....................................................................................................... 17
Summary .......................................................................................................................................... 17
For more information .......................................................................................................................... 18
Introduction
The HP UPS Management Module (HPMM) 2.x or later software components can be installed in a
VMware ESX environment to perform a graceful shutdown of the host server and guest operating
systems. In the event of a power failure:
1. The HPMM receives power failure information from the UPS.
2. The HPMM executes a shutdown command to the VMware Service Console on which the UPS
Power Protection Linux Agent is installed.
3. The VMware Service Console shuts down the guest operating systems on each VMware server.
4. The VMware environment shuts down.
For a complete list of supported VMware ESX versions, see
http://h18004.www1.hp.com/products/servers/proliantstorage/power-
protection/software/module/ups/sup_oss.html.
Procedure overview
1. Install and configure the HP Management Module in the UPS.
2. Install and configure the HP UPS Power Protection Linux Agent on the VMware Service Console.
3. Configure the VMware guest operating system start up and shutdown settings.
4. Configure the HP Management Module power fail settings.
2
Figure 1. Virtual infrastructure
Item Description
8 Memory
9 Disk
3
UPS directly connected to multiple VMware ESX servers
In this configuration, install the HPMM UPS Power Protection Linux Agent on each VMware server on
the Service Console layer. The UPS has an HPMM installed.
Item Description
2—3 VMware servers—The HPMM UPS Power Protection Linux Agent is installed on the Service
Console layer.
—— Network cables
4
UPS directly connected to a single VMware ESX server
In this configuration, install the HPMM UPS Power Protection Linux Agent on each VMware server on
the Service Console layer. Each UPS has an HPMM installed.
Item Description
2 VMware servers—The HPMM UPS Power Protection Linux Agent is installed on the Service
Console layer.
—— Network cables
5
UPS directly connected to a single VMware ESX server and a SAN
In this configuration, install the HPMM UPS Power Protection Linux Agent on each VMware server on
the Service Console layer. Each UPS has an HPMM installed.
Figure 4. UPS directly connected to a single VMware ESX server and a SAN
Item Description
2 VMware servers—The HPMM UPS Power Protection Linux Agent is installed on the Service
Console layer.
—— Network cables
NOTE:
To configure logical drives to host virtual machine guest operating systems,
see your SAN documentation.
6
HP power software components
Before installing the software components, be sure that the UPS is properly cabled to the virtual
machine.
IMPORTANT:
• The HPMM only supports VMware using the UPS Power Protection
Linux Agent.
• The agent must only be installed on the Service Console layer.
The HPMM provides both status and shutdown information to its agents. The HPMM UPS Power
Protection Linux Agent allows the HPMM to gracefully shut down the guest operating systems and the
VMware server and run an optional script during a power failure. Install the Linux agent on any
VMware server that is powered by the UPS and any server that the HPMM uses to initiate a
command.
Install the HPMM UPS Power Protection Linux Agent on the Service Console layer of the VMware
servers in your configuration, as necessary. For detailed installation instructions, see the “Installing the
agent on a Linux operating system” section of the HP UPS Management Module User Guide located
on the HP website at http://www.hp.com/go/rackandpower.
7
Configuring VMware ESX settings
For each VMware server in your configuration, you must configure the startup and shutdown settings
for each guest operating system.
Note:
Depending on your VMware ESX version, the steps and screens described
in this section might vary.
You can configure the automatic startup and shutdown properties, as well as the delay settings for the
guest operating systems. The startup and shutdown settings are associated with the VMware server
configuration and can only be changed using the vSphere application on the Virtual Console
machine.
To configure the VMware settings:
1. In the Inventory panel, select the VMware server.
Click the Configuration tab, and then click Virtual Machine Startup/Shutdown in the left frame
under the Software section.
The Virtual Machine Startup and Shutdown settings window appears.
8
The Virtual Machine Startup and Shutdown properties window appears.
3. Select the Allow virtual machines to start and stop automatically with the system checkbox.
4. To have the operating system start after a brief delay, enter a Default Startup Delay time. The
startup delay allows time for VMware Tools or the booting system to run scripts.
5. To delay shutdown for each virtual machine by a certain amount of time, enter a Default Shutdown
Delay value. The shutdown delay only applies if the virtual machine does not shut down before the
delay period elapses. If the virtual machine shuts down before the delay time is reached, the next
virtual machine starts shutting down.
IMPORTANT:
Careful consideration should be used when configuring shutdown delays in
VMware. These delays are in addition to the shutdown time configured in
HPMM. For simplicity, HP recommends that the VMware shutdown delay
be set to zero. You can use the delay time on the HPMM menu to manage
delayed shutdown time.
6. Select a virtual machine and click Move Up and Move Down to specify the order in which the
virtual machines start when the system starts.
7. To configure specific automatic startup and shutdown behavior for the virtual machines, select a
virtual machine, and then click Edit.
a. In the Startup Settings section, do one of the following:
– Select Use default.
– Select Use specified settings, enter a Startup Delay time in seconds, and then select or clear
the Continue immediately if the VMware Tools start checkbox.
b. In the Shutdown Settings section, select Use specified settings, enter a Shutdown Delay time in
seconds, and then select a shutdown action from the Perform shutdown action list menu.
9
IMPORTANT:
Careful consideration should be used when configuring shutdown delays in
VMware. These delays are in addition to the shutdown time configured in
HPMM. For simplicity, HP recommends that the VMware shutdown delay
be set to zero. You can use the delay time on the HPMM menu to manage
delayed shutdown time.
CAUTION:
You must enter a time value in the Shutdown Delay field when you change
the shutdown action or you cannot save the changes. If you change the
shutdown action setting from outside the vSphere Client, the changes are
only reflected in the Autostart Settings manager if the shutdown delay is a
nonnegative value.
c. Click OK to accept the changes to the automatic startup and shutdown settings of the selected
virtual machine.
8. Click OK to accept the changes to the startup and shutdown settings of the VMware server.
10
Configuring the HPMM
After the HPMM and its software components are installed:
1. Open a browser to the IP address of the Service Console on which the HPMM is installed:
https://ipaddress
2. Log in to the HPMM with a user name and password. The default credentials are admin/admin.
After a successful login, the Overview screen appears.
Note:
Depending on the specific UPS model, this screen will vary.
3. Click the Setup tab, and then select Attached Devices in the left navigation frame.
The Attached Devices screen appears. The estimated UPS runtime appears at the top of the screen.
The total time required to shut down the entire UPS is recalculated when attached devices are
added, deleted, or modified. This time is determined by the single largest time necessary to shut
down a device attached to the UPS.
11
IMPORTANT:
Be sure that the time listed as Shutdown Time for Entire UPS includes
enough time to gracefully shutdown each guest operating system and the
VMware server.
Note:
Depending on the specific UPS model, this screen will vary.
Note:
Depending on the specific UPS model, this screen will vary.
12
Figure 10. Add / Edit Attached Device screen
13
f. Select the Run Event Procedure checkbox to execute the event handling script on the server on
which the agent is installed and running. While the SDScript executes during a shutdown
event, the EVScript executes during a UPS event. You can modify the script content to enable
actions such as logging events in the system log and sending messages to a recipient.
g. Enter the total estimated time required to shut down the VMware server. This should be the
longest guest operating system shutdown time plus the time needed to shut down the VMware
Service Console.
h. Enter the estimated time required to run shutdown commands in the Execute Command field.
i. Click Save Changes to save the changes.
6. Click Power Fail in the left navigation frame.
Note:
Depending on the specific UPS model, some features might not be
supported. The screen shown is only an example.
7. Use the Basic tab on the Power Fail Settings screen to configure the power fail settings.
8. Select the Advanced tab.
14
The Advanced tab on the Power Fail screen appears.
9. Use the Advanced tab on the Power Fail Settings screen to configure the advanced power fail
settings.
Important:
If you are using the advanced power fail settings, be sure to select the
advanced radio button on the Basic tab to activate the advanced settings.
15
HP/VMware startup strategy
UPS startup
UPS on
VMware/HPMM
VMware startup
VM1
VM2
VM3
*Delay VM4
*Virtual machines are started in staggered mode to avoid CPU and disk
input/output contention.
16
SDScript file modification example
If the virtual machines do not shut down before the VMware server shuts down, you might receive the
following warning:
Stopping VMware ESX Server services:
mkload_mod PANIC: vmfs3: Device or resource busy
To ensure that the virtual machines are properly shut down, you can modify the SDScript. For
example, to shut down a VMware ESX 3.0.1 server with one Microsoft® Windows® 2003 virtual
machine and one Red Hat Enterprise Linux 4.0 virtual machine, enter the following:
echo "Shutdown script has been executed." | wall
echo "PLEASE WAIT WHILE THE VIRTUAL MACHINES ARE BEING SHUT DOWN" | wall
/usr/bin/vmware-cmd /vmfs/volumes/47c2ce23-bad20214-7e49-
0016353ce250/Win\2K3\R2\SP2/Win\2K3\R2\SP2.vmx stop
/usr/bin/vmware-cmd /vmfs/volumes/47c2ce23-bad20214-7e49-
0016353ce250/RHEL4\U5/RHEL4\U5.vmx stop
Summary
This paper has detailed how the UPS, VMware ESX, and virtual machines can be configured to
interact during power failures. To configure additional settings, see the HP UPS Management Module
User Guide located on the HP website at http://www.hp.com/go/rackandpower.
17
For more information
To learn more about the HP UPS Management Module, see the HP website at
http://www.hp.com/go/rackandpower.