SUSE Liberty Linuxクライアントの登録
このセクションでは、SUSE Liberty Linuxオペレーティングシステムを実行しているクライアントの登録について説明します。SUSE Liberty LinuxクライアントはRed Hat Enterprise LinuxまたはCentOSに基づいています。
|
SUSE Liberty Linuxクライアントは、SUSE Linux Enterprise Server with Expanded Support (SLESES)、Liberty、RES、またはRed Hat Expanded Supportとも呼ばれます。 |
SUSEによって提供されるSUSE Liberty Linuxソフトウェアチャンネルは、パッケージの更新のみを提供します。パッケージそのものは提供しません。 SUSE Liberty Linuxクライアントを登録するには、SUSE Liberty Linux製品(概要は以下を参照)を登録して必要なベースチャンネルを作成し、必要なRed HatまたはCentOSパッケージをカスタム子チャンネルとしてインポートする必要があります。 SUSE Liberty Linuxソフトウェアチャンネルで提供される更新を適用する前に、初期パッケージをRed HatまたはCentOSから直接取得する必要があります。
|
|
ユーザは、Red HatまたはCentOSのベースメディアリポジトリおよびインストールメディアをアクセスできるようにする必要があります。 |
|
使用しているすべてのSUSE Liberty Linuxシステムに対してSUSEのサポートを取得する必要があります。 |
1. ソフトウェアチャンネルの追加
SUSE Liberty Linuxクライアントでは、必要なパッケージの一部がRed Hat Enterprise LinuxまたはCentOSのインストールメディアに含まれています。 SUSE Liberty Linuxクライアントを登録するには、その前にこれらのパッケージをインストールする必要があります。
SUSE Liberty Linux製品はSUSE Customer Centerによって提供されます。 これには、クライアントツールパッケージも含まれています。
SUSE Liberty LinuxクライアントをSUSE Multi-Linux Managerサーバに登録する前に、必要なソフトウェアチャンネルを追加して同期する必要があります。
2つの異なるチャンネルセットを選択する必要があります。一方はSUSE Liberty Linux用、他方はクライアントツール用です。
正しいSUSE Liberty Linuxチャンネルに関連付けられているアクティベーションキーが必要です。 アクティベーションキーの詳細については、アクティベーションキーを参照してください。
|
In the following section, descriptions often default to the |
このプロシージャで必要な製品は次のとおりです。
| OS Version | Product Name |
|---|---|
SUSE Liberty Linux 10 |
RHEL or SLES ES and Liberty 10 x86_64 |
SUSE Liberty Linux 9.6 EMS |
SUSE Liberty Linux 9.6 EMS x86_64 |
SUSE Liberty Linux 9 |
RHEL or SLES ES and Liberty 9 x86_64 |
SUSE Liberty Linux 8 |
RHEL or SLES ES or CentOS 8 Base and SUSE Linux Enterprise Server with Expanded Support 8 x86_64 |
SUSE Liberty Linux 7 |
SUSE Linux Enterprise Server with Expanded Support 7 x86_64 |
SUSE Liberty Linux LTSS 7 |
SUSE Linux Enterprise Server with Expanded Support LTSS 7 x86_64 |
SUSE Liberty Linux LTSS for Oracle 7 |
SUSE Linux Enterprise Server with Expanded Support LTSS for Oracle 7 x86_64 |
SUSE Multi-Linux Managerには、追加のソフトウェアが含まれているツールチャンネルが必要です。 このプロシージャは次のツールチャンネルを作成します。
| OS Version | Base Channel | Tools Channel |
|---|---|---|
SUSE Liberty Linux 10 |
RHEL and Liberty 10 Base |
ManagerTools-EL10-Pool for x86_64 and ManagerTools-EL10-Updates for x86_64 |
SUSE Liberty Linux 9.6 EMS |
RHEL and Liberty 9.6 EMS Base |
ManagerTools-EL9-Pool for x86_64 and ManagerTools-EL9-Updates for x86_64 |
SUSE Liberty Linux 9 |
RHEL and Liberty 9 Base |
ManagerTools-EL9-Pool for x86_64 and ManagerTools-EL9-Updates for x86_64 |
SUSE Liberty Linux 8 |
RHEL or SLES ES or CentOS 8 Base |
RES8-Manager-Tools-Pool for x86_64 and RES8-Manager-Tools-Updates for x86_64 |
SUSE Liberty Linux 7 |
RHEL Expanded Support 7 |
RES7-SUSE-Manager-Tools x86_64 |
SUSE Liberty Linux LTSS 7 |
RHEL Expanded Support LTSS 7 |
RES-7-SUSE-Manager-Tools for x86_64 LBT7 |
SUSE Liberty Linux LTSS for Oracle 7 |
RHEL Expanded Support LTSS for Oracle 7 |
RES-7-SUSE-Manager-Tools for x86_64 LBTOL7 |
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 | Client Channel | Tools Channel |
|---|---|---|---|
SUSE Liberty Linux 10 |
el10-pool-x86_64 |
- |
managertools-el10-pool-x86_64 |
SUSE Liberty Linux 9.6 EMS |
el9-pool-x86_64 |
- |
managertools-el9-pool-x86_64 |
SUSE Liberty Linux 9 |
el9-pool-x86_64 |
- |
managertools-el9-pool-x86_64 |
SUSE Liberty Linux 8 |
rhel8-pool-x86_64 |
- |
managertools-el8-pool-x86_64 |
SUSE Liberty Linux 7 |
rhel-x86_64-server-7 |
- |
managertools-el7-pool-x86_64 |
SUSE Liberty Linux LTSS 7 |
res-7-ltss-updates-x86_64 |
- |
res-7-suse-manager-tools-x86_64-lbt7 |
SUSE Liberty Linux LTSS for Oracle 7 |
res-7-ol-ltss-updates-x86_64 |
- |
res-7-suse-manager-tools-x86_64-lbtol7 |
1.1. Add base media
SUSE Liberty Linuxソフトウェアチャンネルは、パッケージの更新のみを提供します。パッケージそのものは提供しません。SUSE Liberty Linuxクライアントを登録するには、まずSUSE Liberty Linux製品(概要は以下を参照)を登録してベースチャンネルを作成し、必要なRed HatまたはCentOS パッケージをカスタム子チャンネルとしてインポートする必要があります。SUSE Liberty Linuxから更新を適用する前に、初期パッケージをRed HatまたはCentOSから直接取得する必要があります。重要な点として、Red Hatサブスクリプションを保持する必要がありませんが、移行に伴ってRed Hat への継続的な支払い義務が生じるかどうかを法務部門に問い合わせてください。必要なパッケージをすべて揃えるため、最小限のイメージまたはJeOSイメージではなく、完全なDVDイメージを使用してください。
SUSE Multi-Linux Managerカスタムチャンネルを使用して、Red Hat Enterprise LinuxまたはCentOSのメディアを設定できます。 ベースメディアのすべてのパッケージは、子チャンネルにミラーリングする必要があります。
チャンネルの名前は自由に選択できます。
SUSE Multi-Linux ManagerサーバのWeb UIで、に移動します。
チャンネルの作成をクリックし、チャンネルに適切なパラメータを設定します。
In the
Parent Channelfield, select the appropriate base channel.チャンネルの作成をクリックします。
作成する必要があるすべてのチャンネルで繰り返します。 各カスタムリポジトリに1つのカスタムチャンネルが必要です。
該当するすべてのチャンネルとリポジトリを作成したことを確認できます。そのためには、に移動します。
|
For Red Hat 10, 9 and 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. |
If you are using modular channels, 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.
You must use the original installation media from Red Hat. You must use a major version release (for example
7), not a minor release (for example7.9).
Copy the base media image to the SUSE Multi-Linux Manager Server container host to the
/tmp/directory.ベースメディアイメージをSUSE Multi-Linux Manager Serverコンテナに取得するには、次のコマンドを使用します。
mgradm distribution copy /tmp/rhel-server-7.0-x86_64-dvd.iso rhel-server-7.0The destination in the container will be
/srv/www/distributions/rhel-server-7.0.前に作成した子チャンネルにパッケージをインポートします。
mgrctl exec -- spacewalk-repo-sync -c <channel-label> -u file:///srv/www/distributions/rhel-server-7.0/
バージョン9および8クライアントの場合は、ラベルとディレクトリを適宜調整し、さらにベースチャンネルとAppStreamチャンネルの両方を同期します。
mgrctl exec -- spacewalk-repo-sync -c <channel-label> -u file:///srv/www/distributions/rhel-server-9.0/BaseOS
mgrctl exec -- spacewalk-repo-sync -c <channel-label> -u file:///srv/www/distributions/rhel-server-9.0/AppStream
または
mgrctl exec -- spacewalk-repo-sync -c <channel-label> -u file:///srv/www/distributions/rhel-server-8.0/BaseOS
mgrctl exec -- spacewalk-repo-sync -c <channel-label> -u file:///srv/www/distributions/rhel-server-8.0/AppStream
1.1.1. OPTIONAL: Add base media from a content URL
または、Red Hat CDNまたはCentOSが提供するコンテンツURLにアクセスできる場合、カスタムリポジトリを作成してパッケージをミラーリングできます。
このプロシージャに必要な詳細は次のとおりです。
| Option | Parameter |
|---|---|
Repository URL |
The content URL provided by Red Hat CDN or CentOS |
Has Signed Metadata? |
Uncheck all Red Hat Enterprise repositories |
SSL CA Certificate |
|
SSL Client Certificate |
|
SSL Client Key |
|
SUSE Multi-Linux ManagerサーバのWeb UIで、に移動します。
リポジトリの作成をクリックし、リポジトリに適切なパラメータを設定します。
リポジトリの作成をクリックします。
作成する必要があるすべてのリポジトリで繰り返します。
すべてのチャンネルを作成済みの場合、これらのチャンネルを、作成したリポジトリと関連付けできます。
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.今すぐ同期をクリックし、すぐに同期を開始します。
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.
tailを実行する前に利用可能なログを一覧表示するには、コンテナホストで次のコマンドを実行します。
mgrctl exec ls /var/log/rhn/reposync/SUSE Multi-Linux Managerコンテナホストのコマンドプロンプトで、rootとして、チャンネルログファイルの同期を確認します。
mgrctl exec -ti -- tail -f /var/log/rhn/reposync/<channel-label>.log同期の進行中に各子チャンネルは独自のログを生成します。 同期が完了したことを確認するには、ベースチャンネルと子チャンネルのログファイルをすべて確認する必要があります。
|
SUSE Liberty Linuxチャンネルは非常に大きいことがあります。 最初のチャンネル同期は数時間かかる場合があります。 最初の同期が完了したとき、このチャンネルを使用する前にチャンネルを複製することをお勧めします。 この操作を実行すると、元の同期データのバックアップを作成できます。 |
3. SUSE Liberty Linuxクライアントの登録
クライアントを登録するには、ブートストラップリポジトリが必要です。 デフォルトでは、ブートストラップリポジトリは自動的に作成され、すべての同期製品に対して毎日再生成されます。 コンテナホストのコマンドプロンプトからブートストラップリポジトリを手動で作成できます。
mgrctl exec -ti mgr-create-bootstrap-repo
クライアントの登録については、クライアントの登録を参照してください。
4. Enterprise Linux (EL)クライアントをSUSE Liberty Linuxに移行する
Red Hat Enterprise LinuxやCentOSなどのEnterprise Linux (EL)クライアントがすでにSUSE Multi-Linux Managerのminionとして登録されており、ユーザがそれをSUSE Liberty Linuxに移行したい場合は、再アクティベーションキーを使用して、移行を推進するアクティベーションキーを適用できます。
再アクティベーションキーの詳細については、client-configuration:activation-keys.adoc#activation-keys-reactivationを参照してください。
再アクティベーションキーはminionごとにあり、Web UIまたはAPIを使用して生成できます。 詳細については、https://documentation.suse.com/multi-linux-manager/5.1/api/suse-manager/api/system.html#apidoc-system-obtainReactivationKey-loggedInUser-sidを参照してください。
クライアントを再アクティベーションするには、ユーザはクライアント上でブートストラップスクリプトを実行し、再アクティベーションキーを環境変数として渡します。 例:
REACTIVATION_KEY=<KEY> ./bootstrap_liberate9.sh
Another method is to add some special flags to the Salt client configuration file located at /etc/venv-salt-minon/minion.d/susemanager.conf (or /etc/salt-minon/minion.d/susemanager.conf) the following content (join this content with the already existing one):
grains:
susemanager:
activation_key: "<KEY_ID>"
management_key: "MINION_REACTIVATION_KEY"
After changing the susemanager.conf file, the salt-minion service needs to be restarted on the Salt server. By default with:
systemctl restart venv-salt-minon
レガシのSaltの場合は、以下を使用します。
systemctl restart salt-minon
4.1. The liberate formula
Migrating Enterprise Linux (EL) clients to SUSE Liberty Linux with the liberate formula. For more information, see Liberate Formula.