Book Image

Getting Started with Red Hat Enterprise Virtualization

By : Pradeep Subramaniaan
Book Image

Getting Started with Red Hat Enterprise Virtualization

By: Pradeep Subramaniaan

Overview of this book

Table of Contents (17 chapters)
Getting Started with Red Hat Enterprise Virtualization
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Preface

Red Hat Enterprise Virtualization (RHEV), which is a complete enterprise virtualization management solution for servers and desktops, provides fully integrated management of your virtual infrastructures. RHEV is based on and built using two open source projects: Kernel Virtual Machine (KVM), which is open source software that comes with all standard Linux distributions, and oVirt. Based on the popular oVirt open virtualization management project, Red Hat Enterprise Virtualization positions itself as a strategic virtualization alternative to proprietary virtualization platforms with performance advantages, competitive pricing, and a trusted and stable environment.

Step-by-step, you'll learn how to build and manage Red Hat Enterprise Virtualization from scratch with various advanced features and troubleshooting steps. You'll also dive deep into the RHEV internal architecture and components.

What this book covers

Chapter 1, An Overview of Red Hat Enterprise Virtualization, gives you a basic introduction to RHEV, its internal architecture and components, and the basic hardware and software prerequisites.

Chapter 2, Installing RHEV Manager and Hypervisor Hosts, shows you how to set up and configure the RHEV Manager and access the web-based admin portal, install and configure RHEV's hypervisor hosts, and install and connect to the report portal in order to report scenarios of your virtual infrastructure's resource usage.

Chapter 3, Setting Up the RHEV Virtual Infrastructure, shows you how to create a virtual data center and cluster, add the hypervisor host to cluster, configure storage, and perform networking.

Chapter 4, Creating and Managing Virtual Machines, shows you how to create virtual machines, templates, derive virtual machines from the template, take live snapshots of virtual machines, and back up and restore of virtual machines using export and import disks.

Chapter 5, Virtual Machine and Host High Availability, shows you how to set up the virtual machine host availability, various cluster policies for cluster hosts, and perform live migration of virtual machines.

Chapter 6, Advanced Storage and Networking Features, briefs you about various storage disks options, such as sharing disks across virtual machines, direct LUN mapping from the storage, moving virtual machines across different storage domains, shaping the network traffic's VNIC profile for guest operating systems, and hot plugging of network adapter and memory into virtual machines.

Chapter 7, Quota and User Management, talks about applying quota to your virtualization infrastructure with user-role-based access control and integration with common directory services.

Chapter 8, Managing a Virtualization Environment from the Command Line, shows you how to set up the command-line tools in order to manage your virtualization infrastructure other than the standard RHEV Manager web-based interface.

Chapter 9, Troubleshooting RHEV, talks about various logfiles of the RHEV manager and hypervisor hosts and provides you with steps to put your RHEV virtualization infrastructure into maintenance mode for any planned outage.

Chapter 10, Setting Up iSCSI, NFS, and IdM Directory Services for RHEV, shows you how to set up your Red Hat Enterprise Linux server as an iSCSI, the NFS storage server for RHEV virtual machine data storage, the ISO library to store ISO, and export the domain to export the virtual machine for backup and restoration, and set up and configure IdM directory services on RHEL to integrate RHEV with the Red Hat IdM directory service for user management.

Appendix shows you how to upgrade RHEV environment from Version 3.3 to 3.4. This chapter is available as a bonus chapter and can be downloaded from https://www.packtpub.com/sites/default/files/downloads/7402OS_Appendix.pdf.

What you need for this book

To set up a demo environment for this book, you need a valid Red Hat account to access the Red Hat software and support portal or, optionally, an evaluation version of RHEV:

Please note that the current RHEV GA release is 3.4, but the book is based on a 3.3 release. So if you access the preceding evaluation link, it will direct you to 3.4. Please create an evaluation account, log in to https://access.redhat.com/downloads/, and choose the RHEV Manager channel rhel-x86_64-server-6-rhevm-3.3 for the manager deployment.

You will also need the following set of hardware and software in order to run the examples in this book.

Red Hat Enterprise Virtualization Manager 3.3

The following are the hardware and software requirements of the Red Hat Enterprise Virtualization manager 3.3:

  • Hardware: The commodity's physical hardware or virtual machine

  • Operating system: Red Hat Enterprise Linux 6 Update 5

  • Software channels:

    • rhel-x86_64-server-6-rhevm-3.3

    • rhel-x86_64-server-supplementary-6 -c

    • jbappplatform-6-x86_64-server-6-rpm

The Red Hat Enterprise Virtualization Hypervisor host

The following are the hardware and software requirements of the Red Hat Enterprise Virtualization Hypervisor host:

  • Hardware: Commodity virtualization-enabled physical hardware supports Red Hat Enterprise Linux 6 Update 5

  • Software: RHEV-H image (for RHEV-M 3.3)—downloadable from https://access.redhat.com/downloads/

Optional requirements

The following are the optional requirements that are needed to run the examples in this book:

  • Red Hat IdM Directory Service:

    • Hardware: The commodity physical hardware or virtual machine that acts as a directory server

    • Operating System: Red Hat Enterprise Linux 6 Update 5

    • Software: Identity management (ships by default)

  • ISCSI / NFS storage service:

    • Hardware: The commodity physical hardware or virtual machine that acts as a storage

    • Operating system: Red Hat Enterprise Linux 6 Update 5

    • Software: NFS/iSCSI-related package ships with default operating systems

Who this book is for

If you are a system administrator who is interested in implementing and managing open source virtualization infrastructures, this is the book for you. You need a basic knowledge of virtualization and its use cases and some very basic Linux command-line work experience.

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "This command will switch off SELinux enforcement temporarily until the machine is rebooted. If you would like to permanently disable it, edit /etc/sysconfig/selinux and enter SELINUX=disabled."

Any command-line input or output is written as follows:

# rhn-channel -a -c rhel-x86_64-server-6-rhevm-3.3 -c rhel-x86_64-server-supplementary-6 -c jbappplatform-6-x86_64-server-6-rpm
Username: "yourrhnlogin" 
Password: XXXX

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "Finally, label the ISO domain with a name that will be unique and easily identifiable on the Storage tab of the administration portal".

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.

To send us general feedback, simply send an e-mail to , and mention the book title via the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code

You can download the example code files for all Packt books you have purchased from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the errata submission form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded on our website, or added to any list of existing errata, under the Errata section of that title. Any existing errata can be viewed by selecting your title from http://www.packtpub.com/support.

Piracy

Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors, and our ability to bring you valuable content.

Questions

You can contact us at if you are having a problem with any aspect of the book, and we will do our best to address it.