Show Table of Contents
7.2. 订阅所需的权利
为了可以作为虚拟化主机使用,Red Hat Enterprise Linux 主机必须满足 第 2.2 节 “Hypervisor 配置要求” 中提到的硬件要求,并通过 Subscription Manage 注册和订阅了相应的权利。请按照以下步骤在 Content Delivery Network 中进行注册,并把
Red Hat Enterprise Linux Server 和 Red Hat Enterprise Virtualization 权利添加给主机。
过程 7.1. 使用 Subscription Manager 订阅所需的权利
- 在 Content Delivery Network 中注册您的系统,在出现提示时输入您的客户门户网站的用户名和密码:
# subscription-manager register
- 找到
Red Hat Enterprise Linux Server和Red Hat Virtualization订阅池,并记录下它们的 ID。# subscription-manager list --available
- 使用前一步获得的池 ID 为系统附加权利:
# subscription-manager attach --pool=poolid
注意
运行以下命令可以显示当前附加的订阅:# subscription-manager list --consumed
运行以下命令可以列出所有启用的软件仓库:# yum repolist
- 禁用所有存在的软件仓库:
# subscription-manager repos --disable=*
- 启用所需的仓库:
# subscription-manager repos --enable=rhel-7-server-rpms # subscription-manager repos --enable=rhel-7-server-rhv-4-mgmt-agent-rpms
- 确认当前安装的软件包已被升级到最新版本:
# yum update
当为主机订阅了所需的权利后,根据下一节的介绍把主机附加到 Red Hat Virtualization 环境中。
警告
当前,还不支持通过 NetworkManager(包括
nmcli 和 nmtui)配置网络。如果在把主机添加到 Manager 前需要额外的网络配置,则需要手工编辑 ifcfg 文件。相关信息请参阅 Red Hat Enterprise Linux Networking Guide。

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.