9.3.2. Subscribing to Required Channels Using Subscription Manager

Summary
To be used as a virtualization host, a Red Hat Enterprise Linux host must be registered and subscribed to a number of entitlements using either Subscription Manager or RHN Classic. You must follow the steps in this procedure to register and subscribe using Subscription Manager. Completion of this procedure will mean that you have:
  • Registered the virtualization host to Red Hat Network using Subscription Manager.
  • Attached the Red Hat Enterprise Linux Server entitlement to the virtualization host.
  • Attached the Red Hat Enterprise Virtualization entitlement to the virtualization host.
Do not follow the steps in this procedure to register and subscribe using RHN Classic.

Procedure 9.2. Subscribing to Required Channels using Subscription Manager

  1. Register

    Run the subscription-manager command with the register parameter to register the system with Red Hat Network. To complete registration successfully, you will need to supply your Red Hat Network Username and Password when prompted.
    # subscription-manager register
  2. Identify Available Entitlement Pools

    To attach the correct entitlements to the system, you must first locate the identifiers for the required entitlement pools. Use the list action of the subscription-manager to find these.
    To identify available subscription pools for Red Hat Enterprise Linux Server, use the command:
    # subscription-manager list --available | grep -A8 "Red Hat Enterprise Linux Server"
    To identify available subscription pools for Red Hat Enterprise Virtualization, use the command:
    # subscription-manager list --available | grep -A8 "Red Hat Enterprise Virtualization"
  3. Attach Entitlements to the System

    Using the pool identifiers you located in the previous step, attach the Red Hat Enterprise Linux Server and Red Hat Enterprise Virtualization entitlements to the system. Use the attach parameter of the subscription-manager command, replacing [POOLID] with each of the pool identifiers:
    # subscription-manager attach --pool=[POOLID]
  4. Enable the Red Hat Enterprise Virtualization Management Agents Repository

    Run the following command to enable the Red Hat Enterprise Virtualization Management Agents (RPMs) repository:
    # subscription-manager repos --enable=rhel-6-server-rhev-mgmt-agent-rpms
Result
You have registered the virtualization host to Red Hat Network and attached the required entitlements using Subscription Manager.