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から直接取得する必要があります。

  • SUSE Liberty LinuxリポジトリのURLはSUSE Customer Centerから入手できます

  • パッケージおよびメタデータはSUSEから提供されます

  • サポートされている製品については、サポートテーブルとリリースノートを参照してください。

ユーザは、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 x86_64 architecture. Replace it with other architectures if appropriate.

このプロシージャで必要な製品は次のとおりです。

Table 1. ES製品 - WebUI
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には、追加のソフトウェアが含まれているツールチャンネルが必要です。 このプロシージャは次のツールチャンネルを作成します。

Table 2. ESツールチェンネル
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

プロシージャ: ソフトウェアチャンネルの追加
  1. SUSE Multi-Linux ManagerのWeb UIで、管理  セットアップウィザード  製品に移動します。

  2. 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 recommended toggle is turned on. Click the arrow to see the complete list of related products, and ensure that any extra products you require are checked.

  3. 製品の追加をクリックし、製品の同期が完了するまで待機します。

このプロシージャで必要なチャンネルは次のとおりです。

Table 3. ESチャンネル - CLI
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のメディアを設定できます。 ベースメディアのすべてのパッケージは、子チャンネルにミラーリングする必要があります。

チャンネルの名前は自由に選択できます。

Procedure: Creating custom channels
  1. SUSE Multi-Linux ManagerサーバのWeb UIで、ソフトウェア  管理  チャンネルに移動します。

  2. チャンネルの作成をクリックし、チャンネルに適切なパラメータを設定します。

  3. In the Parent Channel field, select the appropriate base channel.

  4. チャンネルの作成をクリックします。

  5. 作成する必要があるすべてのチャンネルで繰り返します。 各カスタムリポジトリに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.

Procedure: Adding base media to custom channels (RHEL 7.0 example)

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 example 7.9).

  1. Copy the base media image to the SUSE Multi-Linux Manager Server container host to the /tmp/ directory.

  2. ベースメディアイメージをSUSE Multi-Linux Manager Serverコンテナに取得するには、次のコマンドを使用します。

    mgradm distribution copy /tmp/rhel-server-7.0-x86_64-dvd.iso rhel-server-7.0

    The destination in the container will be /srv/www/distributions/rhel-server-7.0.

  3. 前に作成した子チャンネルにパッケージをインポートします。

    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にアクセスできる場合、カスタムリポジトリを作成してパッケージをミラーリングできます。

このプロシージャに必要な詳細は次のとおりです。

Table 4. ESカスタムリポジトリ設定
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

redhat-uep (Red Hat only)

SSL Client Certificate

Entitlement-Cert-date (Red Hat only)

SSL Client Key

Entitlement-Key-date (Red Hat only)

Procedure: Creating custom repositories
  1. SUSE Multi-Linux ManagerサーバのWeb UIで、ソフトウェア  管理  リポジトリに移動します。

  2. リポジトリの作成をクリックし、リポジトリに適切なパラメータを設定します。

  3. リポジトリの作成をクリックします。

  4. 作成する必要があるすべてのリポジトリで繰り返します。

すべてのチャンネルを作成済みの場合、これらのチャンネルを、作成したリポジトリと関連付けできます。

Procedure: Associating channels with repositories
  1. SUSE Multi-Linux ManagerサーバのWeb UIで、ソフトウェア  管理  チャンネルに移動し、関連付けるチャンネルをクリックします。

  2. Navigate to the Repositories tab, and check the repository to associate with this channel.

  3. リポジトリの更新をクリックし、チャンネルとリポジトリを関連付けます。

  4. 関連付ける必要があるすべてのチャンネルとすべてのリポジトリを繰り返します。

  5. OPTIONAL: Navigate to the Sync tab to set a recurring schedule for synchronization of this repository.

  6. 今すぐ同期をクリックし、すぐに同期を開始します。

2. 同期ステータスの確認

プロシージャ: Web UIからの同期の進捗状況の確認
  1. In the SUSE Multi-Linux Manager Web UI, navigate to Admin  Setup Wizard and select the Products tab. This dialog displays a completion bar for each product when they are being synchronized.

  2. Alternatively, you can navigate to Software  Manage  Channels, then click the channel associated to the repository. Navigate to the Repositories tab, then click Sync and check Sync Status.

プロシージャ: コマンドプロンプトから同期の進捗状況を確認する
  1. tailを実行する前に利用可能なログを一覧表示するには、コンテナホストで次のコマンドを実行します。

    mgrctl exec ls /var/log/rhn/reposync/
  2. SUSE Multi-Linux Managerコンテナホストのコマンドプロンプトで、rootとして、チャンネルログファイルの同期を確認します。

    mgrctl exec -ti -- tail -f /var/log/rhn/reposync/<channel-label>.log
  3. 同期の進行中に各子チャンネルは独自のログを生成します。 同期が完了したことを確認するには、ベースチャンネルと子チャンネルのログファイルをすべて確認する必要があります。

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.