Lab 7 - Add Additional Data Center

This lab shows you how to customize your standard Red Hat Enterprise Virtualization environment with an additional data center. This lab uses Red Hat Enterprise Linux hosts, however you can substitute them with Red Hat Enterprise Virtualization Hypervisor hosts. At the end of this lab you will be able to create virtual machines in your new data center.
This lab assumes that you have successfully completed all the sections in Lab 1 - Install and Configure Basic Setup. You should have correctly installed and configured Red Hat Enterprise Virtualization, and have configured shared storage and logical networks.
Lab 7 - Objectives
This lab takes you through the tasks necessary to install and set up Red Hat Enterprise Virtualization with multiple hosts and shared storage. In addition, you will learn how to configure networks and add ISOs in order to create virtual machines. This lab should take you about 35 minutes.
Section 1, “Install Red Hat Enterprise Linux Hosts” shows you how to install and configure Red Hat Enterprise Linux hosts for use with Red Hat Enterprise Virtualization Manager. (10 minutes)
Section 2, “Create a New Data Center” shows you how to create a new Data Center for the Red Hat Enterprise Linux hosts. (1 minute)
Section 3, “Create a New Cluster” shows you how to create a new host cluster for your Red Hat Enterprise Linux hosts to it. (1 minute)
Section 4, “Attach New Red Hat Enterprise Linux Hosts” shows you how to manually attach the hosts to the Red Hat Enterprise Virtualization Manager. (4 minutes)
Section 5, “Configure Logical Networks” shows you how to define new networks for the storage devices and add them to the hosts. (5 minutes)
Section 6, “Configure Storage” shows you how to define NFS, iSCSI or FCP storage and attach the domains to the data center. (8 minutes)
Section 7, “Configure ISO domain” shows you how to create a new ISO domain or attach the existing ISO domain to your new data center. (6 minutes)
Lab 7 - Requirements
In addition to the requirements stipulated in Section 1.1, “Track A Requirements”, ensure that you have the following:

Red Hat Enterprise Linux Hosts

  • Minimum - Dual Core server, 10 GB RAM and 10 GB Storage, 1 Gbps network interface
  • Recommended - Dual socket server, 16 GB RAM and 50 GB storage, two 1 Gbps network interfaces.
    The breakdown of the server requirements is:
    • For each host: AMD-V or Intel VT enabled, AMD64 or Intel 64 extensions, minimum 1 GB RAM, 3 GB free storage and 1 Gbps network interface.
    • For virtual machines running on each host: minimum 1 GB RAM per virtual machine.
  • For each host, a valid Red Hat Network subscription to the rhel-x86_64-rhev-mgmt-agent-6 channel.

Storage and Networking

  • One or more of the supported storage types (NFS, iSCSI and FCP).
  • One static IP per host which is resolvable by the DNS server.
  • An NFS mount point for an ISO directory if you choose to configure an ISO share external to the Red Hat Enterprise Virtualization Manager Server.
Lab 7 - Configuration
The following figure and table list the environment parameters and object names which will be used consistently throughout this lab. It is strongly recommended that you use these entities in your evaluation environment to ensure the names are resolvable. You may alter them if necessary, but make sure you have an equivalent name for each component.

Table 2. Lab component names

Component Name IP (if applicable) Fully Qualified Domain Name
Domain Services - - demo.redhat.com
Red Hat Enterprise Virtualization Manager - - rhevm.demo.redhat.com
Data Center - - FinanceDataCenter
Cluster - - FinanceCluster
Storage Network storage 10.23.1.0/24 -
Management Network rhevm 10.35.3.0/24 -
Red Hat Enterprise Virtualization Linux Host 1 Danube - danube.demo.redhat.com
Red Hat Enterprise Virtualization Linux Host 2 Indus - indus.demo.redhat.com
Red Hat Enterprise Virtualization Hypervisor 1 Atlantic - atlantic.demo.redhat.com
Red Hat Enterprise Virtualization Hypervisor 2 Pacific - pacific.demo.redhat.com
Administrator User Name admin - -
NFS Storage Domain NFS-share - -
iSCSI Storage Domain iSCSI-share - -
FCP Storage Domain FCP-share - -
ISO Storage Domain local-iso-share - -

1. Install Red Hat Enterprise Linux Hosts

In your current environment, you should have Red Hat Enterprise Virtualization Manager and at least two hosts configured in the default data center. In this section, you will learn how to configure Red Hat Enterprise Linux servers as hosts to run virtual machines. You have to perform the installation on each physical server you wish to use as a host.
However, if you do not wish to use Red Hat Enterprise Linux hosts, you can still create an additional data center and add Red Hat Enterprise Virtualization Hypervisor hosts to it. See Section 2, “Install Red Hat Enterprise Virtualization Hypervisor” for instructions, then proceed to Section 2, “Create a New Data Center”.

To install a Red Hat Enterprise Linux 6 host

  1. On the machine designated as your Red Hat Enterprise Linux host, install Red Hat Enterprise Linux 6.2. Select only the Base package group during installation. For more comprehensive instructions, refer to the Red Hat Enterprise Linux Installation Guide.
  2. If your server has not been registered with the Red Hat Network, run the rhn_register command as root to register it. To complete registration successfully you will need to supply your Red Hat Network username and password. Follow the onscreen prompts to complete registration of the system.
    # rhn_register
  3. Subscribe the server to the required channels using the Red Hat Network web interface.
    1. Log on to Red Hat Network (http://rhn.redhat.com/).
    2. Click Systems at the top of the page.
    3. Select the system to which you are adding channels from the list presented on the screen, by clicking the name of the system.
    4. Click Alter Channel Subscriptions in the Subscribed Channels section of the screen.
    5. Select the Red Hat Enterprise Virt Management Agent (v 6 x86_64) channel from the list presented on the screen, then click the Change Subscription button to finalize the change.
  4. Make sure the kernel and all the packages are up to date. This may take some time. Run:
    # yum -y update
  5. Red Hat Enterprise Virtualization platform uses a number of network ports for management and other virtualization features. Adjust your Red Hat Enterprise Linux host's firewall settings to allow access to the required ports by configuring iptables rules. Modify the /etc/sysconfig/iptables file so it resembles the following example:
    :INPUT ACCEPT [0:0]
    :FORWARD ACCEPT [0:0]
    :OUTPUT ACCEPT [10765:598664]
    -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT 
    -A INPUT -p icmp -j ACCEPT 
    -A INPUT -i lo -j ACCEPT
    -A INPUT -p tcp --dport 22 -j ACCEPT
    -A INPUT -p tcp --dport 16514 -j ACCEPT
    -A INPUT -p tcp --dport 54321 -j ACCEPT
    -A INPUT -p tcp -m multiport --dports 5634:6166 -j ACCEPT
    -A INPUT -p tcp -m multiport --dports 49152:49216 -j ACCEPT  
    -A INPUT -p tcp -m state --state NEW 
    -A INPUT -j REJECT --reject-with icmp-host-prohibited 
    -A FORWARD -m physdev ! --physdev-is-bridged -j REJECT --reject-with icmp-host-prohibited 
    COMMIT
    
  6. Ensure that the iptables service is configured to start on boot and has been restarted, or started for the first time if it was not already running. Run the following commands:
    # chkconfig iptables on
    # service iptables restart
    
You have now successfully installed your Red Hat Enterprise Virtualization Linux hosts. The following sections will provide instructions on how to attach the hosts to the Red Hat Enterprise Virtualization Manager.