3.2. 为升级准备注册了 Satellite 的系统
在您可以对注册到 Satellite 的系统执行 RHEL 10 的原位升级前,您必须准备您的系统。这些步骤在 Satellite 服务器上执行。
Satellite 系统上的用户必须完成此流程和 为升级准备 RHEL 9 系统 中所描述的步骤。
先决条件
- 您有对 Satellite 服务器的管理特权。
- Satellite 是一个处于完全或维护支持的版本。如需更多信息,请参阅 Red Hat Satellite 产品生命周期 和 哪些 RHEL 版本和架构作为由 Red Hat Satellite 服务器管理的客户端系统被支持?
流程
- 将带有 RHEL 9 存储库的订阅清单导入到 Satellite 服务器。如需更多信息,请参阅特定 Red Hat Satellite 版本管理内容指南中的管理红帽订阅一章。
在 Satellite 服务器上启用并同步所有所需的 RHEL 9 和 RHEL 10 软件仓库与源和目标操作系统版本的最新更新。所需的软件仓库必须在内容视图中提供,并在关联的激活码中启用。
注意对于 RHEL 10 软件仓库,启用每个软件仓库的目标操作系统版本,如 RHEL 10.0。如果您只启用 RHEL 10 版本的软件仓库,则会禁止原位升级。
例如,对于没有延长更新支持(EUS)订阅的 Intel 构架,至少启用以下软件仓库:
Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs)
rhel-9-for-x86_64-appstream-rpms
x86_64 <source_os_version>
Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs)
rhel-9-for-x86_64-baseos-rpms
x86_64 <source_os_version>
Red Hat Enterprise Linux 10 for x86_64 - AppStream (RPMs)
rhel-10-for-x86_64-appstream-rpms
x86_64 <target_os_version>
Red Hat Enterprise Linux 10 for x86_64 - BaseOS (RPMs)
rhel-10-for-x86_64-baseos-rpms
x86_64 <target_os_version>
将 <source_os_version & gt; 和 <target_os_version > 分别替换为源操作系统版本和目标操作系统版本,如 9.6 和 10.0。
有关其他构架,请参阅 RHEL 9 软件仓库和 RHEL 10 软件仓库。
如需更多信息,请参阅特定 Red Hat Satellite 版本 管理内容指南中的 导入内容部分。
将内容主机附加到包含所需 RHEL 9 和 RHEL 10 软件仓库的内容视图。
如需更多信息,请参阅特定 Red Hat Satellite 版本 管理内容指南中的 管理 内容视图 一章。
验证
验证 Satellite 服务器上的正确的 RHEL 9 和 RHEL 10 软件仓库是否已添加到正确的内容视图中。
- 在 Satellite Web UI 中,导航到 Content > Lifecycle > Content Views,然后点击内容视图的名称。
单击 Repositories 选项卡,验证存储库是否如预期显示。
注意您还可以使用以下命令验证仓库是否已添加到内容视图中:
hammer repository list --search 'content_label ~ rhel-9' --content-view <content_view_name> --organization <organization> --lifecycle-environment <lifecycle_environment> hammer repository list --search 'content_label ~ rhel-10' --content-view <content_view_name> --organization <organization> --lifecycle-environment <lifecycle_environment>
# hammer repository list --search 'content_label ~ rhel-9' --content-view <content_view_name> --organization <organization> --lifecycle-environment <lifecycle_environment> # hammer repository list --search 'content_label ~ rhel-10' --content-view <content_view_name> --organization <organization> --lifecycle-environment <lifecycle_environment>Copy to Clipboard Copied! Toggle word wrap Toggle overflow 将 <content_view_name> 替换为内容视图的名称,将 <organization> 替换为机构,将 <lifecycle_environement> 替换为生命周期环境的名称。
验证与内容视图关联的激活码中是否启用了正确的 RHEL 10 软件仓库:
- 在 Satellite Web UI 中,导航到 Content > Lifecycle > Activation Keys,然后点击激活码的名称。
-
单击 Repository Sets 选项卡,验证所需存储库的状态是否为
Enabled。
验证主机中启用了所有预期的 RHEL 9 软件仓库。例如:
subscription-manager repos --list-enabled | grep "^Repo ID"
# subscription-manager repos --list-enabled | grep "^Repo ID" Repo ID: rhel-9-for-x86_64-baseos-rpms Repo ID: rhel-9-for-x86_64-appstream-rpmsCopy to Clipboard Copied! Toggle word wrap Toggle overflow