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.
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.
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.
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.
To install a Red Hat Enterprise Linux 6 host
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.
Ensure the host is correctly subscribed to the appropriate Red Hat Network channels.
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
Run the
rhn-channel
command to subscribe the system to the
Red Hat Enterprise Virt Management Agent (v.6 for x86_64)
channel, also referred to as
rhel-x86_64-rhev-mgmt-agent-6
.
# rhn-channel -a -c rhel-x86_64-rhev-mgmt-agent-6
Make sure the kernel and all the packages are up to date. This may take some time. Run:
# yum -y update
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 -m
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -m physdev ! --physdev-is-bridged -j REJECT --reject-with icmp-host-prohibited
COMMIT
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.