注册 Rocky Linux 客户端
本节包含有关注册运行 Rocky 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: |
|
|
Registering Rocky Linux clients to SUSE Multi-Linux Manager is tested with the default SELinux configuration of |
1. 添加软件通道
将 Rocky Linux 客户端注册到您的 SUSE Multi-Linux Manager 服务器之前,您需要添加所需的软件通道,并同步这些通道。
目前支持的系统结构有 x86_64 和 aarch64,在版本 9 上,另外还支持 ppc64le 和 s390x。有关支持的产品和体系结构的完整列表,请参见 支持的客户端和功能。
|
In the following section, descriptions often default to the |
例如,使用 x86_64 体系结构时,您需要如下产品:
| OS Version | Product Name |
|---|---|
Rocky Linux 10 |
Rocky Linux 10 x86_64 |
Rocky Linux 9 |
Rocky Linux 9 x86_64 |
Rocky Linux 8 |
Rocky Linux 8 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.单击 添加产品 并等待产品完成同步。
或者,您也可以在命令提示符处添加通道。此过程所需的通道包括:
| OS Version | Base Channel |
|---|---|
Rocky Linux 10 |
rockylinux10-x86_64 |
Rocky Linux 9 |
rockylinux9-x86_64 |
Rocky Linux 8 |
rockylinux8-x86_64 |
在 SUSE Multi-Linux Manager 容器主机的命令提示符处,以 root 身份命令添加相应的通道:
mgrctl exec -- mgr-sync add channel <channel_label_1> mgrctl exec -- mgr-sync add channel <channel_label_2> mgrctl exec -- mgr-sync add channel <channel_label_n>系统会自动启动同步。如果您要手动同步通道,请使用以下命令:
mgrctl exec -- mgr-sync sync --with-children <channel_name>确保同步已完成,然后再继续操作。
|
您可能会发现 AppStream 通道中提供的软件包数量在上游通道和 SUSE Multi-Linux Manager 通道之间存在一定的差异。如果您对在不同时间添加的同一通道进行比较,会发现其数量也不相同。这是由 Rocky Linux 管理其储存库的方式所致。当有新版本发布时,Rocky Linux 会去除软件包的较旧版本,而 SUSE Multi-Linux Manager 则会保留所有版本,无论新旧与否。 |
If you are using modular channels with Rocky Linux 8, you must enable the Python 3.6 module stream on the client. If you do not provide Python 3.6, the installation of the spacecmd package will fail.
2. 检查同步状态
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每个子通道在同步过程中会生成自身的日志。您需要检查所有基础通道和子通道日志文件,以确保同步完成。
4. 管理 GPG 密钥
安装软件包之前,客户端会使用 GPG 密钥检查这些软件包的真实性。只有可信软件才能安装在客户端上。
|
信任 GPG 密钥对于客户端的安全非常重要。由管理员来决定需要哪些密钥,可以信任哪些密钥。如果不信任 GPG 密钥,便无法为客户端指派软件通道。 |
有关 GPG 密钥的详细信息,请参见 GPG 密钥。
5. 注册客户端
要注册您的客户端,需要有引导储存库。系统默认会自动创建引导储存库,并且每天会为所有同步的产品重新生成该储存库。您可以在容器主机的命令提示符处手动创建引导储存库:
mgrctl exec -ti mgr-create-bootstrap-repo
有关注册客户端的详细信息,请参见 客户端注册。
6. 管理勘误
当您更新 Rocky Linux 客户端时,软件包会包含有关更新的元数据。