注册 SUSE Linux Enterprise 客户端
本节包含有关注册运行 SUSE Linux Enterprise 操作系统的客户端的信息。
请按照本章中的说明准备所有 SUSE Linux Enterprise 产品,包括:
- 
SUSE Linux Enterprise Server for SAP 
- 
SUSE Linux Enterprise Desktop 
- 
SUSE Linux Enterprise 
- 
SUSE Linux Enterprise Real Time 
您也可以按照这些说明准备较旧的 SUSE Linux Enterprise 版本和服务包。
1. 添加软件通道
| 下面的小节中的说明通常默认使用 x86_64 体系结构。请根据情况将其替换为其他体系结构。 | 
将 SUSE Linux Enterprise 客户端注册到您的 SUSE Manager 服务器之前,您需要添加所需的软件通道,并同步这些通道。
此过程所需的产品包括:
| 操作系统版本 | 产品名称 | 
|---|---|
| SUSE Linux Enterprise Server 15 SP7 | SUSE Linux Enterprise Server 15 SP7 x86_64 | 
| SUSE Linux Enterprise Server 15 SP6 | SUSE Linux Enterprise Server 15 SP6 x86_64 | 
| SUSE Linux Enterprise Server 15 SP5 | SUSE Linux Enterprise Server 15 SP5 x86_64 | 
| SUSE Linux Enterprise Server 15 SP4 | SUSE Linux Enterprise Server 15 SP4 x86_64 | 
| SUSE Linux Enterprise Server 15 SP3 | SUSE Linux Enterprise Server 15 SP3 x86_64 | 
| SUSE Linux Enterprise Server 15 SP2 | SUSE Linux Enterprise Server 15 SP2 x86_64 | 
| SUSE Linux Enterprise Server 15 SP1 | SUSE Linux Enterprise Server 15 SP1 x86_64 | 
| SUSE Linux Enterprise Server 12 SP5 | SUSE Linux Enterprise Server 12 SP5 x86_64 | 
- 
在 SUSE Manager Web UI 中,导航到。 
- 
使用搜索栏找到适用于您的客户端操作系统和体系结构的产品,然后选中相应产品。这样会自动选中所有必需的通道。此外,建议的所有通道也将选中,并且 包括建议项开关会打开。单击箭头以查看相关产品的完整列表,确保您需要的所有额外产品都已选中。
- 
单击 添加产品 并等待产品完成同步。 
或者,您也可以在命令提示符处添加通道。此过程所需的通道包括:
| 操作系统版本 | 基础通道 | 
|---|---|
| SUSE Linux Enterprise Server 15 SP7 | sle-product-sles15-sp7-pool-x86_64 | 
| SUSE Linux Enterprise Server 15 SP6 | sle-product-sles15-sp6-pool-x86_64 | 
| SUSE Linux Enterprise Server 15 SP5 | sle-product-sles15-sp5-pool-x86_64 | 
| SUSE Linux Enterprise Server 15 SP4 | sle-product-sles15-sp4-pool-x86_64 | 
| SUSE Linux Enterprise Server 15 SP3 | sle-product-sles15-sp3-pool-x86_64 | 
| SUSE Linux Enterprise Server 15 SP2 | sle-product-sles15-sp2-pool-x86_64 | 
| SUSE Linux Enterprise Server 15 SP1 | sle-product-sles15-sp1-pool-x86_64 | 
| SUSE Linux Enterprise Server 12 SP5 | sle-product-sles15-sp5-pool-x86_64 | 
要查找较旧产品的通道名称,请在 SUSE Manager 服务器上的命令提示符处以 root 身份使用 mgr-sync 命令:
mgr-sync list --help
然后指定您感兴趣的参数,例如 channels:
mgr-sync list channels [-c]
- 
在 SUSE 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>
- 
确保同步已完成,然后再继续操作。 
2. 检查同步状态
- 
在 SUSE Manager Web UI 中,导航到,然后选择 产品选项卡。当同步产品时,此对话框会为每个产品显示一个完成栏。
- 
或者,您可以导航到,然后单击与该储存库关联的通道。导航到 储存库选项卡,然后单击同步并选中同步状态。
- 
To list available logs before tailing, on the container host, run the following command: mgrctl exec ls /var/log/rhn/reposync/
- 
在 SUSE Manager 容器主机的命令提示符处,以 root 身份检查通道日志文件的同步: mgrctl exec -ti -- tail -f /var/log/rhn/reposync/<channel-label>.log
- 
每个子通道在同步过程中会生成自身的日志。您需要检查所有基础通道和子通道日志文件,以确保同步完成。 
| SUSE Linux Enterprise 通道可能会非常大。同步所需的时间可能会长达数小时。 |