1.3. 注册和配置主机
下面一节论述了如何注册主机、识别订阅并添加那些订阅,以便主机可以使用内容。
1.3.1. 在 Red Hat Subscription Management 中注册
首先是要在 Red Hat Subscription Management 中注册该主机。这样可让该主机订阅并使用该用户可使用的任意订阅内容,其中包括 Red Hat Enterprise Linux、Red Hat Software Collections(RHSCL)和 Red Hat Satellite。请使用
subscription_manager register
命令注册 Satellite:
# subscription-manager register Username: demouser Password: The system has been registered with ID: 541084ff2-44cab-4eb1-9fa1-7683431bcf9a
1.3.2. 识别 Satellite 订阅
注册主机后,需要识别 Satellite 订阅池 ID。您需要这个 ID 方可将所需订阅添加到您的主机中。可使用该 Satellite 订阅访问 Satellite 内容、Red Hat Enterprise Linux,、Red Hat Software Collections(RHSCL)和 Red Hat Satellite。这是唯一需要的订阅。
运行以下命令识别 Satellite 订阅:
# subscription-manager list --all --available Subscription Name: Red Hat Satellite Provides: Oracle Java (for RHEL Server) Red Hat Satellite 6 Beta Red Hat Enterprise Linux Server Red Hat Satellite Red Hat Enterprise Linux Load Balancer (for RHEL Server) SKU: MCT0370 Pool ID: 8a85f9874152663c0541943739717d11 Available: 3 Suggested: 1 Service Level: Premium Service Type: L1-L3 Multi-Entitlement: No Ends: 10/07/2014 System Type: Physical
重要
请记录池 ID;您需要这个信息方可将订阅添加到 Satellite 主机中。在这个示例中,池 ID 为 8a85f9874152663c0541943739717d11。为您的订阅分配的池 ID 会有所不同。
运行以下命令在 Satellite 中添加订阅。请确定使用您自己的池 ID:
# subscription-manager attach --pool=8a85f9874152663c0541943739717d11 Successfully attached a subscription for: Red Hat Satellite
运行以下命令确定以成功添加订阅:
# subscription-manager list --consumed +-------------------------------------------+ Consumed Subscriptions +-------------------------------------------+ Subscription Name: Red Hat Satellite Provides: Red Hat Satellite Red Hat Enterprise Linux Server Red Hat Software Collections (for RHEL Server) Red Hat Satellite Beta Red Hat Satellite 6 Beta Red Hat Software Collections Beta (for RHEL Server) Red Hat Satellite Capsule Beta Red Hat Enterprise Linux Load Balancer (for RHEL Server) Red Hat Satellite with Embedded Oracle Red Hat Satellite Capsule Red Hat Enterprise Linux High Availability (for RHEL Server) SKU: MCT0370 Contract: 10293569 Account: 5361051 Serial: 1653856191250699363 Pool ID: 8a85f9874152663c0541943739717d11 Active: True Quantity Used: 1 Service Level: Premium Service Type: L1-L3 Status Details: Starts: 10/08/2013 Ends: 10/07/2014 System Type: Physical
1.3.3. 配置存储库
需要禁用全部现有的存储库,Red Hat Enterprise Linux 6、Red Hat Software Collections 和 Satellite 6 除外。请运行以下命令:
# subscription-manager repos --disable=* # subscription-manager repos --enable rhel-6-server-rpms \n--enable rhel-server-rhscl-6-rpms --enable rhel-6-server-satellite-6.0-rpms
1.3.4. 安装 Satellite 6
运行以下命令安装 Satellite 6:
# yum install katello