Вы находитесь на странице: 1из 70

Red Hat Enterprise Virtualization for Servers 2.

1 Installation Guide
A guide to the installation of Red Hat Enterprise Virtualization for Servers

Susan Burgess Chris Curran David Jorm

Installation Guide

Red Hat Enterprise Virtualization for Servers 2.1 Installation Guide A guide to the installation of Red Hat Enterprise Virtualization for Servers Edition 1.1
Author Author Author Copyright 2010 Red Hat, Inc Copyright 2010 Red Hat, Inc. The text of and illustrations in this document are licensed by Red Hat under a Creative Commons AttributionShare Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/. In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version. Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law. Red Hat, Red Hat Enterprise Linux, the Shadowman logo, JBoss, MetaMatrix, Fedora, the Infinity Logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries. Linux is the registered trademark of Linus Torvalds in the United States and other countries. Java is a registered trademark of Oracle and/or its affiliates. XFS is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries. MySQL is a registered trademark of MySQL AB in the United States, the European Union and other countries. All other trademarks are the property of their respective owners. 1801 Varsity Drive Raleigh, NC 27606-2072 USA Phone: +1 919 754 3700 Phone: 888 733 4281 Fax: +1 919 754 3701 Susan Burgess Chris Curran David Jorm sburgess@redhat.com ccurran@redhat.com djorm@redhat.com

This document describes the installation of Red Hat Enterprise Virtualization for Servers.

Preface v 1. About this Guide ............................................................................................................. v 1.1. The Red Hat Enterprise Virtualization Manager Documentation Suite ....................... v 1.2. Audience .............................................................................................................. v 2. Document Conventions ................................................................................................... v 2.1. Typographic Conventions ..................................................................................... vi 2.2. Pull-quote Conventions ........................................................................................ vii 2.3. Notes and Warnings ............................................................................................ vii 3. We Need Feedback! ..................................................................................................... viii 1. Overview 1.1. System architecture ...................................................................................................... 1.2. How the management system works ............................................................................. 1.2.1. About the servers .............................................................................................. 1.2.2. About the virtual machines ................................................................................. 1.3. About the installation process ....................................................................................... 2. System Requirements 2.1. Prerequisites ................................................................................................................ 2.2. Hardware requirements ................................................................................................ 2.3. Software requirements .................................................................................................. 1 1 2 2 2 2 5 5 5 6

3. Installing the Red Hat Enterprise Virtualization Manager Manager 7 3.1. Installing the Operating System ..................................................................................... 7 3.1.1. Configure DNS server ........................................................................................ 9 3.1.2. Connect to domain controller ............................................................................. 9 3.1.3. Add components ............................................................................................... 9 3.2. Installing RHEV Manager ............................................................................................ 13 3.2.1. Run the installation wizard ............................................................................... 13 3.2.2. Accept license agreement ................................................................................ 14 3.2.3. Select features ................................................................................................ 14 3.2.4. Setup the database ......................................................................................... 15 3.2.5. Choose installation location .............................................................................. 16 3.2.6. Select website ................................................................................................. 17 3.2.7. Select RHEV Manager domain and user ........................................................... 18 3.2.8. Enter certification details .................................................................................. 19 3.2.9. Enter net console port ..................................................................................... 20 3.2.10. Confirm settings ............................................................................................. 21 3.2.11. Add external packages ................................................................................... 23 3.2.12. Login to the administrator portal ..................................................................... 24 4. Installing the Red Hat Enterprise Virtualization Manager Hypervisor 4.1. Preparing an installation disc ...................................................................................... 4.2. Confirm hardware virtualization support ....................................................................... 4.3. Boot the Hypervisor .................................................................................................... 4.4. The RHEV Hypervisor Configuration Menu .................................................................. 4.5. Remove existing RHEV Hypervisor installations ........................................................... 4.6. Partitioning the disk .................................................................................................... 4.7. Set the administrator password ................................................................................... 4.8. Set the hostname ....................................................................................................... 4.9. Setup Networking ....................................................................................................... 4.10. Connect to the RHEV Manager ................................................................................. 4.11. Installation ................................................................................................................ 4.12. Using the hypervisor ................................................................................................. 5. Using Red Hat Enterprise Linux Hosts 27 27 28 29 29 30 30 32 33 34 36 37 38 39 iii

Installation Guide 5.1. Adding Red Hat Enterprise Linux Hosts ....................................................................... 5.1.1. Preparing Red Hat Enterprise Linux Hosts ........................................................ 5.1.2. To Add a Host ................................................................................................. 5.2. Activating a Host ........................................................................................................ 6. Setting Up Storage 6.1. Adding NFS Storage .................................................................................................. 6.2. Adding iSCSI Storage ................................................................................................. 6.3. Adding FCP Storage .................................................................................................. 7. Configuring the System A. Planning the System Architecture 39 39 41 43 45 45 46 49 53 55

B. Using Active Directory 57 B.1. Installing Active Directory ........................................................................................... 57 B.2. Creating the RHEV admin user in Active Directory ....................................................... 57 C. Additional Reading D. Revision History 59 61

iv

Preface
The Red Hat Enterprise Virtualization platform is a richly featured virtualization management solution providing fully integrated management across virtual machines. It is based on the leading open source virtualization platform and provides superior technical capabilities. The platform offers scalability in the management of large numbers of virtual machines.

1. About this Guide


This guide describes how to install the Red Hat Enterprise Virtualization platform.

1.1. The Red Hat Enterprise Virtualization Manager Documentation Suite


Red Hat Enterprise Virtualization Manager documentation suite provides information on installation, development of applications, configuration and usage of the Red Hat Enterprise Virtualization Manager platform and its related products. Red Hat Enterprise Virtualization Manager Release Notes: contains release-specific information and known issues. Red Hat Enterprise Virtualization Administration Guide: describes how to setup, configure and manage the virtualized environment. Red Hat Enterprise Virtualization Installation Guide: describes how to install the virtualized environment. Red Hat Enterprise Virtualization Hypervisor Deployment Guide: describes how to deploy and install the hypervisor. Red Hat Enterprise Virtualization Manager API Guide describes how to use the command line functions to set up and manage virtualization tasks. Use this guide of you do not wish to use the graphical user interface, and prefer using the command line.

1.2. Audience
This documentation suite is intended for system administrators installing a virtual environment based on the specifications provided to them by their solution architect. An advanced level of system administration, preferably including familiarity with virtual machine data center operations, is assumed. This document is not intended for beginners.

2. Document Conventions
This manual uses several conventions to highlight certain words and phrases and draw attention to specific pieces of information. In PDF and paper editions, this manual uses typefaces drawn from the Liberation Fonts set. The Liberation Fonts set is also used in HTML editions if the set is installed on your system. If not, alternative but equivalent typefaces are displayed. Note: Red Hat Enterprise Linux 5 and later includes the Liberation Fonts set by default.
1

https://fedorahosted.org/liberation-fonts/

Preface

2.1. Typographic Conventions


Four typographic conventions are used to call attention to specific words and phrases. These conventions, and the circumstances they apply to, are as follows. Mono-spaced Bold Used to highlight system input, including shell commands, file names and paths. Also used to highlight keycaps and key combinations. For example: To see the contents of the file my_next_bestselling_novel in your current working directory, enter the cat my_next_bestselling_novel command at the shell prompt and press Enter to execute the command. The above includes a file name, a shell command and a keycap, all presented in mono-spaced bold and all distinguishable thanks to context. Key combinations can be distinguished from keycaps by the hyphen connecting each part of a key combination. For example: Press Enter to execute the command. Press Ctrl+Alt+F2 to switch to the first virtual terminal. Press Ctrl+Alt+F1 to return to your X-Windows session. The first paragraph highlights the particular keycap to press. The second highlights two key combinations (each a set of three keycaps with each set pressed simultaneously). If source code is discussed, class names, methods, functions, variable names and returned values mentioned within a paragraph will be presented as above, in mono-spaced bold. For example: File-related classes include filesystem for file systems, file for files, and dir for directories. Each class has its own associated set of permissions. Proportional Bold This denotes words or phrases encountered on a system, including application names; dialog box text; labeled buttons; check-box and radio button labels; menu titles and sub-menu titles. For example: Choose System Preferences Mouse from the main menu bar to launch Mouse Preferences. In the Buttons tab, click the Left-handed mouse check box and click Close to switch the primary mouse button from the left to the right (making the mouse suitable for use in the left hand). To insert a special character into a gedit file, choose Applications Accessories Character Map from the main menu bar. Next, choose Search Find from the Character Map menu bar, type the name of the character in the Search field and click Next. The character you sought will be highlighted in the Character Table. Doubleclick this highlighted character to place it in the Text to copy field and then click the Copy button. Now switch back to your document and choose Edit Paste from the gedit menu bar. The above text includes application names; system-wide menu names and items; application-specific menu names; and buttons and text found within a GUI interface, all presented in proportional bold and all distinguishable by context. Mono-spaced Bold Italic or Proportional Bold Italic vi

Pull-quote Conventions Whether mono-spaced bold or proportional bold, the addition of italics indicates replaceable or variable text. Italics denotes text you do not input literally or displayed text that changes depending on circumstance. For example: To connect to a remote machine using ssh, type ssh username@domain.name at a shell prompt. If the remote machine is example.com and your username on that machine is john, type ssh john@example.com. The mount -o remount file-system command remounts the named file system. For example, to remount the /home file system, the command is mount -o remount /home. To see the version of a currently installed package, use the rpm -q package command. It will return a result as follows: package-version-release. Note the words in bold italics above username, domain.name, file-system, package, version and release. Each word is a placeholder, either for text you enter when issuing a command or for text displayed by the system. Aside from standard usage for presenting the title of a work, italics denotes the first use of a new and important term. For example: Publican is a DocBook publishing system.

2.2. Pull-quote Conventions


Terminal output and source code listings are set off visually from the surrounding text. Output sent to a terminal is set in mono-spaced roman and presented thus:
books books_tests Desktop Desktop1 documentation downloads drafts images mss notes photos scripts stuff svgs svn

Source-code listings are also set in mono-spaced roman but add syntax highlighting as follows:
package org.jboss.book.jca.ex1; import javax.naming.InitialContext; public class ExClient { public static void main(String args[]) throws Exception { InitialContext iniCtx = new InitialContext(); Object ref = iniCtx.lookup("EchoBean"); EchoHome home = (EchoHome) ref; Echo echo = home.create(); System.out.println("Created Echo"); System.out.println("Echo.echo('Hello') = " + echo.echo("Hello")); } }

2.3. Notes and Warnings


Finally, we use three visual styles to draw attention to information that might otherwise be overlooked. vii

Preface

Note
Notes are tips, shortcuts or alternative approaches to the task at hand. Ignoring a note should have no negative consequences, but you might miss out on a trick that makes your life easier.

Important
Important boxes detail things that are easily missed: configuration changes that only apply to the current session, or services that need restarting before an update will apply. Ignoring a box labeled 'Important' will not cause data loss but may cause irritation and frustration.

Warning
Warnings should not be ignored. Ignoring warnings will most likely cause data loss.

3. We Need Feedback!
If you find a typographical error in this manual, or if you have thought of a way to make this manual better, we would love to hear from you! Please submit a report by email to the author of the manual, Susan Burgess (sburgess@redhat.com ). When submitting a bug report, be sure to mention the manual's identifier: Server_Install_Guide. If you have a suggestion for improving the documentation, try to be as specific as possible when describing it. If you have found an error, include the section number and some of the surrounding text so we can find it easily.

viii

Chapter 1.

Overview
This document describes how to install Red Hat Enterprise Virtualization Manager platform for the first time. It contains information on hardware and software prerequisites, installation procedures and initial configuration.

1.1. System architecture


The Red Hat Enterprise Virtualization Manager (RHEV) platform consists of: Red Hat Enterprise Virtualization Manager Manager (RHEV Manager) acts as a centralized management system that allows system administrators to view and manage virtual machines and images. The Red Hat Enterprise Virtualization Manager Manager provides a comprehensive range of features including search capabilities, resource management, live migrations and provisioning. The RHEV Manager is able to manage hosts running Red Hat Enterprise Virtualization Hypervisor or Red Hat Enterprise Linux 5.4. Red Hat Enterprise Virtualization Manager Hypervisor (RHEV Hypervisor) is a thin virtualization layer deployed across the server infrastructure. It is based on Kernel-based Virtual Machine (KVM), which is a core component of the Linux kernel. The RHEV Hypervisor is a stand-alone Red Hat Enterprise Linux installation developed specifically for use with Red Hat Enterprise Virtualization. It is also possible to configure Red Hat Enterprise Linux 5.4 to be used as a host. Red Hat Enterprise Linux hosts can be used concurrently with RHEV Hypervisors. The descriptions in this guide provide sufficient knowledge for performing a basic installation of the system. For a more thorough description, refer to the Red Hat Enterprise Virtualization Manager for Servers Administration Guide.

Figure 1.1. Red Hat Enterprise Virtualization Manager Components

Chapter 1. Overview

1.2. How the management system works


The following components combine to enable system administrators to setup, configure and maintain the virtualized environment by using a graphical interface.

1.2.1. About the servers


The Red Hat Enterprise Virtualization Manager platform consists of one or more Hypervisors (or hosts) and at least one Manager. The virtual machines (or guests) are hosted on the Hypervisor. The system and all of its components are managed through Red Hat Enterprise Virtualization Manager Manager. Red Hat Enterprise Virtualization Manager Manager provides a graphical user interface to administer the physical and logical resources within the virtual environment infrastructure. It can be used to manage provisioning, connection protocols, user sessions, virtual machine pools, images and high availability/clustering. The Red Hat Enterprise Virtualization Manager Manager runs on Windows 2003 server in clustered mode, with active-standby configuration. Red Hat Enterprise Virtualization Manager Hypervisor or Red Hat Enterprise Linux Host runs the virtual machines on Red Hat Enterprise Linux with KVM virtualization technology. It also includes a resource optimization layer that allows for improved virtual machine interactivity and management.

1.2.2. About the virtual machines


Red Hat Enterprise Virtualization Manager enables a thin client or personal computer to access virtual machines with minimal local resources, using a standard web browser. The following operating systems are currently supported on virtual machines: Red Hat Enterprise Linux 3 (32 bit only) Red Hat Enterprise Linux 4 (32 bit and 64 bit) Red Hat Enterprise Linux 5 (32 bit and 64 bit) Windows Server 2003 with Service Pack 2 (32 bit and 64 bit) Windows Server 2008 with Service Pack 2 (32 bit and 64 bit) Windows XP (32 bit only)

1.3. About the installation process


Red Hat Enterprise Virtualization Manager is installed using the following steps: 1. Check that you have the necessary prerequisites, hardware and software specified in Chapter 2, System Requirements. 2. Install the Red Hat Enterprise Virtualization Manager Manager according to Chapter 3, Installing the Red Hat Enterprise Virtualization Manager Manager. This requires the installation and configuration of Windows 2003 Server 32-bit (or R2) with Service Pack 2, followed by the installation of the Red Hat Enterprise Virtualization Manager Manager application. 3. Install the Red Hat Enterprise Virtualization Manager Hypervisors and Red Hat Enterprise Linux hosts according to Chapter 4, Installing the Red Hat Enterprise Virtualization Manager Hypervisor and Chapter 5, Using Red Hat Enterprise Linux Hosts. 4. Configure and attach storage, according to Chapter 6, Setting Up Storage. 2

About the installation process 5. Configure the Red Hat Enterprise Virtualization Manager Manager for use, according to Chapter 7, Configuring the System.

Chapter 2.

System Requirements
This section describes the basic hardware and software prerequisites required for installing the Red Hat Enterprise Virtualization platform. It is assumed that the requirements for your specific implementation of the Red Hat Enterprise Virtualization Manager system have been defined by your solution architect. Therefore, the solution planning stage is not covered by this document. However, be aware that the following must be considered when designing the system: total number of virtual machines to be used, storage requirements, network capacity, total CPU and memory requirements. Additional notes regarding system planning are provided in Appendix A, Planning the System Architecture. Ensure that the listed requirements are ready before attempting installation.

2.1. Prerequisites
Latest Red Hat Enterprise Virtualization Manager Release Notes. A client with Windows XP and .NET Framework 3.1 with Service Pack 1 is required to access the web-based administration portal. The web-based administration portal can be used as an alternative to the administration portal available on the RHEV Manager server.

2.2. Hardware requirements


One or more physical servers to act as the Red Hat Enterprise Virtualization Manager Hypervisors or Red Hat Enterprise Linux Hosts, each with: Hardware virtualization support: a. AMD system with AMD-V enabled in the BIOS and AMD64 CPU extension; or b. Intel system with Intel VT enabled in the BIOS and Intel 64 CPU extensions. Minimum 512MB of RAM. Minimum 512MB of additional RAM for each virtual machine. The amount of RAM allocated to each virtual machine is dependent on the guest operating system. Minimum 750MB storage for installation of the Hypervisor on hard disk drive, plus additional 1 storage for swap. Refer to Red Hat Knowledgebase for more information on recommended swap sizes. Ensure that all Hypervisor or host servers to be used within a single cluster have the same CPU type. This enables virtual machines to reside on any host within the cluster and to be migrated between hosts. For further information, refer to the Red Hat Enterprise Virtualization Manager for Servers Administration Guide. One server to act as the Red Hat Enterprise Virtualization Manager Manager, with: Minimum 1 GB of memory. Minimum 20 GB of local disk space. Server to provide storage for virtual machine and ISO images. Storage networking can be implemented using Network File System (NFS), Internet Small Computer System Interface (iSCSI) or Fibre Channel Protocol (FCP). 5

Chapter 2. System Requirements At least one network controller with a minimum bandwidth of 100 Mbps.

2.3. Software requirements


Red Hat Enterprise Virtualization Manager Hypervisor installation software; and/or A Red Hat Enterprise Linux 5.4 AMD64/Intel 64 system. Red Hat Enterprise Virtualization Manager Manager installation software. Microsoft Windows Server 2003 (or R2) 32-bit edition, with: 1. Windows Server 2003 Service Pack 2. It is possible to create installation media that has the Service Pack files integrated into the Windows Server 2003 installation folder. This allows the Service Pack to be installed simultaneously with the operating system. For instructions, refer to http://support.microsoft.com/ kb/950349. 2. Valid Microsoft Windows Server 2003 product key. The following Windows components: Microsoft .NET Framework 3.5 Service Pack 1. Available from: http://download.microsoft.com/download/2/0/e/20e90413-712f-438c-988efdaa79a8ac3d/dotnetfx35.exe Microsoft .NET Framework 3.5 Family Update for Windows Server 2003. Filename: NDP35SP1-KB958484-x86.exe Available from: http://www.microsoft.com/downloads/details.aspx? familyid=6c095bba-6100-4ec9-9c54-6450b0212565&displaylang=en&displaylang=en Windows Power Shell 1.0 Filename: WindowsServer2003-KB926139-v2-x86-ENU.exe Available from: http://www.microsoft.com/downloads/details.aspx? FamilyId=10EE29AF-7C3A-4057-8367-C9C1DAB6E2BF&displaylang=en Recommended utilities for transferring files between RHEV Manager and RHEV Hypervisor: WinSCP: open source Secure Copy (SCP) client for Windows. PuTTY: open source Secure Shell (SSH) client for Windows and Unix platforms.

Chapter 3.

Installing the Red Hat Enterprise Virtualization Manager Manager


The installation of Red Hat Enterprise Virtualization Manager Manager is performed in two phases. The first phase is the installation and configuration of Windows Server 2003 (or R2) 32-bit edition with Service Pack 2, and the second phase is the installation of the Red Hat Enterprise Virtualization Manager Manager (RHEVM).

3.1. Installing the Operating System


1. Install Windows Server 2003 32-bit (or R2) with Service Pack 2 by booting from the installation media and following the on-screen instructions. When formatting the hard disk using Windows Setup, select Format the partition by using the NTFS file system (Quick) option.

Note
Only the English locale is supported when installing the RHEV Manager on Windows Server 2003.

2.

Once the installation of Windows Server 2003 (or R2) 32-bit edition is complete, confirm that Service Pack 2 was included in the initial installation of Windows Server 2003 before proceeding. a. Open the System Properties dialog box using one of the following methods: Open the System applet in Control Panel; or Right-click on My Computer and choose Properties.

Chapter 3. Installing the Red Hat Enterprise Virtualization Manager Manager b. Confirm that Service Pack 2 is listed under the System information.

Figure 3.1. System Properties

Note
If Service Pack 2 is not installed, use Windows Update to add Service Pack 2 before proceeding.

3.

Check that the i386 directory contained on the installation CD was copied to the C: drive. If not, copy it to the hard drive manually, as it is required when adding the Windows components.

Configure DNS server

3.1.1. Configure DNS server


The RHEV Manager server must be configured with a fully qualified name that is resolvable throughout the system by the host and clients. 1. 2. Configure TCP/IP for static addressing. Configure DNS server role.

For instructions, refer to http://technet.microsoft.com/en-us/library/cc738344(WS.10).aspx.

3.1.2. Connect to domain controller


Active Directory acts as the domain controller for the Windows Server 2003 installation. Therefore, Active Directory must be installed and configured before joining RHEV Manager to the domain. For information about Active Directory, refer to Appendix B, Using Active Directory. Procedure 3.1. To join an Active Directory domain from Windows Server 2003: 1. Go to Start, right-click My Computer and select Properties. 2. 3. 4. 5. 6. Select the Computer Name tab. Ensure that the Computer description field contains the fully qualified computer name. If not, enter it now. Click Change.... Enter the domain information and click Ok. When prompted for the credentials of a user that can join machines to the domain, enter the RHEV administrator user credentials created as per Section B.2, Creating the RHEV admin user in Active Directory. Then click Ok. If successful, a message will be displayed confirming that the computer has been joined to the domain. Click Ok to continue. If a confirmation message was not received, this is likely to be due to one of the following: Domain specified is incorrect. User credentials specified are incorrect. User credentials provided do not have the necessary permissions to join a machine to the domain. Check your Active Directory configuration and credentials and try again. 8. Reboot the machine to complete the process.

7.

3.1.3. Add components


It is necessary to install additional Windows components and perform updates before installing Red Hat Enterprise Virtualization Manager Manager application. 1. a. Install .NET Framework 3.5 Service Pack 1

Chapter 3. Installing the Red Hat Enterprise Virtualization Manager Manager b. Verify that .NET Framework 3.5 Service Pack 1 was installed by going to Start > Control Panel > Add or Remove Programs and checking that it is listed, as in Figure 3.2, Add or Remove Programs.

Figure 3.2. Add or Remove Programs 2. From Add/Remove Programs, click on Add/Remove Windows Components.

10

Add components 3. From the Windows Components Wizard, select the Application Server checkbox and click Details.

Figure 3.3. Windows component wizard 4. From the Application Server window, check the following options: Application Server Console ASP.NET Enable network COM+ access Enable network DTC access Internet Information Services (IIS)

11

Chapter 3. Installing the Red Hat Enterprise Virtualization Manager Manager

Figure 3.4. Application Server 5. Click OK to add the selected components. a. If the required files are not found, an error message displays.

Figure 3.5. Copy Error The error message indicates that the Windows installation CD or the i386 directory was not found.

12

Installing RHEV Manager b. c. 6. 7. Click Browse... to navigate to the location of the i386 directory. Click Retry to continue.

Click Next to install the selected components. Install Windows PowerShell 1.0 Verify PowerShell installed successfully by going to Start > All Programs > Windows PowerShell 1.0.

8.

Use Microsoft Windows Update to install all available updates.

3.2. Installing RHEV Manager


This section describes the installation of the RHEV Manager application. It is expected that the installation wizard will minimize at times throughout the installation process. The wizard will reappear when ready to proceed with the next step.

3.2.1. Run the installation wizard


1. 2. Double-click the RHEV Manager installation file to execute the installation wizard. You may need to wait while the wizard prepares for installation. When presented with the welcome screen, click Next.

Figure 3.6. Welcome screen

13

Chapter 3. Installing the Red Hat Enterprise Virtualization Manager Manager

3.2.2. Accept license agreement


You are asked to read the End User License Agreement.

Figure 3.7. Import license file To continue with the installation you must accept the terms of the License Agreement by clicking Yes. The wizard will proceed to the next step. If you do not agree to the License Agreement, click No. The installation process will be canceled.

3.2.3. Select features


A typical installation includes the following features: RHEVM Admin Portal: used to manage the RHEV system and perform associated tasks. RHEVM Database: holds RHEV system information regarding created objects, configuration and logging history. RHEVM Service: the core RHEV Manager application. RHEVM Scripting Library: PowerShell scripting library and documentation. RHEVM Net Console: remote console service used for logging purposes. RHEVM Web Admin: web-based administrator portal. 14

Setup the database

Figure 3.8. Select components 1. Select the features to be installed. If a checkbox is gray, this indicates that the feature is required for installation.

Note
It is recommended that all features are installed by default.

Although installation of a local RHEV Manager database is recommended, the Database checkbox can be unmarked to use an existing database. 2. Once the selection is complete, click Next to continue.

3.2.4. Setup the database


Specify whether an existing SQL Server database is to be used or if the installation wizard should create a local database instance. It is recommended that a new database instance is created.

15

Chapter 3. Installing the Red Hat Enterprise Virtualization Manager Manager Procedure 3.2. Create a new database instance: 1. Select the Install a SQL Server 2005 Express Locally option.

Figure 3.9. RHEVM Database 2. Set the password for the database sa user. To change the default password for the SQLExpress sa user: Enter the preferred administrator password in the Password and Confirm Password fields.

3.2.5. Choose installation location


Select the location for the RHEV Manager installation.

Note
It is recommended that the default installation path is used.

16

Select website Procedure 3.3. Change the installation location 1. Click Browse... and select the required destination folder.

Figure 3.10. Set installation folder 2. Click Next to accept the installation location.

3.2.6. Select website


The installation wizard will create a website for users with automatic URL redirection.

17

Chapter 3. Installing the Red Hat Enterprise Virtualization Manager Manager 1. Either select the desired website from the drop-down menu or create a new site.

Figure 3.11. Select or create website To use the default website, keep the default values. To set a custom name: a. b. c. d. 2. Click Create a new site. Enter the desired site name in the New site name field. Enter the site port in the Port field. Leave the Force SSL checkbox selected.

Once the default or custom selection has been made, click Next to continue.

3.2.7. Select RHEV Manager domain and user


Provide the Active Directory domain and user details to be used by RHEV Manager. The User details section requires the Active Directory user details that were setup according to Section 2.1, Prerequisites. These credentials will be used on the first run of template-created servers to associate users and groups with specific virtual servers within the system. Therefore, this user requires permissions to create computer objects within Active Directory.

18

Enter certification details

Figure 3.12. Enter domain and user details The RHEV Manager filters users that do not have a User Principal Name (UPN, e.g. user@domain) configured in Active Directory. Therefore, ensure that the user is correctly configured before proceeding. Domain details 1. From the Select Local or Domain drop-down menu, choose the Domain option. 2. Enter the domain name to be used in the Domain Name field. User details 1. Enter the Active Directory username in the User Name field. 2. Enter the Active Directory password in the Password field. Once it has been confirmed that the domain and user details have been correctly entered, click Next to continue.

3.2.8. Enter certification details


At the Certification details screen: 1. Enter the name of your organization in the Organization name field. 2. Enter the fully qualified name for the RHEV Manager server in the Fully qualified computer name field.

19

Chapter 3. Installing the Red Hat Enterprise Virtualization Manager Manager

Note
It is recommended that the fully qualified computer name is resolvable. If not, select the Do not validate fully qualified computer name checkbox. This option is useful during testing or when the Domain Name Server is not configured.

Figure 3.13. Certification Details 3. Confirm that the information entered is correct and click Next to proceed.

3.2.9. Enter net console port


A default net console port will be supplied by the installation wizard.

20

Confirm settings Accept the default value by clicking Next.

Figure 3.14. Net Console Port

3.2.10. Confirm settings


The installation wizard will present a summary of the installation information entered. 1. Confirm that the information entered is correct. To alter any details, use the Back button to navigate to the relevant screen and make the necessary changes.

21

Chapter 3. Installing the Red Hat Enterprise Virtualization Manager Manager 2. Once all details are correct, click Next to continue.

Figure 3.15. Confirm settings 3. The installation wizard will begin configuring the installation. If there are any running applications using files that require updating, you are notified to close these before proceeding. Once this is done, click Retry to continue.

22

Add external packages

Figure 3.16. Close applications

3.2.11. Add external packages


Install the following external packages when prompted.

Note
The installation window may minimize during the installation process.

OpenSSL Setup Wizard 1. Click Next to begin installation. 2. Read the License Agreement. To accept the license agreement, select the I accept the agreement option and click Next. 3. It is recommended that OpenSSL is installed in the default location provided. Click Next to continue. 4. The installation wizard will create shortcuts in the specified Start Menu folder specified. To change the specified folder, click Browse and select the desired Start Menu folder. 5. Check the settings and confirm that the installation should proceed by clicking Install. 6. Click Finish.

23

Chapter 3. Installing the Red Hat Enterprise Virtualization Manager Manager Python Extensions for Microsoft Windows 1. At the Setup screen, click Next to proceed. 2. It is recommended that the installation uses the default settings provided, including the python and installation directories. Click Next to continue. 3. The Python installation process begins. Once complete, click Finish to exit the setup wizard. The RHEV Manager installation will continue and may take some time to complete. When finished, the installation wizard will confirm that that it has completed the installation. Click Finish to exit.

3.2.12. Login to the administrator portal


Accessing the administrator portal requires a client with Windows XP and .NET Framework 3.5 Service Pack 1 installed. 1. Open the administrator portal login screen by clicking on Start > All Programs > Red Hat > RHEV Manager > RHEVManager.

Figure 3.17. Administrator portal login Alternatively, if the RHEVManager shortcut is not present, open a web browser and navigate to http://localhost/RHEVmanager. 2. 3. Enter the RHEV Manager administrator credentials, as configured in Section 3.2.7, Select RHEV Manager domain and user. Please wait while the application information is downloaded. Allow the ActiveX component to be installed.

24

Login to the administrator portal 4. Once the installation process is complete, you will be presented with the RHEV Manager interface.

Figure 3.18. RHEV Manager interface

25

26

Chapter 4.

Installing the Red Hat Enterprise Virtualization Manager Hypervisor


This chapter covers installing and integrating Red Hat Enterprise Virtualization Hypervisors with a Red Hat Enterprise Virtualization Manager. The RHEV Hypervisor must be installed on a physical server and cannot be installed on a virtual machine. The installation process will reconfigure the selected storage device and destroy all data. Therefore, ensure that any data to be retained is successfully backed up before proceeding. The following method can be used when installing multiple servers. However, ensure that unique hostnames and IP addresses are used for each Hypervisor installation, in order to avoid network conflicts. The following procedure provides installation instructions for using a CD-ROM created using the RHEV Hypervisor ISO image available from Red Hat. For alternative installation methods using USB Flash Drive or Network (PXE) Boot, refer to the Red Hat Enterprise Virtualization Hypervisor Deployment Guide available at http://www.redhat.com/docs/. RHEV Hypervisors can use Storage Attached Networks (SANs) and other network storage for storing virtualized guest images. However, a local storage device is required for installing and booting the Hypervisor.

Automated Installations
RHEV Hypervisor installations can be automated or conducted without interaction. This type of installation is only recommended for advanced users. Refer to the Red Hat Enterprise Virtualization Hypervisor Deployment Guide for more information.

4.1. Preparing an installation disc


RHEV Hypervisors can be installed using an optical disc on systems with a functional CD-ROM or DVD drive. These procedures require a Red Hat Enterprise Linux 5 system with RHN entitlements for the RHEV channels.

Note
Access to a working system with an optical recorder drive and optical disk recording software is required for creation of the installation disc. The instructions in this guide use the cdrecord package, which is installed by default on Red Hat Enterprise Linux.

Procedure 4.1. Confirm recording software is present on Red Hat Enterprise Linux 1. To verify that the cdrecord package is present on the system, perform a query using the rpm package manager by entering the command:
# rpm -q cdrecord

27

Chapter 4. Installing the Red Hat Enterprise Virtualization Manager Hypervisor 2. If the cdrecord package is installed, the package name will be displayed in the system output. If notification is displayed that the cdrecord package is not installed, it can be installed using the command:
# yum install cdrecord

Once the cdrecord package is verified as being present, the installation media can be created. Procedure 4.2. Create an installation disc 1. Enable the Red Hat Enterprise Virtualization Hypervisor 5 channel on RHN. 2. Install the RHEV Hypervisor ISO image package.
# yum -y install rhev-hypervisor

Alternatively, download the RHEV Hypervisor CD-ROM image from Red Hat Network . 3. 4. Insert a blank CD-ROM or DVD into your CD/DVD recorder drive. Record the ISO file to disc using the cdrecord command in the format:
# cdrecord dev=device [iso file path]

For example, if using the first CD-RW device (/dev/cdrw) available and the Hypervisor ISO file located at /usr/share/rhev-hypervisor/rhev-hypervisor.iso the command used is:
# cdrecord dev=/dev/cdrw /usr/share/rhev-hypervisor/rhev-hypervisor.iso

5.

If an error occurs during the recording process, try inserting a new writable disc and repeat the previous command. Once the record process has completed without any errors occurring, the installation media is ready to use. The RHEV Hypervisor uses the isomd5sum to verify the integrity of the installation media each time the Hypervisor is booted. If media errors are reported during the boot sequence, a new installation disc will need to be created.

4.2. Confirm hardware virtualization support


If unsure, verify that the virtualization extensions are present and enabled in the BIOS before installing the Hypervisor. 1. 2. 3. Insert the RHEV Hypervisor installation CD-ROM into the CD-ROM drive of the server. Power on the system and ensure it boots from the CD. Once the Hypervisor has completed the boot phase and the boot prompt is displayed, enter the command:
: linux rescue

4.

To verify that your CPU contains the virtualization extensions, enter the command:

28

Boot the Hypervisor

# grep -E 'svm|vmx' /proc/cpuinfo

The processor is hardware virtualization capable if output is displayed. 5. To verify that the virtualization extensions are enabled in the BIOS, check that the kvm modules are loaded in the kernel by entering:
# lsmod | grep kvm

If the output includes kvm_intel or kvm_amd then the kvm hardware virtualization modules are loaded and the system meets requirements.

Note
If hardware virtualization support is not present and enabled, it is not possible to install the RHEV Hypervisor.

4.3. Boot the Hypervisor


1. 2. 3. Insert the RHEV Hypervisor installation CD-ROM into the CD-ROM drive of the server. Power on the system and ensure the system boots from CD. Once the Hypervisor has completed the boot phase and the boot prompt is displayed, press Enter to continue. If the Hypervisor has been previously installed, you may need to provide additional parameters to cause the server to boot to the configuration setup menu. For further information, refer to the Red Hat Enterprise Virtualization Hypervisor Deployment Guide.

4.4. The RHEV Hypervisor Configuration Menu


Once the RHEV Hypervisor boots you will see the Hypervisor Configuration Menu. The Hypervisor Configuration Menu is an interactive tool for installing Red Hat Enterprise Virtualization Hypervisors. The Hypervisor Configuration Menu resembles Example 4.1, Red Hat Enterprise Virtualization Hypervisor Configuration Menu. Throughout this chapter it will be referred to as the main menu. Example 4.1. Red Hat Enterprise Virtualization Hypervisor Configuration Menu
Red Hat Enterprise Virtualization Hypervisor release 5.4-2.1 Hypervisor Configuration Menu 1) Configure storage partitions 2) Configure authentication 3) Set the hostname 4) Networking setup Choose an option to configure: 5) 6) 7) 8) Configure the RHEV Manager Install locally and reboot Uninstall an existing Hypervisor Support menu

29

Chapter 4. Installing the Red Hat Enterprise Virtualization Manager Hypervisor Configuration menu options Configure storage partitions: prepares the local storage device for installation. Refer to Section 4.6, Partitioning the disk. Configure authentication: sets the root password for administration and SSH access. Refer to Section 4.7, Set the administrator password. Set the hostname: sets the hostname manually instead of using DHCP. Refer to Section 4.8, Set the hostname. Networking setup: configures network settings and services (DHCP, IPv4 and/or IPv6, and DNS). Refer to Section 4.9, Setup Networking. Configure the RHEV Manager: enter IP address of the RHEV Manager server. Refer to Section 4.10, Connect to the RHEV Manager. Install locally and reboot: install the Hypervisor to the storage device and reboot. Refer to Section 4.11, Installation. Uninstall an existing Hypervisor: removes all existing RHEV Hypervisor installations and data. Refer to Section 4.5, Remove existing RHEV Hypervisor installations. Support menu: contains options for continuing stateless boot and exiting to a shell prompt. This menu is not supported except when working with Red Hat support.

4.5. Remove existing RHEV Hypervisor installations


If the Hypervisor was previously installed on the local system, remove the existing installation by selecting Uninstall an existing Hypervisor option from the main menu. For further information on removing previous versions of the RHEV Hypervisor, refer to the Red Hat Enterprise Virtualization Manager Hypervisor Deployment Guide.

4.6. Partitioning the disk


The partitions used by the RHEV Hypervisor are configured from this menu. For most installations the default partition layout is optimal.

Warning
Running this procedure will destroy all data on the local storage device selected with the storage_init parameter.

Procedure 4.3. The Storage Configuration menu 1. Select the Configure storage partitions option from the main menu to open the Configure storage partitions menu. Example 4.2. The Configure storage partitions menu
Configure storage partitions 1) Configure 2) Review Choose an option: 3) Commit configuration 4) Return to the Hypervisor Configuration Menu

30

Partitioning the disk 2. Choose partition sizes Select Configure. You are prompted to set the size of swap, root, config, logging and data partitions. The value is accepted in megabytes (MB). Setting a size value of -1 sets the partition to take up all remaining disk space. Note that this can only be used with the Data partition. Pressing Enter without any value sets the partition to the default size.

Important
Do not append units onto the end of the partition size values. Using MB or similar unit on the end of a value may have adverse effects. For example, use the value 5 instead of 5MB.

a.

The boot partition contains the boot loader, kernel and initramfs. The default and only supported size for the boot partition is 50MB.

b.

The swap partition is used for swapping underused memory to the hard drive to speed up memory performance. The default size of the swap partition is calculated from amount of RAM and overcommit ratio (default is 0.5). RHEV Hypervisors must have a swap partition and the swap partition cannot be disabled by setting its size to 0. The minimum size for the swap partition is 5MB. Red Hat Knowledgebase has an article on determining the size of the swap partition. Use the formula from the Red Hat Knowledgebase and add storage for the overcommit ratio (RAM multiplied by the overcommit ratio).
Recommended swap + (RAM * overcommit) = swap partition size
2

Pressing Enter during the installation sequence sets a recommended value for the swap partition. c. The root partition contains the core files for the Hypervisor and the LiveOS directory from the installation media. The default total size of the root file system partitions is 512MB. That is broken up into 256MB for one root partition and an additional 256MB for a backup root partition. The default and only supported size for the root partition is 256MB. The size entered is per partition, with the total size of the root partitions double what is entered. d. The config partition stores configuration files for the Hypervisor. The default and minimum size for the configuration partition is 5MB. e. The logging partition stores all logs for the Hypervisor. The default size for the logging partition is 2048MB, the minimum size is 256MB. f. The data partition stores core files and kdump files and acts as temporary storage for ISO files. The default size of the data partition is the remaining available disk space (labeled as -1). 31

Chapter 4. Installing the Red Hat Enterprise Virtualization Manager Hypervisor When ISO files are uploaded using the ISO Uploader tool, they are temporarily stored on the data partition of a RHEV Hypervisor host, before being moved to the shared ISO Library. The data partition must include sufficient space to store these ISO files, which can be over 4GB in size for modern operating systems. The data partition should be at least 1.5x as large as the RAM on the host system plus an additional 512MB in size. The minimum size is 256MB. 3. Review Select the Review menu option. The review menu output similar to the screenshot below:

4. 5.

Select Commit configuration to accept the partitions. The following warning displays:
!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!! !!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!! !!WARNING!! !!WARNING!! !!WARNING!! !!WARNING!! !!WARNING!! If you proceed, all data on your local storage !!WARNING!! !!WARNING!! device will be destroyed and your hard disk !!WARNING!! !!WARNING!! will be irreversibly reconfigured. !!WARNING!! !!WARNING!! !!WARNING!! !!WARNING!! !!WARNING!! !!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!! !!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!! Continue? (Y/n)

6.

Press Y to proceed and format the partitions.

Partitions are created and file systems are formatted. Once complete, the main menu reappears.

4.7. Set the administrator password


Setting a strong and easy to remember administrator password is an essential part of securing your infrastructure. Procedure 4.4. Set the administrator password 1. Select Configure authentication from the main configuration menu. Example 4.3. The Configure authentication menu
SSH password and authentication is currently disabled

32

Set the hostname

1) Set administrator password 3) Return to the Hypervisor Configuration Menu 2) Toggle SSH password authentication Choose an option to configure:

2. 3.

Select the Set administrator password. The password prompt displays.


Set the system administrator's (root) password: New UNIX password:

Enter the preferred password. You will be prompted to retype the password. 4.
Changing password for user root. passwd: all authentication tokens updated successfully. storing to /config : /etc/shadow File persisted

This message indicates that the password has been set and saved to local storage.

Configure SSH password authentication


SSH password authentication is required for accessing RHEV Hypervisors with the SSH protocol. By default, SSH password authentication is disabled. To enable SSH password authentication: 1. 2. Select Toggle SSH password authentication from the Administrator password menu.
Enable SSH remote access ([Y]es or [N]o)?

Press y to enable SSH password authentication. 3. If successful, the following message is displayed:
SSH remote access is currently enabled.

Select Return to the Hypervisor Configuration Menu to continue the installation.

4.8. Set the hostname


The Red Hat Enterprise Virtualization Manager requires a fully resolvable hostname for each RHEV Hypervisor. If you are using DHCP and DNS a hostname can be assigned to the Hypervisor at boot time. If the DHCP server does not set hostnames, the hostname must be specified manually (with the process below). This hostname must resolve to the assigned IP address located with a DNS lookup request. 1. 2. Select the Set the hostname option from the main menu.
What is this Hypervisor's hostname?

Enter the hostname in the following format: anyname.domain.example.com. Where anyname is the individual name for the host on the specified domain.

33

Chapter 4. Installing the Red Hat Enterprise Virtualization Manager Hypervisor 3. Press Enter to set the hostname. If successful, this message is displayed:
The hostname is set.

You are returned to the Configuration menu.

Reseting hostnames
To reset a hostname: 1. 2. Open the Set the hostname menu. The specify a hostname prompt appears:
What is this Hypervisor's hostname?

Press the Enter key without typing anything else to reset the hostname. The hostname is now reset to use DHCP.

4.9. Setup Networking


Configure your system's network settings. 1. 2. 3. Select the Networking setup option. The network devices attached to your system are listed.
Choose an interface or a configuration option:

Select the network interface on the same network as the RHEV Manager. On systems with one network interface there is only eth0 to choose from.

Device support
Wireless and logical network devices are presently unsupported.

4.

Identifying the interface Hypervisors include a tool to assist in physically identifying which network interface was selected.
Help identify eth0 by blinking the lights for 10 seconds ([Y]es or [N]o)?

Press y to identify which socket eth0 is. This is useful for systems with multiple network interfaces. If assistance is not required, continue by pressing n. If the selected network interface does not support this feature, the system will display the following message:

34

Setup Networking

Blinking is not supported by your network interface.

5.

VLANs A prompt will be displayed asking whether to include VLAN support:


Include VLAN support ([Y]es, [N]o or [A]bort)?

If VLAN support is not required, press n. To enable VLAN support, enter y. a.


What is the VLAN ID for this device (a=abort)

Enter the VLAN ID number when prompted. b.


Is this correct ([Y]es, [N]o or [A]bort)?

Confirm your VLAN choice if you selected a VLAN by pressing y. 6. IPv4 The IPv4 prompt appears.
Enable IPv4 support ([S]tatic IP, [D]HCP, [N]o or [A]bort)?

Select DHCP or Static IP depending on your networking environment. To use DHCP, press D to enable IPv4 support with DHCP. It is recommended to statically map all IP addresses for each RHEV Hypervisor on your DHCP server. Alternatively, assign a static IP address by pressing S. You are then prompted for the IP address, Netmask and gateway. Confirm your settings.
Is this correct ([Y]es, [N]o or [A]bort)?

Press Y if correct to continue. 7. DNS Configure DNS if required. a. Enter the IP address of the first DNS gateway or press Enter to abort.
Enter the first DNS server (or press the Enter key to exit):

b.

Enter the IP address of the second DNS gateway or press Enter to skip.
Enter the second DNS server (or press the Enter key to exit):

c.

Confirm your settings.

35

Chapter 4. Installing the Red Hat Enterprise Virtualization Manager Hypervisor

Is this correct ([Y]es, [N]o or [A]bort)?

Press Y if correct to continue. 8. Network Time Protocol (NTP) The Network Time Protocol (NTP) keeps system clocks in time with the rest of the world. NTP is crucial for some host systems with inconsistent clocks as hosts who are too far out of synchronization cannot migrate. a.
Enter an NTP server:

Enter the IP address or hostname of an NTP server or press Enter to abort. b. 9. You will be prompted to enter additional NTP servers. Enter as many as required and press Enter on a blank line to save your selection.

Select Return to the Hypervisor Configuration Menu to save the configuration.

10. If the network is configured correctly, the output should be similar to Figure 4.1, Working network configuration.

Figure 4.1. Working network configuration You are now returned to the main menu.

4.10. Connect to the RHEV Manager


This procedure connects the RHEV Hypervisor to a RHEV Manager. When specifying the address of the RHEV Manager, use the following format for IP addresses or hostnames. Table 4.1. Red Hat Enterprise Virtualization Manager addressing examples Type IP address Host Name Format IP[:port] host.name.domain[:port] Example 127.0.0.1:443 www.example.com:443

36

Installation

Important
Ensure that you have configured the local storage and networking correctly before proceeding. If something is not correct change it now because you cannot change it after this point. To change a setting after this point you must repeat the procedure from the beginning. The specified IP addresses or host names used must be fully resolvable.

1. 2.

Select 5) Configure RHEV Host from the configuration menu.


Enter the RHEV Manager's hostname or IP address. Optionally: append a port after the hostname or IP address For example, 10.0.0.1:443 or rhev.example.com:443

a. b.

Enter the Red Hat Enterprise Virtualization Manager hostname or IP address in the specified format. If the RHEV Manager is successfully found, the following output is displayed:
The RHEV Manager's address is set The RHEV Manager's port is set.

3.

Enter the address of the NetConsole manager for remote console output.
Enter the NetConsole manager's hostname or IP address. Optionally: append a port after the hostname or IP address For example, 10.0.0.1:25285 or rhev.redhat.com:25285 If you are unsure, use the RHEV Manager's address, without a port.

a.

Enter the NetConsole server and port. In most cases, this server will be the RHEV Manager. The NetConsole port is the same as the NetConsole port number specified during the installation of the RHEV Manager in Section 3.2.9, Enter net console port. If the NetConsole server is successfully found, the following output is displayed before being returned to the configuration menu:
The NetConsole manager address is set. The NetConsole manager port is set.

b.

4.11. Installation
Once all the previous steps are complete, the RHEV Hypervisor can be installed to the local storage device. Storage, networking and the RHEV Manager must be configured before continuing. 1. 2. Select Install locally and reboot from the Hypervisor Configuration Menu.
This option exits the menu and requires a reboot. Ensure local storage and networking is configured correctly on the previous menu before continuing. The current kernel boot parameters are crashkernel=128M@16M elevator=deadline processor.max_cstate=1

37

Chapter 4. Installing the Red Hat Enterprise Virtualization Manager Hypervisor


Enter additional kernel boot parameters (press Enter to use the present arguments):

Press Enter to continue. 3.


Do you wish to continue (Y/n)?

Press Y to continue. The final installation sequence begins. Once the installation is complete the RHEV Hypervisor will reboot. After rebooting, the RHEV Hypervisor is installed and integrated with Red Hat Enterprise Virtualization Manager for Servers. You should have a new host available in the Red Hat Enterprise Virtualization Manager interface.

Note
You should remove the boot media and change the boot device order to prevent the installation sequence restarting after the system reboots.

4.12. Using the hypervisor


Once the Hypervisor has finished rebooting, it is automatically registered with the Red Hat Enterprise Virtualization Manager platform. The RHEV Manager interface displays the Hypervisor under the Hosts tab. To prepare the Hypervisor for use, it must be approved using RHEV Manager. Procedure 4.5. Approve the Hypervisor 1. Login to the RHEV Manager admin portal (refer to Section 3.2.12, Login to the administrator portal). 2. 3. 4. From the Hosts tab, click on the host to be approved. The host should currently be listed with the status of Awaiting approval. Click the Approve button. The Edit and Approve dialog displays. You can use the dialog to make changes to the details Click Save. The status in the Hosts tab changes to Installing, after a brief delay the host status changes to Up.

38

Chapter 5.

Using Red Hat Enterprise Linux Hosts


Virtual machines on Red Hat Enterprise Linux can be managed by Red Hat Enterprise Virtualization Manager. Red Hat Enterprise Linux hosts can be used concurrently with RHEV Hypervisors.

Important
Only the AMD64/Intel 64 version of Red Hat Enterprise Linux is compatible for use with Red Hat Enterprise Virtualization Manager.

5.1. Adding Red Hat Enterprise Linux Hosts


Red Hat Enterprise Virtualization also supports hosts running Red Hat Enterprise Linux 5.4 AMD64/ Intel 64 version. This section describes the preparatory steps for installing the Red Hat Enterprise Linux host, as well as the steps to manually add the host to the Red Hat Enterprise Virtualization platform. Adding a host can take some time, as the following steps are completed by the platform: virtualization checks, installation of packages, creation of bridge and a reboot of the host. Use the Details pane to monitor the hand-shake process as the host and management system establish a connection.

5.1.1. Preparing Red Hat Enterprise Linux Hosts


To ensure a smooth and successful integration of Red Hat Enterprise Linux Hosts and Red Hat Enterprise Virtualization platform, prepare the host carefully according to the instructions in this section. Ensure that Red Hat Enterprise Linux 5.4 is correctly installed and configured on the physical host. Refer Red Hat Enterprise Linux Installation Guide. Only the Base package group is required. All other packages can be removed or not selected.

Important note on fresh installations


Do not select the Virtualization or KVM package groups when installing Red Hat Enterprise Linux, as they contain packages that are not compatible for use with Red Hat Enterprise Virtualization.

Ensure that VLANs are configured for access to the Red Hat Enterprise Virtualization Manager. Ensure the host is correctly subscribed to the appropriate Red Hat Network channels. Red Hat Enterprise Virt Management Agent (v.5 for x86_64) RHEL Virtualization (v. 5 for 64-bit x86_64)

39

Chapter 5. Using Red Hat Enterprise Linux Hosts

Note
If you do not have the appropriate subscription entitlements, contact Red Hat Customer Service.

Install the fence-agents, kvm-qemu-img bridge-utils packages required by Red Hat Enterprise Virtualization Manager to manage Red Hat Enterprise Linux hosts. During installation if the required additional packages are not found, they will be automatically installed by the Red Hat Enterprise Virtualization Manager. Install the required packages with yum:
# yum install bridge-utils fence-agents kvm-qemu-img

Uninstall incompatible packages. The RHEV management daemon (vdsm) is currently incompatible with Xen and libvirt. Therefore, both Xen and libvirt, including all dependencies, should be removed.

Warning
The following steps will destroy data on all existing virtual machines. It is strongly recommended to back up or migrate existing virtual machines to other Red Hat Enterprise Linux servers before proceeding. This process is not reversible.

Remove the xen, kernel-xen and libvirt packages with the yum command:
# yum remove xen kernel-xen libvirt

This command removes several dependencies, libvirt configuration files and virtual machine images stored in the /var/lib/libvirt/ directory. Reboot the system. The reboot effects a return to the default kernel if the Xen kernel was in use; and the reboot disables the default libvirt network bridge. Add a manual host entry to the /etc/hosts file (on the Red Hat Enterprise Linux 5.4 host) for the Red Hat Enterprise Virtualization Manager server to enable vdsm and other services to connect properly to the host. Because Active Directory uses layered domain names, the Active Directory instance takes the domain name usually used by a Linux host. For example, if the server running the Red Hat Enterprise Virtualization Manager has a hostname of server1.example.com, Active Directory uses that address and creates a sub-address named rhev-manager.server1.example.com. Edit the /etc/hosts file on the Red Hat Enterprise Linux Host. The following screen output sample resembles the contents of the file:
127.0.0.1 ::1 localhost.localdomain localhost localhost6.localdomain6 localhost6

40

To Add a Host Append a new line to /etc/hostswith the IP address and both variants of the RHEV Manager domain names. The following screen output sample resembles the required contents of the file:
127.0.0.1 localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6 10.0.0.1 server1.example.com rhev-manager.server1.example.com

Open firewall ports on the host. Red Hat Enterprise Virtualization platform uses a number of network ports for management and other virtualization features. The following steps configure iptables to open the required ports. Add the required ports as iptables rules. Advanced users can modify rules or use the iptables -i option instead of iptables -A in order to integrate with existing rules.
# iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT # iptables -A INPUT -p icmp -j ACCEPT # iptables -A INPUT -i lo -j ACCEPT # iptables -A INPUT -p tcp --dport 54321 -j ACCEPT # iptables -A INPUT -p tcp --dport 22 -j ACCEPT # iptables -A INPUT -p tcp -m multiport --dports 5634:6166 -j ACCEPT # iptables -A INPUT -p tcp -m multiport --dports 49152:49216 -j ACCEPT # iptables -A INPUT -j REJECT --reject-with icmp-host-prohibited # iptables -A FORWARD -m physdev ! --physdev-is-bridged -j REJECT --rejectwith icmp-host-prohibited

Save the modified rules.


# service iptables save

You can now add the correctly installed and configured Red Hat Enterprise Linux host to Red Hat Enterprise Virtualization platform.

5.1.2. To Add a Host


In the process of adding a host, you will need to provide the IP and password of the host, and the following steps are completed by the platform: virtualization checks, installation of packages, creation of bridge and a reboot of the host. The process of adding a new host can take some time, the process can be followed in the Details pane. 1. Click the Hosts tab. The Hosts tab displays a list of all hosts in the system.

41

Chapter 5. Using Red Hat Enterprise Linux Hosts

Figure 5.1. List of Hosts 2. Click the New button. The New Host dialog displays. Figure 5.2. New Host Dialog Enter the details of the new host. 3. Name: a descriptive name for the host. 4. Address: the IP address, or resolvable hostname of the host (provided during installation). 5. Port: the port used for internal communication control between the hosts. A default port is displayed; change the default only if you are sure that another port can be used. 6. Host Cluster: the cluster to which the host belongs (select from the drop-down list). 7. Root password: the password of the designated host; used during installation of the host. 8. Enable Power Management: Select this checkbox to turn out-of-band (OOB) power management on. If selected, the information for the following fields must also be provided. The Address of the host. This is usually the address of the remote access card (RAC) on the host. A valid User Name for the OOB management. A valid, robust Password for the OOB management. The Type of the OOB management device. Select the appropriate device from the drop down list.

42

Activating a Host DRAC5 ilo ipmilan rsa bladecenter The Port to connect to OOB management. Click the Test button to test the operation of the OOB management solution. Red Hat Enterprise Virtualization recommends power management. Power management enables the system to fence a troublesome host using an additional interface. Dell Remote Access Controller for Dell computers HP Integrated Lights Out standard Intelligent Platform Management Interface IBM Remote Supervisor Adaptor IBM Bladecentre Remote Supervisor Adapter

Note
If the host is required to be Highly Available, power management must be enabled and configured.

9. Click OK. The new host displays in the list of hosts with a status of "Installing". Once installation is complete, the status of the newly added host is Awaiting. The host must be activated for the status to change to Up.

Note:
View the process of the host installation on the Details pane.

5.2. Activating a Host


After a host has been added, or an existing host has been taken down for maintenance, it needs to be activated before it can be used. Red Hat Enterprise Linux 5.4 hosts need to be activated after being added or upgraded. To activate a host: 1. In the Hosts tab (see Figure 5.1, List of Hosts), select the host to be activated. 2. Click the Activate button. The host status changes to Up. Virtual machines can now run on the host.

43

44

Chapter 6.

Setting Up Storage
This chapter provides a quick start guide to configuring storage for Red Hat Enterprise Virtualization. For information about managing storage, including maintenance and removal, refer to the Red Hat Enterprise Virtualization Manager Administration Guide. Red Hat Enterprise Virtualization Manager uses a centralized storage system for maintaining ISO files and virtual machine disk images, data and snapshots. Storage networking can be implemented using Network File System (NFS), Internet Small Computer System Interface (iSCSI) or Fibre Channel Protocol (FCP). Once storage has been configured, it must be attached to the RHEV Manager in order to make it accessible to the system.

Before proceeding, ensure that you have:


A working RHEV Manager environment. At least one RHEV Hypervisor attached to RHEV Manager. This is required as all communication with the storage domain is performed via the configured Hypervisor.

6.1. Adding NFS Storage


Mount NFS shares by attaching them to the data center as a storage domain. Once attached, the storage domains can be used to provide storage for virtualized guest images and ISO boot media. For further information about using NFS, refer to the Red Hat Enterprise Linux Deployment Guide.

Preparing an NFS Share


This section outlines how to set up an NFS share with recommended settings. Ensure NFS is installed.
rpm -q nfs-utils

If the package is not detected, install it using the following commands:


yum install nfs-utils

chkconfig --add nfs

chkconfig nfs on

Determine the NFS share directory. For example, if you intend to share /RHEV/Images, enter the following line into the /etc/exports file.

/RHEV/Images

*(rw,no_root_squash)

Restart the NFS service. The NFS export directory must be configured for read write access and must be owned by vdsm:kvm. If these users do not exist on your external NFS server use the following commands, assuming that /RHEV/Images is the NFS share. 45

Chapter 6. Setting Up Storage

chown -R 36:36 /RHEV/Images

chmod g+s /exports/* -R

chmod u+s /exports/* -R

To Add NFS Storage: 1. Click the Storage tab. The Storage list and toolbar display. 2. Click New Storage. The New Storage dialog box displays.

Figure 6.1. NFS Storage 3. Enter the Name of the storage. For example, depending on its function, either Images or ISO. A suitably descriptive name is recommended. 4. Select NFS as the storage Type. 5. Select a Config.Host. To attach a domain, the name of any configured (and activated) host must be selected from the list of existing hosts.

Note
All communication to the storage domain is via the configured host and not from the Red Hat Enterprise Virtualization Manager. At least one host must exist in the system before the storage can be configured.

6. Enter the Export path of the storage. The export path can be either an IP address or a resolvable hostname. For example, 192.168.0.10:/Images/ISO. 7. Click OK. 8. The name of the NFS storage domain is added to the Storage tab.

6.2. Adding iSCSI Storage


Red Hat Enterprise Virtualization platform supports iSCSI storage at two levels: VG level Volume Group Level associates a set of predefined Logical Unit Numbers (LUNs) to a volume group that is assigned to a certain storage domain. Volume Groups cannot be shared between storage domains. LUN level allows an administrator to assign a set of LUNs to a storage domain. LUNs that are attached to one storage domain cannot be attached to another storage domain. For information regarding the setup and configuration of iSCSI on Red Hat Enterprise Linux, please refer to the Online Storage Reconfiguration Guide. To Add iSCSI Storage: 1. Click the Storage tab. The Storage list and toolbar display. 46

Adding iSCSI Storage 2. Click New Storage. The New Storage dialog box displays.

Figure 6.2. New Storage Dialog 3. Enter the Name of the storage. 4. Select iSCSI as the storage Type. The dialog box displays a set of fields appropriate to the iSCSI type.

Figure 6.3. Adding iSCSI Storage 5. Select a Config.Host. To attach a domain, the name of any configured (and activated) host must be selected from the list.

Note
All communication to the storage domain is via the configured host and not from the Red Hat Enterprise Virtualization Manager. At least one host must exist in the system before the storage can be configured.

6. Select either Build New Domain or Use Pre-Configured Domain. In this step you can either attach a set of LUNs (create a volume group) or attach an already existing Volume Group as your storage domain. 7. To Build New Domain: a. If necessary, to search for LUNs, click the Connect to Target button. b. The Connect to Targets dialog displays, enabling you to define a target on which to search for LUNs. Enter the requisite information in the fields. 47

Chapter 6. Setting Up Storage

Figure 6.4. Adding iSCSI Storage i. ii. Enter the IP Address of the iSCSI target. Enter the Port to connect to.

iii. If required, enter the details for User Authentication. iv. Click the Discover button to find the targets. v. The targets display in the list of Discovered Targets

vi. Click to either Login to All targets, or Add targets manually. If adding manually, select the LUNs from the list. vii. Click Close. The targets are now selected, and the LUNs display in the New Storage dialog. c. A list of LUNs (Logical Unit Numbers) display in the list of Discovered LUNs. Click the Add button to select the LUNs to add to the storage domain.

d. The LUNs selected in the previous step display in the Selected LUNs grid. The set of LUNs in this list will be assigned to the new storage domain. Use the Remove button to remove LUNs from the Selected LUNs if necessary. e. Click OK to attach the selected LUNs to the iSCSI storage domain. 8. To Use a Preconfigured Domain: a. In this step you use an existing volume group. Ensure that all tags and LVs have been removed from the VG before creating the new domain. The New Storage dialog changes to display the required fields for the preconfigured domain.

48

Adding FCP Storage

Figure 6.5. New Storage - Use Existing Volume group b. Use the Target Manager grid to connect to an existing volume group. The Address, Port and Name of the discovered targets are displayed in the panel. To manually add a target, click the Connect to Targets button. c. Select a Volume Group to connect to. The Name and Size are displayed. Click the Expand button to view the LUNs that comprise the VG.

9. Click OK. 10. The new storage domain displays in the Storage tab.

6.3. Adding FCP Storage


Red Hat Enterprise Virtualization platform supports SAN storage. The system supports physical storage configuration at two levels: Volume Group level associates a set of predefined LUNs to a volume group that is assigned to a certain storage domain. VG cannot be shared between storage domains. LUN level allows an administrator to assign a set of LUNs to a storage domain. LUNs that are attached to one storage domain cannot be attached to another storage domain. Red Hat Enterprise Virtualization system administrators need a working knowledge of Storage Area Networks (SAN) concepts. SAN usually uses Fibre Channel Protocol (FCP) for traffic between hosts and shared external storage. For this reason, SAN may occasionally be referred to as FCP storage. For information regarding the setup and configuration of FCP or multipathing on Red Hat Enterprise Linux, please refer to the Online Storage Reconfiguration Guide and DM-Multipathing Guide. To Add FCP Storage: 1. Click the Storage tab. The Storage list and toolbar display.

49

Chapter 6. Setting Up Storage 2. Click New Storage. The New Storage dialog box displays. 3. Enter the Name of the storage. 4. Select FCP as the storage Type. The dialog box displays the appropriate fields.

Figure 6.6. Adding FCP Storage 5. Select a Config.Host. To attach a domain, the name of any configured (and activated) host must be selected from the list.

Note
All communication to the storage domain is via the configured host and not from the Red Hat Enterprise Virtualization Manager. At least one host must exist in the system before the storage can be configured.

6. Select either Build New Domain or Use Existing Volume Group. 7. To Build New Domain:

50

Adding FCP Storage a. A list of LUNs (Logical Unit Numbers) display in the list of Discovered LUNs. Click the Add button to select the LUNs to add to the storage domain. b. The LUNs selected in the previous step display in the Selected LUNs grid. The set of LUNs in this list will be assigned to the new storage domain. Use the Remove button to remove LUNs from the Selected LUNs if necessary. c. Click OK to attach the selected LUNs to the storage domain.

8. To Use Preconfigured Domain: a. In this step you use an existing volume group. The New Storage dialog changes to display the required fields for the preconfigured domain. This is similar to the fields for the iSCSI preconfigured domain shown here.

Figure 6.7. New Storage - Use Existing Volume group b. Use the Target Manager to connect to an existing storage domain. The Address, Port and Name of the discovered targets are displayed in the panel. To add a target, click the Connect to Target button. See Figure 6.4, Adding iSCSI Storage. c. A list of targets display in the Target Manager.

d. Select a Volume group to connect to. Ensure that all tags and LVs have been removed from the VG before creating the new domain. The Name and Size are displayed. Click the Expand button to view the LUNs that comprise the Volume group. 9. Click OK. 10. The new storage domain displays in the Storage list.

51

52

Chapter 7.

Configuring the System


Once the Hypervisors, hosts and storage have been setup and added to the system, there are a number of further steps required before the system is ready for use.

Important
Detailed instructions for performing the following procedures are provided in the Red Hat Enterprise Virtualization Manager Administration Guide.

Procedure 7.1. Typical RHEV configuration workflow: 1. Upload ISO files onto the defined Storage domains. This is essential for allowing efficient creation of new virtual machines, as required. 2. Define clusters. A cluster is a group of hosts. Grouping hosts into a cluster allows resources to be shared across the cluster. Grouping also allows segmentation between groups (for example, resources are not shared between HR and finance). Define logical networks for the data center, cluster and the hosts. For example, the default logical networks will need to be edited if a new network card is added to the data center. Define virtual machines by installing an operating system and applications using the Run Once function. Define templates from customized virtual servers. This enables creation of large numbers of identical virtual machines quickly and efficiently.

3. 4. 5.

53

54

Appendix A. Planning the System Architecture


Successful planning is essential for a highly available, scalable Red Hat Enterprise Virtualization Manager environment. Although it is assumed that your solution architect has defined the environment before installation, the following information should be considered when designing the system.

CPU
CPU will have an average target utilization of 50%, allowing virtual machines to reach 100% utilization during high loads.

Memory
The Red Hat Enterprise Virtualization Manager page sharing process overcommits up to 150% of physical memory for virtual machines. Therefore, allow for an approximately 30% overcommit.

Networking
When designing the network, it is important to ensure that the volume of traffic produced by storage, remote connections and virtual machines is taken into account. As a general rule, allow approximately 50 MB per virtual machine. It is best practice to separate disk I/O traffic from end-user traffic, as this reduces the load on the Ethernet connection and reduces security vulnerabilities by isolating data from the visual stream. It is suggested that bonds (802.3ad) are utilized to aggregate server traffic types.

Note
It is possible to connect both the storage and Hypervisors via a single high performance switch that is able to provide up to 30 GB per second on the backplane.

High Availability
The system requires at least two Hypervisors to achieve high availability. This redundancy is useful when performing maintenance or repairs.

55

56

Appendix B. Using Active Directory


This appendix is provided as a brief overview to using Active Directory with RHEV, but is not intended as a complete guide. For full configuration procedures, refer to the appropriate Microsoft documentation.

B.1. Installing Active Directory


For Active Directory installation instructions, refer to the Microsoft documentation at: http:// support.microsoft.com/kb/324753.

B.2. Creating the RHEV admin user in Active Directory


The RHEV admin user credentials are provided during the RHEV Manager installation. This account is used when logging into the RHEV admin portal to manage the system.

Important
An Active Directory user account must be created specifically for use as the RHEV admin account. Do not use the Active Directory Administrator account as the RHEV Manager administrator.

The RHEV admin user must have permission to: 1. Add an unlimited number of virtual machines to the domain. 2. Query Active Directory. In order to be able to add more than ten virtual machines to the domain, the user must be a member of either the Account Operators, Domain Admins, or Enterprise Admins group within Active directory. For further information, refer to http://technet.microsoft.com/en-us/library/cc781364(WS.10).aspx A quick way to create the admin user account is to copy the Domain Administrator account in Active Directory Users and Computers by right-clicking on the Administrator account, selecting Copy and enter the new user details, including username. Ensure that the built-in domain administrator account is not used as the RHEV admin user. For further information on managing user accounts in Active Directory, refer to http:// technet.microsoft.com/en-us/library/cc755607(WS.10).aspx

57

58

Appendix C. Additional Reading


The following resources are available at http://www.redhat.com/docs/. Red Hat Enterprise Virtualization Hypervisor Deployment Guide A guide to the installation of Red Hat Enterprise Virtualization Hypervisors. Red Hat Enterprise Linux Virtualization Guide A guide to the installation, configuration, administration and troubleshooting of virtualization technologies in Red Hat Enterprise Linux. Red Hat Enterprise Linux 5 Installation Guide A guide to the installation of Red Hat Enterprise Linux 5. Red Hat Enterprise Linux 5 Deployment Guide A guide to the deployment, configuration and administration of Red Hat Enterprise Linux 5. Red Hat Enterprise Linux 5.4 Online Storage Reconfiguration Guide A guide to reconfiguring iSCSI and Fibre Channel storage devices.

59

60

Appendix D. Revision History


Revision 35 Fri Mar 26 2010 Clarify need for swap partition David Jorm djorm@redhat.com Revision 28 BZ527354 Wed Nov 18 2009 Susan Burgess sburgess@redhat.com

Revision 27 Wed Oct 21 2009 RHEV-S 2.1 GA for Release.

Susan Burgess sburgess@redhat.com

Revision 26 Mon Oct 19 2009 Susan Burgess sburgess@redhat.com Fixed QE bugs, updated storage and installation sections with changes made to other documents.

Revision 25 Fri Oct 02 2009 Fixed output and installation.

Chris Curran ccurran@redhat.com

Revision 21 Wed Sep 16 2009 Updated content.

Dani Coulson dcoulson@redhat.com

61

62

Вам также может понравиться