antony@notes:~/suse$ cat "Registering-SUSE-Liberty-Linux-7-Clients.md"
Registering SUSE Liberty Linux 7 Clients
Registering SUSE Liberty Linux 7 Clients
Preface
本篇文章會介紹,如何成功將 SUSE Liberty Linux 7 Client 註冊到 SUSE Manager Server
可以透過點擊展開以下目錄,選擇想看的內容,跳轉至特定章節
:::warning
:::spoiler {state=“open”} 文章目錄
[TOC]
:::
1. 注意事項
- SUSE Liberty Linux clients 指的就是將 Red Hat Enterprise Linux 或是 CentOS 系統的 Packages Repository 換成 SUSE Liberty Linux 的套件儲存庫。
SUSE Liberty Linux clients 有時候也被稱為以下 4 種名稱
- SUSE Linux Enterprise Server with Expanded Support (SLESES)
- Liberty
- RES
- Red Hat Expanded Support.
- SUSE Liberty Linux software channels 僅提供套件的更新,不提供套件本身。
- 要註冊 SUSE Liberty Linux Client,需要在 SUSE Manager Server 新增 SUSE Liberty Linux Product 以建立必要的基本頻道,然後將任何必需的 Red Hat 或 CentOS 套件匯入為自訂子頻道。
- 必須直接從 Red Hat 或 CentOS 獲得 initial packages ( 初始套件 ),然後才能套用由 SUSE Liberty Linux 軟體頻道提供的更新。
2. 在 SUSE Manager Server 新增 Software Channels
2.1. 系統要求
- SUSE Manager Server 的
/var/spacewalk目錄區剩餘空間量,必須有 600 G 以上的剩餘空間
2.2. 注意事項
SUSE Liberty Linux 的某些必需套件包含在 Red Hat Enterprise Linux 或 CentOS installation media 中,在註冊 SUSE Liberty Linux 客戶端之前,您必須先安裝這些套件。
- SUSE Liberty Linux 產品由 SUSE Custom Center 提供,這也包括客戶端工具套件。
- 在將 SUSE Liberty Linux 客戶端註冊到 SUSE Manager Server 之前,您需要添加所需的 software channels 並同步它們。
- 您需要選擇兩組不同的通道,一組是 SUSE Liberty Linux,另一組是 Client Tools.。
- 需要與正確的 SUSE Liberty Linux channels 關聯的 activation key。
2.3. 開始新增 Software Channels
以下 WebUI 和 CLI 的操作步驟選擇其中一種執行即可
2.3.1 使用 WebUI 操作步驟
- 勾選要加入的 SUSE Liberty Linux (版本)
- 點擊 “Add product” ,然後等待同步完成

- 確認同步完成
在 Channels 欄位呈現綠勾勾的圖示,代表完成同步

2.3.2. 使用 CLI 操作步驟
連線至 SUSE Manager Server,並使用具有系統管理員權限的使用者帳號執行以下命令
$ sudo mgr-sync add channel rhel-x86_64-server-7 輸入 SUSE Manager 管理員的帳號密碼
螢幕輸出 :
Please enter the credentials of SUSE Manager Administrator.
Login: admin
Password:
Added 'rhel-x86_64-server-7' channel
Scheduling reposync for following channels:
- rhel-x86_64-server-72.4. SUSE Liberty Linux 在 SUSE Manager 上的資訊
下表是 SUSE Liberty Linux 每個版本對應的 Product 名稱 :
| OS Version | Product Name |
|---|---|
| SUSE Liberty Linux 7 | SUSE Linux Enterprise Server with Expanded Support 7 x86_64 |
| SUSE Liberty Linux 8 | RHEL or SLES ES or CentOS 8 Base x86_64 |
| SUSE Liberty Linux 9 | RHEL and Liberty 9 Base x86_64 |
下表是 SUSE Liberty Linux 每個版本對應的 Base Channel 和 Client Tools Channel :
| SUSE Liberty Linux | Base Channel | Tools Channel |
|---|---|---|
| 7 | RHEL Expanded Support 7 | RES7-SUSE-Manager-Tools x86_64 |
| 8 | RHEL or SLES ES or CentOS 8 Base | RES8-Manager-Tools-Pool for x86_64 and RES8-Manager-Tools-Updates for x86_64 |
| 9 | RHEL and Liberty 9 Base | EL9-Manager-Tools-Pool for x86_64 and EL9-Manager-Tools-Updates for x86_64 |
2.5. 檢視 Product 下載過程
以 SUSE Liberty Linux 7 為例,這個 Product 有 3 個必要的 Channel
res7-suse-manager-tools-x86_64
res7-x86_64
rhel-x86_64-server-72.5.1. 檢視下載 res7-suse-manager-tools-x86_64 Channel 的 log 資訊
$ sudo tail -f /var/log/rhn/reposync/res7-suse-manager-tools-x86_64.log螢幕輸出應該要看到類似以下資訊 :
2023/11/06 10:13:14 +08:00 Command: ['/usr/bin/spacewalk-repo-sync', '--channel', 'res7-suse-manager-tools-x86_64', '--type', 'yum', '--non-interactive']
2023/11/06 10:13:14 +08:00 Sync of channel started.
2023/11/06 10:13:23 +08:00 Repo URL: https://updates.suse.com/repo/$RCE/RES7-SUSE-Manager-Tools/x86_64/?<token>
2023/11/06 10:13:23 +08:00 Packages in repo: 1667
2023/11/06 10:13:28 +08:00 Packages already synced: 572
2023/11/06 10:13:28 +08:00 Packages to sync: 1095
2023/11/06 10:13:29 +08:00 New packages to download: 1095
2023/11/06 10:13:29 +08:00 Downloading packages:
2023/11/06 10:13:31 +08:00 1/1095 : golang-github-QubitProducts-exporter_exporter-0.4.0-4.1.x86_64.rpm
...中間省略
2023/11/06 10:17:55 +08:00 1093/1095 : zeromq-devel-4.0.5-14.1.x86_64.rpm
2023/11/06 10:17:55 +08:00 1094/1095 : zeromq-devel-4.0.5-5.1.x86_64.rpm
2023/11/06 10:17:55 +08:00 1095/1095 : zeromq-devel-4.0.5-8.1.x86_64.rpm
...中間省略
2023/11/06 10:17:56 +08:00 Importing packages started.
2023/11/06 10:17:56 +08:00
2023/11/06 10:17:56 +08:00 Importing packages to DB:
2023/11/06 10:21:40 +08:00 Package batch #1 of 55 completed...
...中間省略
2023/11/06 10:28:52 +08:00 Syncing 107 new patch(es) to channel.
2023/11/06 10:28:56 +08:00 Regenerating bootstrap repositories.
2023/11/06 10:30:19 +08:00 Sync completed.- 下載完成後會在 log 檔中看到
Sync completed.代表完成






