red hat enterprise virtualization for servers-2.2-installation guide-en-us

Upload: yogesh-kokcha

Post on 05-Apr-2018

248 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    1/88

    Red Hat Enterprise

    Virtualizationfor Servers 2.2

    Installation Guide

    A guide to installing Red Hat Enterprise Virtualization for Servers

    Susan Burgess

    Chris Curran

    David Jorm

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    2/88

    Installation Guide

    Red Hat Enterprise Virtualization for Servers 2.2 Installation Guide

    A guide to installing Red Hat Enterprise Virtualization for Servers

    Edition 2

    Author Susan Burgess [email protected]

    Author Chris Curran [email protected]

    Author David Jorm [email protected]

    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

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

    http://creativecommons.org/licenses/by-sa/3.0/mailto:[email protected]:[email protected]:[email protected]
  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    3/88

    iii

    Preface v

    1. About this Guide ............................................................................................................. v

    1.1. The Red Hat Enterprise Virtualization Documentation Suite ............... ........ ........ ...... v

    1.2. Audience .............................................................................................................. v

    2. Document Conventions ................................................................................................... v

    2.1. Typographic Conventions ..................................................................................... vi2.2. Pull-quote Conventions ........................................................................................ vii

    2.3. Notes and Warnings ........................................................................................... viii

    3. We Need Feedback! ..................................................................................................... viii

    1. Overview 1

    1.1. System architecture ...................................................................................................... 1

    1.2. How the management system works ............................................................................. 2

    1.2.1. About the servers .............................................................................................. 2

    1.2.2. About the virtual machines ................................................................................. 2

    1.3. About the installation process ....................................................................................... 2

    2. System Requirements 5

    2.1. Prerequisites ................................................................................................................ 5

    2.2. Hardware requirements ................................................................................................ 5

    2.3. Software requirements .................................................................................................. 6

    3. Installing the Red Hat Enterprise Virtualization Manager 7

    3.1. Installing the Operating System ..................................................................................... 7

    3.1.1. Configure DNS server ........................................................................................ 7

    3.1.2. Connect to domain controller ............................................................................. 7

    3.1.3. Installing Web Server (IIS) ................................................................................. 8

    3.1.4. Add components .............................................................................................. 10

    3.1.5. Firewall configuration ....................................................................................... 12

    3.2. Installing Red Hat Enterprise Virtualization 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 ......................................................................................... 16

    3.2.5. Choose installation location .............................................................................. 16

    3.2.6. Select website ................................................................................................. 17

    3.2.7. Select Red Hat Enterprise Virtualization 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. Login to the administrator portal ...................................................................... 24

    4. Installing the Red Hat Enterprise Virtualization Hypervisor 27

    4.1. Preparing an installation disc ...................................................................................... 27

    4.2. Confirm hardware virtualization support ....................................................................... 28

    4.3. Boot the Hypervisor .................................................................................................... 29

    4.4. The Red Hat Enterprise Virtualization Hypervisor Configuration Menu ........ ........ ........ .... 29

    4.5. Remove existing Red Hat Enterprise Virtualization Hypervisor installations ........ ........ ..... 30

    4.6. Partitioning the disk .................................................................................................... 31

    4.7. Set the administrator password ................................................................................... 33

    4.8. Set the hostname ....................................................................................................... 34

    4.9. Setup Networking ....................................................................................................... 35

    4.10. Register to RHN ....................................................................................................... 37

    4.11. Connect to the Red Hat Enterprise Virtualization Manager ........................................... 384.12. View logs ................................................................................................................. 39

    4.13. Installation ................................................................................................................ 40

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    4/88

    Installation Guide

    iv

    4.14. Using the hypervisor ................................................................................................. 40

    5. Using Red Hat Enterprise Linux Hosts 43

    5.1. Adding Red Hat Enterprise Linux Hosts ....................................................................... 43

    5.1.1. Preparing Red Hat Enterprise Linux Hosts ........ ......... ........ ........ ........ ........ ....... 43

    5.1.2. To Add a Host ................................................................................................. 47

    5.2. Activating a Host ........................................................................................................ 51

    6. Setting Up Storage 53

    6.1. Adding NFS Storage .................................................................................................. 53

    6.2. Adding iSCSI Storage ................................................................................................. 55

    6.3. Adding FCP Storage .................................................................................................. 61

    7. Configuring the System 65

    A. Planning the System Architecture 67

    B. Using Active Directory 69

    B.1. Installing Active Directory ......... ........ ........ ........ ........ ........ ........ ........ ........ ......... ........ . 69

    B.2. Creating the Red Hat Enterprise Virtualization admin user in Active Directory .... .... .... ..... 69

    C. Remote Microsoft SQL Server configuration 71

    C.1. Enable Microsoft Distributed Transaction Coordinator (MSDTC) .............................. 71

    C.2. Modify Surface Area configuration ........ ........ ........ ........ ........ ......... ........ ........ ........ ..... 72

    C.3. Modify firewall configuration ........................................................................................ 73

    D. Additional Reading 77

    E. Revision History 79

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    5/88

    v

    PrefaceThe 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 GuideThis guide describes how to install the Red Hat Enterprise Virtualization platform.

    1.1. The Red Hat Enterprise Virtualization Documentation SuiteThe Red Hat Enterprise Virtualization documentation suite provides information on installation,

    development of applications, configuration and usage of the Red Hat Enterprise Virtualization platform

    and its related products.

    The Red Hat Enterprise Virtualization documentation suite

    Red Hat Enterprise Virtualization Hypervisor Release Notes contain release specific information for

    Red Hat Enterprise Virtualization Hypervisors.

    Red Hat Enterprise Virtualization Manager Release Notes contain release specific information for

    Red Hat Enterprise Virtualization Managers.

    Red Hat Enterprise Virtualization for Servers Installation Guide (the book you are reading) describes

    the installation prerequisites and procedures. Read this if you need to install Red Hat Enterprise

    Virtualization for Servers. The installation of hosts, manager and storage are covered in this guide.

    You will need to refer to the Red Hat Enterprise Virtualization for Servers Administration Guide to

    configure the system before you can start using the platform.

    Red Hat Enterprise Virtualization for Servers Administration Guide describes how to setup,

    configure and manage Red Hat Enterprise Virtualization for Servers. It assumes that you have

    successfully installed the Red Hat Enterprise Virtualization manager and hosts.

    Red Hat Enterprise Virtualization Hypervisor Deployment Guide describes how to deploy and install

    the hypervisor. Read this guide if you need advanced information about installing and deploying

    Hypervisors. The basic installation of Hypervisor hosts is also described in the Red Hat Enterprise

    Virtualization for Servers Installation Guide

    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 if you do not wish to use thegraphical user interface, and prefer using the command line.

    1.2. AudienceThis 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 ConventionsThis manual uses several conventions to highlight certain words and phrases and draw attention to

    specific pieces of information.

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    6/88

    Preface

    vi

    In PDF and paper editions, this manual uses typefaces drawn from the Liberation Fonts1

    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.

    2.1. Typographic ConventionsFour 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 keycombinations (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 PreferencesMouse 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. Double-

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

    https://fedorahosted.org/liberation-fonts/https://fedorahosted.org/liberation-fonts/
  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    7/88

    Pull-quote Conventions

    vii

    click 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 andall distinguishable by context.

    Mono-spaced Bold Italic or Proportional Bold Italic

    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 [email protected] at

    a shell prompt. If the remote machine is example.com and your username on that

    machine is john, type ssh [email protected].

    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 -qpackage

    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 DocBookpublishing system.

    2.2. Pull-quote ConventionsTerminal 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 Desktop documentation drafts mss photos stuff svn

    books_tests Desktop1 downloads images notes scripts svgs

    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;

    publicclass ExClient

    {

    publicstaticvoidmain(String args[])

    throws Exception

    {

    InitialContext iniCtx = new InitialContext();Object ref = iniCtx.lookup("EchoBean");

    EchoHome home = (EchoHome) ref;

    Echo echo = home.create();

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    8/88

    Preface

    viii

    System.out.println("Created Echo");

    System.out.println("Echo.echo('Hello') = " + echo.echo("Hello"));

    }

    }

    2.3. Notes and WarningsFinally, we use three visual styles to draw attention to information that might otherwise be overlooked.

    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 ([email protected] ). 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.

    mailto:[email protected]
  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    9/88

    Chapter 1.

    1

    OverviewThis document describes how to install the Red Hat Enterprise Virtualization platform for the first time.

    It contains information on hardware and software prerequisites, installation procedures and initial

    configuration.

    1.1. System architectureThe Red Hat Enterprise Virtualization platform consists of:

    Red Hat Enterprise Virtualization 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 provides a comprehensive range of features including search capabilities,

    resource management, live migrations and provisioning.

    The Red Hat Enterprise Virtualization Manager is able to manage hosts running Red Hat Enterprise

    Virtualization Hypervisor and Red Hat Enterprise Linux 5.5 or newer.

    Red Hat Enterprise Virtualization 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 Red Hat Enterprise Virtualization 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.5 or newer to be used as a host. Red Hat Enterprise Linux

    hosts can be used concurrently with Red Hat Enterprise Virtualization 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 for ServersAdministration Guide.

    Figure 1.1. Red Hat Enterprise Virtualization Components

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    10/88

    Chapter 1. Overview

    2

    1.2. How the management system worksThe 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 serversThe Red Hat Enterprise Virtualization 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.

    Red Hat Enterprise Virtualization 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 runs on Windows 2008 server in clustered

    mode, with active-standby configuration.

    Red Hat Enterprise Virtualization Hypervisor or Red Hat Enterprise Linux Host runs the virtualmachines 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 machinesRed Hat Enterprise Virtualization 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 and 64 bit)

    Red Hat Enterprise Linux 4 (32 bit and 64 bit)

    Red Hat Enterprise Linux 5 (32 bit and 64 bit)

    Red Hat Enterprise Linux 6 (32 bit and 64 bit)

    Windows XP Service Pack 3 and newer (32 bit only)

    Windows Server 2003 Service Pack 2 and newer (32 bit and 64 bit)

    Windows Server 2008 (32 bit and 64 bit)

    Windows Server 2008 R2 (64 bit only)

    Windows 7 (32 bit and 64 bit)

    1.3. About the installation processRed Hat Enterprise Virtualization 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 according to Chapter 3, Installing the Red

    Hat Enterprise Virtualization Manager. This requires the installation and configuration of WindowsServer 2008 R2, followed by the installation of the Red Hat Enterprise Virtualization Manager

    application.

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    11/88

    About the installation process

    3

    3. Install the Red Hat Enterprise Virtualization Hypervisors and Red Hat Enterprise Linux hosts

    according to Chapter 4, Installing the Red Hat Enterprise Virtualization Hypervisorand Chapter 5,

    Using Red Hat Enterprise Linux Hosts.

    4. Configure and attach storage, according to Chapter 6, Setting Up Storage.

    5. Configure the Red Hat Enterprise Virtualization Manager for use, according to Chapter 7,

    Configuring the System.

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    12/88

    4

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    13/88

    Chapter 2.

    5

    System RequirementsThis 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 EnterpriseVirtualization 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 inAppendix 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, or Windows 7, is required

    to access the web-based administration portal. The client must be running Internet Explorer 7 or 8.

    To connect to virtual machines with SPICE via the Red Hat Enterprise Virtualization administration

    portal, a SPICE browser plugin is used. The SPICE plugin for Internet Explorer is only compatible

    with 32-bit editions of Internet Explorer. When using a 64-bit Windows operating system, you must

    install a 32-bit edition of Internet Explorer to use the SPICE plugin. You must also make a global

    registry setting change to allow the WPF application to run as a 32-bit process. The process for

    making this change is described in Microsoft kbase article 9743961

    2.2. Hardware requirements One or more physical servers to act as the Red Hat Enterprise Virtualization 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

    storage for swap. Refer to Red Hat Knowledgebase2

    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 for Servers

    Administration Guide.

    One server to act as the Red Hat Enterprise Virtualization Manager, with:

    Minimum 1 GB of memory.

    http://kbase.redhat.com/faq/docs/DOC-15252http://support.microsoft.com/kb/974396
  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    14/88

    Chapter 2. System Requirements

    6

    Minimum 20 GB of local disk space.

    At least one network controller with a minimum bandwidth of 1 Gbps.

    Server to provide storage for virtual machine and ISO images.

    Note ISO storage requires NFS

    The ISO storage domain must be provided by Network File System (NFS).

    The data and export storage domains may be provided by any one of Network File System

    (NFS), Internet Small Computer System Interface (iSCSI) or Fibre Channel Protocol (FCP).

    2.3. Software requirements A valid Red Hat Network subscription to the Red Hat Enterprise Virtualization Manager channel and

    its child channel, Red Hat Enterprise Virtualization Manager for Servers 2. For more information on

    how to use Red Hat Network, refer to the Red Hat Network Reference Guide.

    The RHEV-Hypervisor 5.5-2.2 ISO (downloaded from the Red Hat Network and available on the

    server running Red Hat Enterprise Virtualization Manager 2.2); and/or

    A Red Hat Enterprise Linux 5.5 or newer AMD64/Intel 64 system.

    Red Hat Enterprise Virtualization Manager 2.2 executable (downloaded from the Red Hat Network

    and available on the server running Red Hat Enterprise Virtualization Manager 2.2).

    Microsoft Windows Server 2008 (R2) with:

    Valid Microsoft Windows Server 2008 (R2) product key.

    The following Windows components:

    Microsoft .NET Framework 3.5.1

    Installed by adding the Application Server role in Server Manager

    Internet Information Services (IIS)

    Installed by adding the Web Server (IIS) role in Server Manager

    Recommended utilities for transferring files between Red Hat Enterprise Virtualization Manager and

    Red Hat Enterprise Virtualization Hypervisor:

    WinSCP: open source Secure Copy (SCP) client for Windows.

    PuTTY: open source Secure Shell (SSH) client for Windows and Unix platforms.

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    15/88

    Chapter 3.

    7

    Installing the Red Hat Enterprise

    Virtualization ManagerThe installation of Red Hat Enterprise Virtualization Manager is performed in two phases. The first

    phase is the installation and configuration of Windows Server 2008 (R2), and the second phase is the

    installation of the Red Hat Enterprise Virtualization Manager.

    3.1. Installing the Operating System

    Install Windows Server 2008 (R2) 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 Red Hat Enterprise Virtualization

    Manager on Windows Server 2008.

    3.1.1. Configure DNS serverThe Red Hat Enterprise Virtualization Manager server must be configured with a fully qualified name

    that is resolvable throughout the system by the host and clients.

    1. Configure TCP/IP for static addressing.

    2. Install and configure DNS server role.

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

    3.1.2. Connect to domain controllerActive Directory acts as the domain controller for the Windows Server 2008 installation. Therefore,

    Active Directory must be installed and configured before joining Red Hat Enterprise VirtualizationManager 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 2008:

    1. Open the Server Manager, select the root node Server Manager and click Change System

    Properties.

    2. Select the Computer Name tab.

    3. Ensure that the Computer description field contains the fully qualified computer name. If not,

    enter it now.

    4. Click Change....

    5. Enter the domain information and click Ok.

    http://technet.microsoft.com/en-us/library/cc816723(WS.10).aspx
  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    16/88

    Chapter 3. Installing the Red Hat Enterprise Virtualization Manager

    8

    6. When prompted for the credentials of a user that can join machines to the domain, enter the Red

    Hat Enterprise Virtualization administrator user credentials created as per Section B.2, Creating

    the Red Hat Enterprise Virtualization admin user in Active Directory. Then click Ok.

    7. 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.

    3.1.3. Installing Web Server (IIS)The Red Hat Enterprise Virtualization Manager has a dependency on Internet Information Services

    (IIS).

    Procedure 3.2. Installing Web Server (IIS)

    Verify whether or not Web Server (IIS) is installed by going to Start > Control Panel > Turn

    Windows features on or off and checking it is listed under the Roles Summary, as in

    Figure 3.1, Roles Summary.

    Figure 3.1. Roles Summary

    If Web Server (IIS) is listed then it is already installed and no further action is required.

    If Web Server (IIS) is not listed then it still needs to be installed. From Server Manager, click

    on Add Roles.

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    17/88

    Installing Web Server (IIS)

    9

    a. From the Add Roles Wizard, select the Web Server (IIS) checkbox and click Next.

    Figure 3.2. Windows Add Role Wizard

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    18/88

    Chapter 3. Installing the Red Hat Enterprise Virtualization Manager

    10

    b. Enable any additional Web Server (IIS)Role Services required and click Next.

    Figure 3.3. Web Server (IIS) Role Services

    c. Click Install to install the selected components.

    3.1.4. Add componentsIt is necessary to install additional Windows components before installing the Red Hat Enterprise

    Virtualization Manager application.

    1. a. Install .NET Framework 3.5.1

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    19/88

    Add components

    11

    b. Verify that .NET Framework 3.5.1 is installed by going to Start > Control Panel > Turn

    Windows features on or off and checking that it is listed, as in Figure 3.4, Features

    Summary.

    Figure 3.4. Features Summary

    2. From Server Manager, click on Add Features.

    3. From the Add Features Wizard, select the .NET Framework 3.5.1 Features checkbox and click

    Next.

    Figure 3.5. Windows component wizard

    4. Click Install to install the selected components.

    5. Install Windows PowerShell 2.0

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    20/88

    Chapter 3. Installing the Red Hat Enterprise Virtualization Manager

    12

    Verify PowerShell is installed successfully by going to Start > All Programs > Accessories

    > Windows PowerShell.

    6. Use Microsoft Windows Update to install all available updates.

    3.1.5. Firewall configurationThe manager requires that any firewall which runs on the system allows communications on a number

    of ports. The required ports are:

    22,

    80,

    443,

    8006,

    8007,

    8008,

    8009,

    25285, and

    54321.

    On systems which use the Windows firewall Procedure 3.3, Windows firewall configurationmust

    be followed to open the required ports. Configuration of systems which use other third party firewall

    software must be done in consultation with the documentation for that particular firewall.

    Procedure 3.3. Windows firewall configuration

    1. Click Start > Run.

    2. Type cmd and press Enter.

    3. Type the below command and press Enter. This will allow TCP communication on the listed

    ports.

    for /D %p in (80,443,25285,54321,22,8006,8007,8008,8009) do (netsh firewall add

    portopening protocol = TCP port = %p name = RHEVM%p)

    Important Non-default port allocations

    The HTTP, HTTPS, and NetConsole do not have to be set to the default values of 80, 443,

    and 25285 respectively. Where non-default values have been chosen during installation the

    selected ports should be granted a firewall exception rather than the relevant default port.

    4. Type the below command and press Enter. This will allow the manager to respond to ICMP ping

    requests.

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    21/88

    Installing Red Hat Enterprise Virtualization Manager

    13

    netsh firewall set icmpsetting 8 enable

    3.2. Installing Red Hat Enterprise Virtualization ManagerThis section describes the installation of the Red Hat Enterprise Virtualization 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. Double-click the Red Hat Enterprise Virtualization Manager installation file to execute the

    installation wizard. You may need to wait while the wizard prepares for installation.

    2. When presented with the welcome screen, click Next.

    Figure 3.6. Welcome screen

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    22/88

    Chapter 3. Installing the Red Hat Enterprise Virtualization Manager

    14

    3.2.2. Accept license agreement

    You are asked to read the End User License Agreement.

    Figure 3.7. End User License Agreement

    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 featuresA typical installation includes the following features:

    Red Hat Enterprise Virtualization Manager Web Admin: web-based administrator portal.

    Red Hat Enterprise Virtualization Manager Admin Portal: used to manage the Red Hat

    Enterprise Virtualization system and perform associated tasks.

    Red Hat Enterprise Virtualization Manager Database: holds Red Hat Enterprise Virtualization

    system information regarding created objects, configuration and logging history.

    Red Hat Enterprise Virtualization Manager Service: the core Red Hat Enterprise VirtualizationManager application.

    Red Hat Enterprise Virtualization Manager User Portal: web-based desktop user portal.

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    23/88

    Select features

    15

    Red Hat Enterprise Virtualization Manager Scripting Library: PowerShell scripting library and

    documentation.

    Red Hat Enterprise Virtualization Manager Net Console: remote console service used for logging

    purposes.

    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 Recommended feature selection

    It is recommended that all features are installed by default.

    Note External database server

    Although installation of a local Red Hat Enterprise Virtualization Manager database is

    recommended, the Database checkbox can be unmarked to use an existing database.

    Information on the configuration of an external database to support the Red Hat Enterprise

    Virtualization Manager is available inAppendix C, Remote Microsoft SQL Server

    configuration.

    2. Once the selection is complete, click Next to continue.

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    24/88

    Chapter 3. Installing the Red Hat Enterprise Virtualization Manager

    16

    3.2.4. Setup the databaseSpecify 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.

    Procedure 3.4. Create a new database instance:

    1. Select the Install a SQL Server 2005 Express Locally option.

    Figure 3.9. Red Hat Enterprise Virtualization Manager 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 locationSelect the location for the Red Hat Enterprise Virtualization Manager installation.

    Note

    It is recommended that the default installation path is used.

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    25/88

    Select website

    17

    Procedure 3.5. 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 websiteThe installation wizard will create a website for users with automatic URL redirection.

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    26/88

    Chapter 3. Installing the Red Hat Enterprise Virtualization Manager

    18

    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. Click Create a new site.

    b. Enter the desired site name in the New site name field.

    c. Enter the site port in the Port field.

    d. Leave the Force SSL checkbox selected.

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

    3.2.7. Select Red Hat Enterprise Virtualization Manager domain and

    userProvide the Active Directory domain and user details to be used by Red Hat Enterprise Virtualization

    Manager.

    The User details section requires the Active Directory user details that were setup according to

    Section B.2, Creating the Red Hat Enterprise Virtualization admin user in Active Directory. 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.

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    27/88

    Enter certification details

    19

    Figure 3.12. Enter domain and user details

    The Red Hat Enterprise Virtualization 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 detailsAt the Certification details screen:

    1. Enter the name of your organization in the Organization name field.

    2. Enter the fully qualified name for the Red Hat Enterprise Virtualization Manager server in the Fully

    qualified computer name field.

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    28/88

    Chapter 3. Installing the Red Hat Enterprise Virtualization Manager

    20

    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 portA default net console port will be supplied by the installation wizard.

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    29/88

    Confirm settings

    21

    Accept the default value by clicking Next.

    Figure 3.14. Net Console Port

    3.2.10. Confirm settingsThe 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.

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    30/88

    Chapter 3. Installing the Red Hat Enterprise Virtualization Manager

    22

    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.

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    31/88

    Confirm settings

    23

    Figure 3.16. Close applications

    4. The Red Hat Enterprise Virtualization Manager installation will continue and may take some

    time to complete. When finished, the installation wizard will confirm that it has completed the

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    32/88

    Chapter 3. Installing the Red Hat Enterprise Virtualization Manager

    24

    installation. The fingerprint for the Certificate Authority certificate created by the installation is also

    displayed. Save this string for future use.

    Figure 3.17. Installshield Wizard Complete

    5.Result:

    Installation has successfully been completed. Click Finish to exit.

    3.2.11. Login to the administrator portalAccessing the administrator portal requires a client with Windows XP or Windows 7 and .NET

    Framework 3.5 Service Pack 1 installed.

    Disable Internet Explorer Enhanced Security Configuration

    To access the administrator portal, you have to disable Internet Explorer's Enhanced Security

    Configuration (IE ESC) and add the administrative server host to the list of trusted sites. For

    instructions, refer to the Red Hat Enterprise Virtualization Administration Guide.

    1. Open the administrator portal login screen by clicking on Start > All Programs > Red

    Hat > Red Hat Enterprise Virtualization Manager > RHEVManager. Alternatively, if the

    RHEVManager shortcut is not present, open a web browser and navigate to http://

    localhost/RHEVmanager.

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    33/88

    Login to the administrator portal

    25

    2. If you are connecting to the administrator portal for the first time, you will be prompted to install

    the certificate.

    Figure 3.18. Certificate Installation

    Follow the prompts to install a certificate. Once complete, reload the administrator portal. The

    portal login screen will be displayed.

    Figure 3.19. Administrator portal login

    3. Enter the Red Hat Enterprise Virtualization Manager administrator credentials, as configured in

    Section 3.2.7, Select Red Hat Enterprise Virtualization Manager domain and user. Please wait

    while the application information is downloaded.

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    34/88

    Chapter 3. Installing the Red Hat Enterprise Virtualization Manager

    26

    4. Once the installation process is complete, you will be presented with the Red Hat Enterprise

    Virtualization Manager interface.

    Figure 3.20. Red Hat Enterprise Virtualization Manager interface

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    35/88

    Chapter 4.

    27

    Installing the Red Hat Enterprise

    Virtualization HypervisorThis chapter covers installing and integrating Red Hat Enterprise Virtualization Hypervisors with a Red

    Hat Enterprise Virtualization Manager.

    The Red Hat Enterprise Virtualization Hypervisor mustbe 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 theRed Hat Enterprise Virtualization 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/.

    Red Hat Enterprise Virtualization 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

    Red Hat Enterprise Virtualization Hypervisor installations can be automated or conducted withoutinteraction. 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 discRed Hat Enterprise Virtualization 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 or higher system with RHN entitlements for

    the Red Hat Enterprise Virtualization 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

    http://www.redhat.com/docs/
  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    36/88

    Chapter 4. Installing the Red Hat Enterprise Virtualization Hypervisor

    28

    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 Red Hat Enterprise Virtualization Hypervisor ISO image package.

    # yum -y install rhev-hypervisor

    Alternatively, download the Red Hat Enterprise Virtualization Hypervisor CD-ROM image from

    Red Hat Network1.

    3. Insert a blank CD-ROM or DVD into your CD/DVD recorder drive.

    4. 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 Red Hat Enterprise Virtualization 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 supportIf unsure, verify that the virtualization extensions are present and enabled in the BIOS before installing

    the Hypervisor.

    1. Insert the Red Hat Enterprise Virtualization Hypervisor installation CD-ROM into the CD-ROM

    drive of the server.

    2. Power on the system and ensure it boots from the CD.

    3. Once the Hypervisor has completed the boot phase and the boot prompt is displayed, enter the

    command:

    : linux rescue

    https://rhn.redhat.com/network/software/channels/details.pxt?cid=9462
  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    37/88

    Boot the Hypervisor

    29

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

    # 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 RedHat Enterprise Virtualization Hypervisor.

    4.3. Boot the Hypervisor

    1. Insert the Red Hat Enterprise Virtualization Hypervisor installation CD-ROM into the CD-ROM

    drive of the server.

    2. Power on the system and ensure the system boots from CD.

    3. 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 Red Hat Enterprise Virtualization Hypervisor

    Configuration MenuOnce the Red Hat Enterprise Virtualization 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.5-2.2

    Hypervisor Configuration Menu

    1) Configure storage partitions 6) Configure the host for Red Hat Enterprise

    Virtualization

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    38/88

    Chapter 4. Installing the Red Hat Enterprise Virtualization Hypervisor

    30

    2) Configure authentication 7) View logs

    3) Set the hostname 8) Install locally and reboot

    4) Networking setup 9) Support Menu

    5) Register Host to RHN

    Choose an option to configure:

    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 including: DHCP, IPv4, NTP and DNS.

    Refer to Section 4.9, Setup Networking.

    Register Host to RHN: registers the host to the Red Hat Network (RHN). Refer to Section 4.10,

    Register to RHN.

    Configure the host for RHEV: enter IP address of the Red Hat Enterprise Virtualization Manager

    server. Refer to Section 4.11, Connect to the Red Hat Enterprise Virtualization Manager.

    View logs: view log files to debug the installation procedure. Refer to Section 4.12, View logs.

    Install locally and reboot: install the Hypervisor to the storage device and reboot. Refer to

    Section 4.13, Installation.

    Support Menu: contains options for continuing stateless boot and exiting to a shell prompt. Thismenu is not supported except when working with Red Hat support.

    4.5. Remove existing Red Hat Enterprise Virtualization

    Hypervisor installationsIf the Hypervisor was previously installed on the local system, remove the existing installation by

    selecting the Support Menu option from the main menu, then selecting Uninstall an existing

    Hypervisor.

    On systems with existing Hypervisors

    On systems that have a Red Hat Enterprise Virtualization Hypervisor installed and some

    systems with LVM volumes, the firstboot parameter may be required to trigger the interactive

    installation. To use the firstboot parameter, append it to other kernel parameters. On a

    system with an existing Red Hat Enterprise Virtualization Hypervisor use the following kernel

    parameters to activate the interactive installation:

    : linux firstboot

    For further information on removing previous versions of the Red Hat Enterprise Virtualization

    Hypervisor, refer to the Red Hat Enterprise Virtualization Hypervisor Deployment Guide.

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    39/88

    Partitioning the disk

    31

    4.6. Partitioning the diskThe partitions used by the Red Hat Enterprise Virtualization 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

    3) Commit configuration

    4) Return to the Hypervisor Configuration Menu

    Choose an option:

    2. Choose partition sizes

    Select Configure.

    You are prompted to set the size of boot, 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 theend 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). Red Hat Enterprise Virtualization 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 Knowledgebase2

    has an article on determining the size of the swap partition.

    http://kbase.redhat.com/faq/docs/DOC-15252
  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    40/88

    Chapter 4. Installing the Red Hat Enterprise Virtualization Hypervisor

    32

    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

    Pressing Enter during the installation sequence sets a recommended value for the swappartition.

    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).

    When ISO files are uploaded using the ISO Uploader tool, they are temporarily stored on the

    data partition of a Red Hat Enterprise Virtualization 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 must be large enough to hold core files for kvm. Core files depend on the

    RAM size for the guests. The data partition must also be large enough to store kernel dump

    files, also known as kdumps. A kdump file is usually the same size the host's system RAM.

    The data partition also stores the Red Hat Enterprise Virtualization Hypervisor ISO file for

    Red Hat Enterprise Virtualization Hypervisor upgrades.

    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:

    The local disk will be repartitioned as follows:

    ================================================

    Physical Hard Disk: /dev/hda (1024 MB)

    Disk Identifier: storage_serial_be_a8bb_1a222ce09dc6

    Boot partition size: 50 MB

    Swap partition size: 5 MB

    Installation partition size: 256 * 2 MB

    Configuration partition size: 5 MB

    Logging partition size: 5 MB

    Data partition size: 447 MB

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    41/88

    Set the administrator password

    33

    4. Select Commit configuration to accept the partitions. The following warning displays:

    5.!!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 selected 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!!

    Do you wish to proceed([Y]es or [N]o)?

    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 passwordSetting a strong and easy to remember administrator password is an essential part of securing your

    infrastructure.

    Setting an administrator password is not required if you do not need SSH remote access.

    Procedure 4.4. Set the administrator password

    1. Select Configure authentication from the main configuration menu.

    Example 4.3. The Configure authentication menu

    SSH remote access is currently disabled

    1) Set administrator password

    2) Toggle SSH password authentication

    3) Return to the Hypervisor Configuration Menu

    Choose an option to configure:

    2. Select the Set administrator password.

    3. 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.

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    42/88

    Chapter 4. Installing the Red Hat Enterprise Virtualization Hypervisor

    34

    Configure SSH password authentication

    SSH password authentication is required for accessing Red Hat Enterprise Virtualization Hypervisors

    with the SSH protocol. By default, SSH password authentication is disabled.

    To enable SSH password authentication:

    1. Select Toggle SSH password authentication from the Administrator password menu.

    2.Enable SSH password authentication ([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 hostnameThe Red Hat Enterprise Virtualization Manager requires a fully resolvable hostname for each Red Hat

    Enterprise Virtualization 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. Select the Set the hostname option from the main menu.

    2. Enter the hostname in the following format: anyname.domain.example.com . Where anyname

    is the individual name for the host on the specified domain.

    What is this Hypervisor's hostname?

    Enter the hostname for the Hypervisor and press Enter.

    3. If the hostname setting procedure is successful, this message is displayed:

    The hostname is set.

    You are returned to the Configuration menu.

    Resetting hostnames

    To reset a hostname:

    1. Open the Set the hostname menu.

    2. The specify a hostname prompt appears:

    What is this Hypervisor's hostname?

    Press the Enter key without typing anything else to reset the hostname.

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    43/88

    Setup Networking

    35

    The hostname is now reset to use DHCP.

    4.9. Setup NetworkingConfigure your system's network settings.

    Multiple networks

    For installation purposes only a single network can be configured for access to the Red Hat

    Enterprise Virtualization Manger. Once the Red Hat Enterprise Virtualization Hypervisor

    is installed, additional network interfaces can be configured with the Red Hat Enterprise

    Virtualization Manager user interface.

    1. Select the Networking setup option.

    2. The network devices attached to your system are listed.

    3.Choose an interface or a configuration option:

    Select the network interface on the same network as the Red Hat Enterprise Virtualization

    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:

    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.

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    44/88

    Chapter 4. Installing the Red Hat Enterprise Virtualization Hypervisor

    36

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

    Enter the VLAN ID number when prompted.

    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 required to statically map all IP

    addresses for each Red Hat Enterprise Virtualization 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 using static network configuration or of your DHCP server is not assigning DNS

    servers.

    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.

    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. Inaccurate timekeeping prevents

    Hypervisors from migrating virtual machines.

    a.Enter an NTP server:

    Enter the IP address or hostname of an NTP server or press Enter to abort.

    b. 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.

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    45/88

    Register to RHN

    37

    9. Select Save And Return To 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. Register to RHNThis procedure registers the host to RHN.

    Select Register Host to RHN from the main menu.

    To register to the public RHN system, select 1) Register to public RHN

    a.Enter RHN account username:

    Enter your RHN account username.

    b.Enter password for RHN account:

    Enter your RHN account password.

    c.Enter profile name for this system (optional):

    Enter a profile name for this system. This parameter is optional. If a blank profile name is

    provided, the system hostname will be used by default.

    d.Enter HTTP proxy in host:port format, e.g. proxy.example.com:3128 (leave blank

    if not required):

    Enter your HTTP proxy address. This parameter is optional. If a blank proxy address is

    provided, no proxy server will be used.

    To register to an RHN Satellite, select 2) Register to RHN Satellite

    a.Enter URL of RHN Satellite (ie. https://satellite.example.com)

    Enter your the URL of your RHN Satellite.

    b. Enter location of satellite cert (https://satellite.example.com/pub/RHN-ORG-TRUSTED-SSL-CERT):

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    46/88

    Chapter 4. Installing the Red Hat Enterprise Virtualization Hypervisor

    38

    Enter the URL of your satellite certificate, or press enter to select the default URL shown.

    c.Enter RHN account username:

    Enter your RHN account username.

    d.Enter password for RHN account:

    Enter your RHN account password.

    e.Enter profile name for this system (optional):

    Enter a profile name for this system. This parameter is optional. If a blank profile name is

    provided, the system hostname will be used by default.

    f.Enter HTTP proxy in host:port format, e.g. proxy.example.com:3128 (leave blank

    if not required):

    Enter your HTTP proxy address. This parameter is optional. If a blank proxy address is

    provided, no proxy server will be used.

    4.11. Connect to the Red Hat Enterprise Virtualization

    ManagerThis procedure connects the Red Hat Enterprise Virtualization Hypervisor to a Red Hat Enterprise

    Virtualization Manager.

    When specifying the address of the Red Hat Enterprise Virtualization Manager, use the following

    format for IP addresses or hostnames.

    Before you continue...

    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.

    Ensure that the IP address or host name specified is fully resolvable.

    Table 4.1. Red Hat Enterprise Virtualization Manager addressing examples

    Type Format Example

    IP address IP[:port] 127.0.0.1:443

    Host Name host.name.domain[:port] www.redhat.com:443

    1. Select Configure the host for RHEV from the main menu.

    2. Connecting Red Hat Enterprise Virtualization Manager

    Once the Configure the host for RHEV menu item is selected the following output displays:

    Enter the RHEV Manager's hostname or IP address.

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    47/88

    View logs

    39

    Optionally: append a port after the hostname or IP address

    For example, 10.0.0.1:443 or rhev.example.com:443

    a. Enter the Red Hat Enterprise Virtualization Manager's hostname or IP address in the

    specified format.

    If the Red Hat Enterprise Virtualization Manager port is skipped the setup will use the default

    port, port 443. However, if a port has previously been assigned, the Red Hat Enterprise

    Virtualization Hypervisor uses that port as the default instead. For example, if port 12345

    was specified during a previous installation then the default port for future installations is port

    12345.

    Using other ports

    Red Hat Enterprise Virtualization Managers use 443 by default. If you configured

    another port when installing the Red Hat Enterprise Virtualization Manager write it down.

    Once another port is specified for the Red Hat Enterprise Virtualization Hypervisor it will

    be recorded as the new "default".

    b. If the Red Hat Enterprise Virtualization Manager is successfully located, the following output

    is displayed:

    The RHEV Manager's address is set

    The RHEV Manager's port is set.

    3. NetConsole access

    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 Red Hat Enterprise Virtualization Manager's address, without

    a port.

    a. Enter the NetConsole server and port. In most cases, this server will be the Red Hat

    Enterprise Virtualization Manager. The NetConsole port is the same as the NetConsole port

    number specified during the installation of the Red Hat Enterprise Virtualization Manager in

    Section 3.2.9, Enter net console port.

    b. 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.

    4.12. View logsVarious log files can viewed to assist in debugging the installation procedure. Once a file is selected by

    its menu option number, it is displayed in full on the screen. You can scroll through the file contents bypressing Shift+Page Up to scroll up and Shift+Page Down to scroll down. The log files available

    are:

    /var/log/ovirt.log

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    48/88

    Chapter 4. Installing the Red Hat Enterprise Virtualization Hypervisor

    40

    Contains detailed information about the hypervisor installation and configuration procedure.

    /var/log/messages

    Contains general messages from the system and core services.

    /var/log/secure

    Contains authentication and security messages, including failed login attempts.

    4.13. InstallationOnce all the previous steps are complete, the Red Hat Enterprise Virtualization Hypervisor can be

    installed to the local storage device.

    Storage, networking and the Red Hat Enterprise Virtualization Manager mustbe configured before

    continuing.

    1. Select Install locally and reboot from the Hypervisor Configuration Menu.

    2.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

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

    Press Enter to continue.

    3.Do you wish to proceed ([Y]es or [N]o)?

    Press Y to continue.

    The final installation sequence begins. Once the installation is complete the Red Hat Enterprise

    Virtualization Hypervisor will reboot.

    After rebooting, the Red Hat Enterprise Virtualization 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 may need to remove the boot media and change the boot device order to prevent the

    installation sequence restarting after the system reboots.

    4.14. Using the hypervisorOnce the Hypervisor has finished rebooting, it is automatically registered with the Red Hat Enterprise

    Virtualization platform. The Red Hat Enterprise Virtualization Manager interface displays the

    Hypervisor under the Hosts tab. To prepare the Hypervisor for use, it must be approved using Red Hat

    Enterprise Virtualization Manager.

    Procedure 4.5. Approve the Hypervisor

    1. Login to the Red Hat Enterprise Virtualization Manager admin portal (refer to Section 3.2.11,

    Login to the administrator portal).

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    49/88

    Using the hypervisor

    41

    2. From the Hosts tab, click on the host to be approved. The host should currently be listed with the

    status of Pending Approval.

    3. Click the Approve button. The Edit and Approve dialog displays. You can use the dialog to make

    changes to the details

    4. Click Save. The status in the Hosts tab changes to Installing, after a brief delay the host status

    changes to Up.

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    50/88

    42

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    51/88

    Chapter 5.

    43

    Using Red Hat Enterprise Linux HostsVirtual 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 Red Hat Enterprise

    Virtualization Hypervisors.

    Important

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

    Enterprise Virtualization.

    5.1. Adding Red Hat Enterprise Linux HostsRed Hat Enterprise Virtualization also supports hosts running Red Hat Enterprise Linux 5.5 AMD64/

    Intel 64 version. This section describes the preparatory steps for installing the Red Hat EnterpriseLinux 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.

    Note

    Red Hat Enterprise Linux 5.4 hosts can only be used with a Red Hat Enterprise Virtualization

    Manager which was upgraded from version 2.1 to 2.2. They can only be attached to data centers

    running in version 2.1 compatibility mode. New installations of Red Hat Enterprise Virtualization

    Manager 2.2 or data centers running in version 2.2 compatibility mode can only support Red

    Hat Enterprise Linux 5.5 hosts. Red Hat Enterprise Virtualization Manager 2.2 in version 2.1

    compatibility mode can support Red Hat Enterprise Linux 5.5 hosts.

    The following table shows which versions of Red Hat Enterprise Linux are supported as hosts for each

    version of Red Hat Enterprise Virtualization.

    Red Hat Enterprise

    Linux Version

    Red Hat Enterprise

    Virtualization 2.1

    Red Hat Enterprise

    Virtualization 2.2

    Red Hat Enterprise

    Virtualization 2.2in 2.1 compatibility

    mode

    5.4 Supported Unsupported Supported

    5.5 Unsupported Supported Supported

    5.1.1. Preparing Red Hat Enterprise Linux HostsTo 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.5 is correctly installed and configured on the physical host.

    Refer to the Red Hat Enterprise Linux Installation Guide for more information.

    Only the Base package group is required. All other packages can be removed or not selected.

  • 7/31/2019 Red Hat Enterprise Virtualization for Servers-2.2-Installation Guide-En-US

    52/88

    Chapter 5. Using Red Hat Enterprise Linux Hosts

    44

    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)

    Note

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

    Service.

    Install the fence-agents, kvm-qemu-imgbridge-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

    Warning

    If you are using proprietary directory services or standard directory services with no access

    to authentication files for user management, the vdsm package will fail to create the required

    system user . The authentication files required by the useradd command must be accessible

    to the installer. Red Hat Directory Server (RHDS) recommends a security policy with a mixture

    of local files and LDAP. Following this recommendation will resolve this issue.

    Uninstall incompatible packages.

    The Red Hat Enterprise Virtualization managem