使用 RHUI 注册 Red Hat Enterprise Linux 客户端
本节包含有关使用 Red Hat 更新基础架构 (RHUI) 注册运行 Red Hat Enterprise Linux 操作系统的客户端的信息。
|
RHEL 10 requires x86-64-v3 CPU architecture. Red Hat Enterprise Linux 10 has raised the minimum supported x86-64 microarchitecture baseline to x86-64-v3. Systems running on x86-64-v1 or x86-64-v2 CPUs (e.g., pre-Haswell Intel or pre-Excavator AMD processors) cannot run RHEL 10 and will not be supported. This affects both physical hosts and virtual machines. Hypervisors (e.g., VMware EVC, KVM, etc.) must be configured to expose AVX/AVX2 CPU capabilities to guest VMs, otherwise RHEL 10 installation or boot will fail. Before deploying or upgrading to RHEL 10, verify that your hardware meets the x86-64-v3 requirement. References: |
如果您是直接运行 Red Hat Enterprise Linux 客户端而不是使用 SUSE Linux Enterprise Server with Expanded Support 来运行,则需要使用 Red Hat 来源检索并更新软件包。
如果您在公有云(例如 Amazon EC2)中运行客户端,请使用此方法。
可以将 RHUI 与 Red Hat 内容分发网络 (CDN) 搭配使用来管理您的 Red Hat Enterprise Linux 订阅。有关使用 Red Hat CDN 的信息,请参见 使用 CDN 注册 Red Hat Enterprise Linux 客户端。
|
Red Hat Enterprise Linux 客户端基于 Red Hat,与 SUSE Linux Enterprise Server with Expanded Support、RES 或 SUSE Linux Enterprise Server 不相关。 您需负责将 SUSE Multi-Linux Manager 服务器连接到 Red Hat 更新基础结构。所有使用此 RHUI 证书进行更新的客户端都需要获得正确许可,有关详细信息,请咨询您的云服务提供商,并查看服务的 Red Hat 条款。 |
|
当使用 RHUI 注册的 Red Hat Enterprise Linux 客户端关闭时,Red Hat 可能会声称证书无效。在此情况下,您需要再次打开客户端,或获取新的 RHUI 证书。 |
1. 导入权利和证书
过去,必须手动将证书和权利数据导入到 SUSE Multi-Linux Manager 服务器。如今,该任务已实现自动化,采用的机制与 SUSE PAYG 实例所用机制相同。有关详细信息,请参见 PAYG Overview。
本指南将介绍注册到 Red Hat 更新基础结构 (RHUI) 的客户端。您至少须有一个注册到 RHUI 的系统并拥有授权订阅,以获得储存库内容。
而有关使用 Red Hat 内容分发网络 (CDN) 的信息,请参见 使用 CDN 注册 Red Hat Enterprise Linux 客户端。
|
要为客户端系统使用从属证书,必须有从属服务器和订阅。SUSE Multi-Linux Manager 服务器不支持使用从属证书的客户端。 |
|
PAYG 连接会定期与客户端通信以获取最新的身份验证数据。请务必将客户端保持运行状态并定期更新。如果不这样,储存库同步有时将会失败,并显示身份验证错误。 |
|
请在连接任何 Red Hat 7 实例前先将其更新。 |
|
A Red Hat 9 instance needs to be configured with the crypto policy |
2. 连接到 Red Hat 更新基础结构
-
在 SUSE Multi-Linux Manager Web UI 中,导航到,然后单击 添加 PAYG。
-
Start with the page section
PAYG connection Description. -
In the
Descriptionfield, add the description. -
Move to the page section
Instance SSH connection data. -
In the
Hostfield, enter the instance DNS or IP address to connect from SUSE Multi-Linux Manager. -
In the
SSH Portfield, enter the port number or use default value 22. -
In the
Userfield, enter the username as specified in the cloud. -
In the
Passwordfield, enter the password. -
In the
SSH Private Keyfield, enter the instance key. -
In the
SSH Private Key Passphrasefield, enter the key passphrase.
|
身份验证密钥必须采用 PEM 格式。 |
如果您要通过 SSH 堡垒连接实例而不是直接连接,请执行过程:添加 SSH 堡垒连接数据。
否则,请执行过程:完成 Red Hat 连接。
-
Navigate to the page section
Bastion SSH connection data. -
In the
Hostfield, enter the bastion hostname. -
In the
SSH Portfield, enter the bastion port number. -
In the
Userfield, enter the bastion username. -
In the
Passwordfield, enter the bastion password. -
In the
SSH Private Keyfield, enter the bastion key. -
In the
SSH Private Key Passphrasefield, enter the bastion key passphrase.
执行过程:完成 Red Hat 连接完成设置。
-
要完成添加新 Red Hat 连接数据的过程,请单击 创建。
-
Return to PAYG connection data
Detailspage. The updated connection status is displayed on the top section namedInformation. -
Connection status is shown in
Admin > Setup Wizard > Pay-as-you-goscreen, too. -
If the authentication data for the instance is correct, the column
StatusshowsCredentials successfully updated.
|
If invalid data is entered at any point, the newly created instance is shown in |
As soon as the authentication data is available on the server, repositories were added for all available repositories on the connected instance. The repositories can be seen in Software > Manage > Repositories
|
A Red Hat connection will create custom repositories which are owned by organization 1 by default. If a different organization should own the autogenerated repositories, configure |
此设置仅可定义和更新储存库。如果您想对受管客户端使用某个储存库,则需要指定软件通道并将储存库关联到该软件通道。
3. 添加软件通道
将 Red Hat 客户端注册到您的 SUSE Multi-Linux Manager 服务器之前,您需要添加所需的软件通道,并同步这些通道。
|
In the following section, descriptions often default to the |
拥有 SUSE Multi-Linux Manager 订阅,您便能使用 SUSE Linux Enterprise Server with Expanded Support(也称为 Red Hat 扩展支持或 RES)的工具通道。必须使用客户端工具通道来创建引导储存库。此过程适用于 Salt 客户端。
此过程所需的产品包括:
| OS Version | Product Name |
|---|---|
Red Hat 10 |
RHEL and Liberty 10 Base |
Red Hat 9 |
RHEL and Liberty 9 Base |
Red Hat 8 |
RHEL or SLES ES or CentOS 8 Base |
Red Hat 7 |
RHEL7 Base x86_64 |
在 SUSE Multi-Linux Manager Web UI 中,导航到。
Locate the appropriate products for your client operating system and architecture using the search bar, and check the appropriate product. This will automatically check all mandatory channels. Also all recommended channels are checked as long as the
include recommendedtoggle is turned on. Click the arrow to see the complete list of related products, and ensure that any extra products you require are checked.单击 添加产品 并等待产品完成同步。
4. 准备自定义通道
要从 RHUI 镜像软件,您需要在 SUSE Multi-Linux Manager 中创建关联到自动生成的储存库的自定义通道。
此过程所需的通道包括:
| OS Version | Base Product | Base Channel |
|---|---|---|
Red Hat 10 |
RHEL and Liberty 10 Base |
el10-pool-x86_64 |
Red Hat 9 |
RHEL and Liberty 9 Base |
el9-pool-x86_64 |
Red Hat 8 |
RHEL or SLES ES or CentOS 8 Base |
rhel8-pool-x86_64 |
Red Hat 7 |
RHEL7 Base x86_64 |
rhel7-pool-x86_64 |
在 SUSE Multi-Linux Manager 服务器 Web UI 上,导航到。
单击 创建通道,然后为通道设置相应的参数。
In the
Parent Channelfield, select the appropriate base channel.单击 创建通道。
对需要创建的所有通道重复以上步骤。每个自定义储存库都应该有一个自定义通道。
您可以导航到,以检查是否已创建所有相应的通道和储存库。
|
For Red Hat 10, Red Hat 9 and Red Hat 8 clients, add both the Base and AppStream channels. You require packages from both channels. If you do not add both channels, you cannot create the bootstrap repository, due to missing packages. |
创建所有通道之后,可以将其与您创建的储存库关联:
在 SUSE Multi-Linux Manager 服务器 Web UI 上,导航到,然后单击要关联的通道。
Navigate to the
Repositoriestab, and check the repository to associate with this channel.单击 更新储存库 以将通道与储存库相关联。
对需要关联的所有通道和储存库重复以上步骤。
OPTIONAL: Navigate to the
Synctab to set a recurring schedule for synchronization of this repository.单击 立即同步 以立即开始同步。
5. 检查同步状态
In the SUSE Multi-Linux Manager Web UI, navigate to and select the
Productstab. This dialog displays a completion bar for each product when they are being synchronized.Alternatively, you can navigate to , then click the channel associated to the repository. Navigate to the
Repositoriestab, then clickSyncand checkSync Status.
要在跟踪日志前列出可用日志,请在容器主机上运行以下命令:
mgrctl exec ls /var/log/rhn/reposync/在 SUSE Multi-Linux Manager 容器主机的命令提示符处,以 root 身份检查通道日志文件的同步:
mgrctl exec -ti -- tail -f /var/log/rhn/reposync/<channel-label>.log每个子通道在同步过程中会生成自身的日志。您需要检查所有基础通道和子通道日志文件,以确保同步完成。
|
Red Hat Enterprise Linux 通道可能非常大。同步所需的时间可能长达数小时。 |
6. 管理 GPG 密钥
安装软件包之前,客户端会使用 GPG 密钥检查这些软件包的真实性。只有可信软件才能安装在客户端上。
|
信任 GPG 密钥对于客户端的安全非常重要。由管理员来决定需要哪些密钥,可以信任哪些密钥。这是因为如果不信任 GPG 密钥,便无法使用软件通道,是否将通道指派给客户端取决于是否信任密钥。 |
有关 GPG 密钥的详细信息,请参见 GPG 密钥。