Product SiteDocumentation Site

2.2.2. Install Red Hat Enterprise Linux Host

You now know how to install a Red Hat Enterprise Virtualization Hypervisor. In addition to hypervisor hosts, you can also reconfigure servers which are running Red Hat Enterprise Linux to be used as virtual machine hosts.
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. Ensure the host is correctly subscribed to the appropriate Red Hat Network channels.
    1. 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
    2. Run the rhn-channel command to subscribe the system to the Red Hat Enterprise Virt Management Agent (v 6 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
  3. 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 tcp --dport 22 -j ACCEPT 
    -A INPUT -j REJECT --reject-with icmp-host-prohibited 
    -A FORWARD -m physdev ! --physdev-is-bridged -j REJECT --reject-with icmp-host-prohibited 
    COMMIT
    
  4. 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 a Red Hat Enterprise Linux host. As before, repeat this procedure if you wish to use more Linux hosts. Before you can start running virtual machines on your host, you have to manually add it to the Red Hat Enterprise Virtualization Manager via the administration portal, which you will access in the next step.