2.3. Installing Hosts
2.3.1. Installing Red Hat Enterprise Virtualization Hypervisor hosts
2.3.1.1. Installing Red Hat Enterprise Virtualization Hypervisor Hosts
After you have installed the Red Hat Enterprise Virtualization Manager, it is time to install the hosts, which run your virtual machines. In Red Hat Enterprise Virtualization, you can use either Red Hat Enterprise Virtualization Hypervisor or Red Hat Enterprise Linux as hosts.
This document provides instructions for installing the Red Hat Enterprise Virtualization Hypervisor using a CD.
Before installing the Red Hat Enterprise Virtualization Hypervisor, you need to download the hypervisor image from the Red Hat Network and create a bootable CD with the image. This procedure can be performed on any machine running Red Hat Enterprise Linux.
Important
Red Hat Enterprise Virtualization Hypervisor is a closed appliance, and does not allow the installation of custom RPMs.
If you require custom RPMs, you must use Red Hat Enterprise Linux hosts. Red Hat Enterprise Linux hosts are not closed appliances, and they allow the installation of custom RPMs.
2.3.1.2. Preparing a Red Hat Enterprise Virtualization installation CD
To prepare a Red Hat Enterprise Virtualization Hypervisor installation CD
- Download the latest version of the rhev-hypervisor* package from Red Hat Network. The list of hypervisor packages is located at the
Red Hat Enterprise Virtualization Hypervisor (v.6 x86_64)channel.- Log on to Red Hat Network (http://rhn.redhat.com/).
- Click Systems at the top of the page.
- From the list presented on the screen, select the system on which the Red Hat Enterprise Virtualization Manager is installed by clicking on its name.
- Click Alter Channel Subscriptions in the Subscribed Channels section of the screen.
- Select the
Red Hat Enterprise Virtualization Hypervisor (v.6 x86_64)channel from the list presented on the screen, then click the Change Subscription button to finalize the change.
- Log in to the system on which the Red Hat Enterprise Virtualization Manager is installed. You must log in as the
rootuser to install the rhev-hypervisor package. Run the following command:# yum install "rhev-hypervisor*"
The hypervisor ISO image is installed into the/usr/share/rhev-hypervisor/directory. - Insert a blank CD into your CD writer. Use the cdrecord utility to burn the hypervisor ISO image onto your disc. Run:
# cdrecord dev=/dev/cdrw /usr/share/rhev-hypervisor/rhev-hypervisor.iso
You have created a Red Hat Enterprise Virtualization Hypervisor installation CD, now you can use it to boot the machine designated as your hypervisor host. For this guide you will use the interactive installation where you are prompted to configure your settings in a graphical interface.
2.3.1.3. Configuring Red Hat Enterprise Virtualization Installation Settings
You have rebooted your host machine with the Hypervisor installation media in the CD-ROM or DVD-ROM drive. Now you will use the Red Hat Enterprise Virtualization Hypervisor interactive menu to configure your hypervisor.
Table 2.1. Menu Navigation Keys
| Key | Function |
|---|---|
Up and Down arrow keys | Navigates between sections. Highlighted selections appear in white |
Tab | Moves between fields |
Spacebar | Selects check boxes, which are represented by square brackets: [ ]. Check boxes that have been selected contain asterisks: *. |
Enter | Accepts the configuration you have selected. |
Procedure 2.2. Installing Red Hat Enterprise Virtualization Hypervisors
- Insert the Red Hat Enterprise Virtualization Hypervisor installation CD into your CD-ROM drive of the machine designated as a host. Reboot the machine. When the boot splash screen displays, press the
Tabkey and select Boot to boot from the hypervisor installation media. PressEnter. - On the installation confirmation screen, select
Install RHEV Hypervisorand pressEnter. - The installer automatically detects the drives attached to the system. The disk selected for booting the hypervisor is highlighted in white. Ensure that the local disk is highlighted, otherwise use the arrow keys to select the correct disk. Select Continue and press
Enter. - You are prompted to select the drive on which the hypervisor is to be installed. Ensure that the local disk is highlighted, otherwise use the arrow keys to select the correct disk. While multiple installation drives can be used, select only one for this evaluation. Select Continue and press
Enter. - Enter a password for local console access and confirm it. Select Install and press
Enter. The Red Hat Enterprise Virtualization Hypervisor partitions the local drive, then commences installation. - Once installation is complete, a dialog prompts you to Reboot the hypervisor. Press
Enterto confirm. Remove the installation disc. - After the hypervisor has rebooted, you will be taken to a login shell. Log in as the
adminuser with the password you provided during installation to enter the Red Hat Enterprise Virtualization Hypervisor management console. - On the hypervisor management console, there are configuration tabs on the left. Press the
UpandDownkeys to navigate between them andEnterto access them.- Select the Network tab. Fill in the required fields as shown in the following example. Substitute the DNS Server address according to your environment. After you have filled in the fields, select Apply and press
Enter. This saves your network settings. - For this document, the eth0 device will be used to set up the management network. Select it and press
Enterto access the interface configuration menu. Fill in the required fields as shown in the following example. Under IPv4 Settings, selectDHCPorStaticIP addressing and pressSpacebarto mark the option as enabled. If using static IP addressing you must also provide theIP Address,Netmask, andGateway. Select Apply and pressEnter.A dialog prompts you to confirm your network settings, select OK and pressEnter. - Select the RHEV-M tab. Configure the following options:Select Apply and press
- In the Management Server field, enter
rhevm.demo.redhat.com. - In the Management Server Port field, enter
443. - Tick the Connect to the RHEV Manager and Validate Certificate check box.
- The Set RHEV-M Admin Password field allows you to specify the root password for the hypervisor, and enable SSH password authentication from the Red Hat Enterprise Virtualization Manager. You do not have to fill in this field for this document.
Enter. A dialog displays, asking you to connect the hypervisor to the Red Hat Enterprise Virtualization Manager and validate its certificate. Select Approve and pressEnter. A message will display notifying you that the Manager configuration has been successfully updated. - Under the Red Hat Network tab, you can register the host with the Red Hat Network. This enables the host to run Red Hat Enterprise Linux virtual machines with proper RHN entitlements. However, for the purposes of this document, the evaluation subscriptions will be used for the guests.
- Accept all other default settings.
- Finally, select the Status tab. Select Restart and press
Enterto reboot the host and apply all changes.
Result
You have now configured Red Hat Enterprise Virtualization Hypervisor, connecting it to Red Hat Enterprise Virtualization Manager and RHN.
