6.4.3. Setting up power management on a host
Summary
In this section, you will set up power management on a host.
To set up power management on a host
- On the Tree pane, click the Hosts icon under the Default cluster. The Hosts tab displays a list of available hosts.
- Select a host, in this example the
Atlantichost is used. Notice that there is an exclamation mark next to the hostname which you were asked to ignore in previous labs. Click the Edit button to display the Edit Host dialog. - Select the Power Management tab. Tick the Enable Power Management check box and provide the required information in the following fields:
- Address: The address of the power management card. This card does not have to be on any of the logical networks defined on the Red Hat Enterprise Virtualization Manager. However, all hosts in the cluster must have a valid route to the card's IP. This ensures that fencing is correctly configured, as fencing is done by any available host in the cluster.
- User Name: The user allowed to log in to the power management device.
- Password: The password of the user allowed to log in.
- Type: The type of management device. For this lab, select ipmilan.
- Options: These additional parameters depend on the specific implementation of each device. Detailed documentation of the options available is provided in the man page for each fence agent. For this lab, enter power_wait=4,lanplus=yes in the provided text box.
Click the Test button to test the settings. (Note: in the figure below, the Test button is not shown. You can find the Test button at the bottom of the Power Management tab.) If the power management options can be verified, the text Test Succeeded, Host Status is: on displays. - Click OK. You are returned to the list of hosts. Note that the exclamation mark next to the host's name has now disappeared, signifying that power management has been successfully configured.
Result
You have now configured power management for your hosts, meaning that the status of power on your host can be verified and controlled by the Red Hat Enterprise Virtualization Manager. Power management checks that a host is properly powered down, then restarts its virtual machines on another host in the same cluster. However, if the host's status cannot be verified, the virtual machines that were originally running on it will not be restarted.
