Configuring Host Power On
The XenServer Host Power On feature allows you to manually turn a remote host (server) on and off. To use this feature, you need to carry out the following steps:
- Ensure that the host supports remote power control (that is, it has Wake-on-LAN functionality, a DRAC or iLO card, or it is using a custom script). See Prerequisites for Host Power On.
- Enable the Host Power On functionality, as described in To enable or disable Host Power On. To perform this procedure for iLO and DRAC processors, you need the credentials for the processor, which are set in its firmware.
Once Host Power On has been configured on a server, you will be able to power the server on from XenCenter by selecting it and then, on the Server menu, clicking Power On.
If you have Workload Balancing installed and configured, you can also configure XenServer to turn hosts on and off automatically as VMs are consolidated or brought back online. This feature is known as Power Management.
Prerequisites for Host Power On
To enable the Host Power On feature, the host server must have one of the following power control solutions:
- A network card that supports Wake On LAN (WOL).
Dell Remote Access Controller (DRAC). To use XenServer with DRAC, you need to follow these steps:
- Install the Dell supplemental pack.
- Install the RACADM command-line utility on the host server with the remote access controller.
- Enable DRAC and its interface. RACADM is often included in the DRAC management software. For more information, see Dell’s DRAC documentation.
- Hewlett-Packard Integrated Lights-Out (iLO). To use XenServer with iLO, iLO must be enabled on the host and be connected to the network. For more information, see HP’s iLO documentation.
- A custom power-on script based on the Xen-API that enables you to turn the power on and off through XenServer. For DRAC and iLO, you can use the secrets feature (by specifying the key power_on_password_secret ) to help you store your password more securely. For more information, see the XenServer Administrator’s Guide.
To enable or disable Host Power On
You can enable Host Power On for an individual host server via the host’s Properties window, or on multiple servers via the pool’s Properties window.
- Select the server or pool and open its Properties dialog box: on the Server or Pool menu, click Properties.
Click the Power On tab and under Power On mode , select the option you want: | | | |——————————————|———————————————————————————————————————————————————————————————————————————————-| | Disabled | Select this option to turn off the Host Power On feature. | | Wake-on-LAN (WoL) | To use this option, the host must have a Wake on LAN-enabled network card. | | HP Integrated Light-Out (iLO) | To use this option, iLO must be enabled on the host and be connected to the network. For more information, see HP’s iLO documentation. | | Dell Remote Access Controller (DRAC) | To use this option, the Dell supplemental pack must be installed on the host server to get DRAC support. For more information, see Dell’s DRAC documentation. | | Custom power-on script | You can use a custom Python Linux script to turn on the power on a XenServer host from a remote location. For information about creating the script, including a list of supported key/value pairs, see the XenServer Administrator’s Guide. |
If you selected either HP iLO or Dell DRAC, enter the following information: | | | |—————-|———————————————————————————————————————————————————————————————| | IP Address | The IP address you specified configured to communicate with the power-control card. Alternatively, you can enter the domain name for the network interface where iLO or DRAC is configured. | | User name | This is the iLO or DRAC user name that is associated with the management processor, which you may or may not have changed from its factory default settings. | | Password | This is the password associated with that user name. |
If you selected Custom power-on script , enter the filename and path to the custom script you created and then, under Configuration options , enter the key/value pairs you want to use to configure the script. Move between fields by clicking or tabbing.
You do not need to specify the .py extension when you specify the filename of the custom script.
- Click OK to save your configuration changes and close the Properties window.
After configuration, you can configure and run the Workload Balancing Automation and Host Power On features.