Red Hat Enterprise Virtualization (RHEV) Home Lab Configuration

Overview

This post will cover installing Red Hat Enterprise Virtualization (RHEV) on an Intel NUC for the purpose of a lab environment. RHEV has two main components: RHEV-H and RHEV-M.

RHEV-H

Red Hat Enterprise Virtualization Hypervisor (RHEV-H) is a compact, full-featured virtualization platform built on Red Hat Enterprise Linux (RHEL). It has a very small footprint (less than 100MB) and is built from only a subset of RHEL components plus the Kernel-Based Virtual Machine (KVM).

RHEV-M

Red Hat Enterprise Virtualization Management (RHEV-M) is a virtual management console built on Red Hat Enterprise Linux (RHEL). It interacts with individual RHEV-H nodes using the Virtual Desktop Server Manager (VDSM). A VDSM agent is running on each of the RHEV-H nodes. RHEV-M allows administrators to manage multiple data centers and their network, compute and storage resources. In addition RHEV-M provides a central repository for storing virtual machines, disks, images and virtual machine snapshots.

RHEV_Architecture

Requirements

Install RHEV-H on Intel NUC

In order to install a RHEV-H node on our Intel NUC (bare-metal) we will need to download RHEV-H ISO and UNetbootin. The UNetbootin software allows us to create a bootable USB with the RHEV-H image.

unetbootin

Once you have bootable USB with the RHEV-H image you can simply start the NUC, insert USB and go through the RHEV-H installation.

Note: You may have to change the boot order in the BIOS of your Intel NUC or configure BIOS to boot from USB.

Install RHEL-M

In order to manage one or more RHEV-H nodes, a RHEL system running RHEV-M is required. You can use any 6.x version of RHEL for the RHEV-M system. As of the writing of this post RHEL 7 is not yet supported for RHEV-M. RHEL 7 will be supported with RHEV version 3.5. For the purpose of this lab I installed RHEL 6.6 as a Virtual Machine running under KVM on my PC.

Note: Make sure to allocate at least 4GB of RAM to the RHEV-M system.

Once RHEL 6.6 has been installed proceed with following steps:

  • Register subscription
  • subscription-manager register
  • Automatically attach subscriptions
  • subscription-manager attach --auto

OR

  • List available subscriptions
  • subscription-manager list --available
  • Attach a specific subscription (the pool id is listed in above command)
  • subscription-manager attach --pool=8a85f9814a7ea2ec014a813b19643ce5
  • Enable required channels
  • yum-config-manager --enable rhel-6-server-rpms
  • yum-config-manager --enable rhel-6-server-supplementary-rpms
  • yum-config-manager --enable rhel-6-server-rhevm-3.4-rpms
  • yum-config-manager --enable jb-eap-6-for-rhel-6-server-rpms
  • Install RHEV-M RPMs
  • yum update; yum install rhevm
  • Configure RHEV-M
  • engine-setup

After completing the installation you can go to following URL to connect to RHEV-M http://:80/ovirt-engine

Configure RHEV-M

Once the RHEV-H and RHEV-M systems are configured we can add the RHEV-H node in RHEV-M. The first step is to configure the oVirt engine from the RHEV-H node to point to the FQDN or IP of the RHEV-M host.

Configure oVirt engine on RHEV-H host

  • ssh -l admin <RHEV-H FQDN or IP>

RHEV_ovirt_engine Add RHEV-H host in RHEV-M

Connect to RHEV-M host through following URL: http://:80/ovirt-engine

  • Select the RHEV-H host and enter maintenance mode.

RHEV_maintenance

For the purpose of the lab we will use local storage. Since local storage is not shared across RHEV-H nodes a standalone data center will be configured that uses local storage.

  • Configure local storage domain

RHEV_local_storage

  •  Attach ISO storage domain (configured when installing RHEV-M)

RHEV_attach_ISO_storage

At this point we can start creating virtual machines, templates and various resource pools.If you have any questions regarding the Intel NUC, RHEV-H or RHEV-M setup please feel free to ask. In a future post I will cover API integration with RHEV-M (oVirt).

Troubleshooting

  • Can’t add local storage domain – This problem happens when you have configured RHEV-H host more than once in RHEV-M. Remove anything under /data/images/rhev on RHEV-H host.
  • Accessing root shell on RHEV-H host – you need to connect via ssh as admin user and then press “F2” in the RHEV-H menu.
  • ISOs not available when creating new VMs – The ISO storage domain must be attached to the RHEV-H host. Make sure hostname of RHEV-M host resolves from RHEV-H node otherwise add entry to /etc/hosts file.

(c) 2015 Keith Tenzer

12 thoughts on “Red Hat Enterprise Virtualization (RHEV) Home Lab Configuration

  1. is it possible to run RHEV-M as a VM on the HOST RHEV-H
    I mean I have a single server at home, since RHEV-M is a webbased UI can I migrate it into RHEV-H host after install and configuration?

    Like

    • No this isnt really possible out-of-box since libvirt is disable as the VDSM daemon is used to communicate with KVM through RHEV-M. This means unless you disable VDSM and manually enable libvirt you cant do anything without RHEV-M. Though this is possible I dont recommend it. Instead I recommend nested virtualization. Setup RHEL7 and install KVM. Then use virt-manager or virsh to create two VMs one for RHEV-M and other for RHEV-H. I have done exactly this on my RHEL7 laptop and use it for demos, works great…KVM rocks!!! Let me know if you have more specific questions?

      Like

  2. Is it possible for one to attach ISOs locally from the desktop rather than uploading it to ISO domain and attaching it through “engine-iso-uploader” ?

    Like

    • Yes you can copy iso’s directly to the ISO domain assuming you can access it. You need to pay attention to the path though. Normally you would use RHEV-M as ISO domain or you could use local storage on hypervisors assuming you export NFS. Shared storage of course is the best option.

      Like

  3. Thanks !
    But is there any interface (RHEV-M GUI) , where we can get the option to attach ISO as a CD/DVD instead of copying it to the ISO Domain.
    (The CD/DVD, being located locally in the desktop)

    Like

  4. When I got to the “Install RHEV-M RPMs” state on my freshly installed and upgraded RHEL 6.8 x86_64 system, the “yum install rhevm” threw up an error about the “sos” package version being incorrect. The current rhevm package (as of September 2016) need the “sos” package to be less than version 3 (i.e. “< 3"). I was able to work around this by running the "yum downgrade sos" command until it reported that it was installing the latest "2.2" version of the "sos" package.

    Like

  5. Is it possible to get RHEV-H running from USB drive so I can utilize couple of machines at home/uni/work without actually re-installing them 🙂 just for test purposes 🙂

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s