9.3.3. Subscribing to Required Channels Using RHN Classic
Previous Step in Preparing a Red Hat Enterprise Linux Host
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 if you wish to register and subscribe using RHN Classic. Completion of this procedure will mean that you have:
- Registered the virtualization host to Red Hat Network using RHN Classic.
- Subscribed the virtualization host to the
Red Hat Enterprise Linux Server (v. 6 for 64-bit AMD64 / Intel64)channel. - Subscribed the virtualization host to the
Red Hat Enterprise Virt Management Agent (v 6 x86_64)channel.
Procedure 9.3. Subscribing to Required Channels using RHN Classic
Register
If the machine has not already been registered with Red Hat Network, run therhn_registercommand asrootto register it. To complete registration successfully you will need to supply your Red Hat Network Username and Password. Follow the prompts displayed byrhn_registerto complete registration of the system.# rhn_register
Subscribe to channels
You must subscribe the system to the required channels using either the web interface to Red Hat Network or the command linerhn-channelcommand.Using the Web Interface to Red Hat Network
To add a channel subscription to a system from the web interface:- Log on to Red Hat Network (http://rhn.redhat.com).
- Move the mouse cursor over the Subscriptions link at the top of the screen, and then click the Registered Systems link in the menu that appears.
- Select the system to which you are adding channels from the list presented on the screen, by clicking the name of the system.
- Click Alter Channel Subscriptions in the Subscribed Channels section of the screen.
- Select the channels to be added from the list presented on the screen. To use the virtualization host in a Red Hat Enterprise Virtualization environment you must select:
- Red Hat Enterprise Linux Server (v. 6 for 64-bit x86_64); and
- Red Hat Enterprise Virt Management Agent (v 6 x86_64).
- Click the Change Subscription button to finalize the change.
Using the rhn-channel command
Run therhn-channelcommand to subscribe the virtualization host to each of the required channels. The commands that need to be run are:# rhn-channel --add --channel=rhel-x86_64-server-6 # rhn-channel --add --channel=rhel-x86_64-rhev-mgmt-agent-6
Important
If you are not the administrator for the machine as defined in Red Hat Network, or the machine is not registered to Red Hat Network, then use of therhn-channelcommand will result in an error:Error communicating with server. The message was:Error Class Code: 37 Error Class Info: You are not allowed to perform administrative tasks on this system. Explanation: An error has occurred while processing your request. If this problem persists please enter a bug report at bugzilla.redhat.com. If you choose to submit the bug report, please be sure to include details of what you were trying to do when this error occurred and details on how to reproduce this problem.If you encounter this error when usingrhn-channelthen to add the channel to the system you must use the web user interface instead.
Result
You have registered the virtualization host to Red Hat Network and subscribed to the required entitlements using RHN Classic.