CDNでRed Hat Enterprise 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:

SUSE Linux Enterprise Server with Expanded Supportを使用するのではなく、Red Hat Enterprise Linuxクライアントを直接実行している場合、Red Hatソースを使用してパッケージを取得および更新する必要があります。

このセクションでは、Red Hat Enterprise Linuxオペレーティングシステムを実行しているRed Hatコンテンツデリバリネットワーク(CDN)の登録について説明します。

代わりにRed Hat更新インフラストラクチャ(RHUI)を使用する方法については、RHUIでRed Hat Enterprise Linuxクライアントを登録するを参照してください。

Red Hat Enterprise LinuxクライアントはRed Hatに基づいていて、SUSE Linux Enterprise Server with Expanded Support、RES、またはSUSE Linux Enterprise Serverとは関係ありません。

Red Hat Enterprise Linuxクライアントは、Red Hatに基づいていて、SUSE Linux Enterprise Server with Expanded Support、RES、またはSUSE Linux Enterprise Serverとは関係がありません。 Red HatベースメディアリポジトリとRHELインストールメディアへのアクセス管理、およびSUSE Multi-Linux ManagerサーバのRed Hatコンテンツデリバリネットワークへの接続は、ユーザが行います。使用しているすべてのRHELシステムに対してRed Hatのサポートを取得する必要があります。これを実行しないと、Red Hatの条項に違反となる場合があります。

1. エンタイトルメントと証明書のインポート

Red Hatクライアントには、Red Hat認証局(CA)、エンタイトルメント証明書、およびエンタイトルメントキーが必要です。

エンタイトルメント証明書には、有効期限が埋め込まれていて、この期限はサポートサブスクリプションの期間と一致しています。 中断を回避するには、サポートサブスクリプション期間の終わりのたびにこのプロセスを繰り返す必要があります。

Red Hatには、サブスクリプション割り当てを管理するためのサブスクリプションマネージャツールが用意されています。 このツールはローカルに実行され、インストール済みの製品およびサブスクリプションを追跡します。 クライアントは、サブスクリプションマネージャで登録して証明書を取得する必要があります。

Red Hatクライアントは、URLを使用してリポジトリを複製します。 URLは、Red Hatクライアントを登録した場所に応じて変わります。

Red Hatクライアントは次の3種類の方法で登録できます。

  • redhat.comにあるRed Hatコンテンツデリバリネットワーク(CDN)

  • Red Hatサテライトサーバ

  • クラウドのRed Hat更新インフラストラクチャ(RHUI)

このガイドでは、Red HatCDNに登録されるクライアントについて説明します。 リポジトリコンテンツの認可済みサブスクリプションを使用して、1つ以上のシステムがCDNに登録されている必要があります。

代わりにRed Hat更新インフラストラクチャ(RHUI)を使用する方法については、RHUIでRed Hat Enterprise Linuxクライアントを登録するを参照してください。

クライアントシステムのサテライト証明書では、サテライトサーバおよびサブスクリプションが必要です。 サテライト証明書を使用するクライアントはSUSE Multi-Linux Managerサーバではサポートされていません。

エンタイトルメント証明書には、有効期限が埋め込まれていて、この期限はサポートサブスクリプションの期間と一致しています。 中断を回避するには、サポートサブスクリプション期間の終わりのたびにこのプロセスを繰り返す必要があります。

Red Hatには、サブスクリプション割り当てを管理するためのサブスクリプションマネージャツールが用意されています。 このツールはクライアントシステムでローカルに実行され、インストール済みの製品およびサブスクリプションを追跡します。 サブスクリプションマネージャを使用してredhat.comを登録し、このプロシージャに従って証明書を取得します。

プロシージャ: クライアントをサブスクリプションマネージャに登録する
  1. クライアントシステムのコマンドプロンプトで、サブスクリプションマネージャツールを使用して登録します。

    subscription-manager register

    プロンプトが表示されたら、Red Hatポータルのユーザ名とパスワードを入力します。

  2. コマンドを実行します。

    subscription-manager activate
  3. SUSE Multi-Linux Managerサーバがアクセスできる場所にエンタイトルメント証明書とキーをクライアントシステムからコピーします。

    cp /etc/pki/entitlement/ /<example>/entitlement/

    Your entitlement certificate and key both have a file extension of .pem. The key also has key in the filename.

  4. Red Hat CA証明書ファイルをクライアントシステムから、エンタイトルメント証明書およびキーと同じWebの場所にコピーします。

    cp /etc/rhsm/ca/redhat-uep.pem /<example>/entitlement

Red Hatクライアントでリポジトリを管理するには、CAおよびエンタイトルメント証明書をSUSE Multi-Linux Managerサーバにインポートする必要があります。 この操作を実行するには、インポートプロシージャを3回実行して、3つのエントリを作成する必要があります。 エンタイトルメント証明書、エンタイトルメントキーおよびRed Hat証明書にそれぞれ1つずつです。

プロシージャ: 証明書をサーバにインポートする
  1. SUSE Multi-Linux ManagerサーバのWeb UIで、システム  自動インストール  GPGキーとSSLキーに移動します。

  2. 格納されているキーまたは証明書の作成をクリックして、エンタイトルメント証明書用に次のパラメータを設定します。

    • In the Description field, type Entitlement-Cert-date.

    • In the Type field, select SSL.

    • In the Select file to upload field, browse to the location where you saved the entitlement certificate, and select the .pem certificate file.

  3. キーの作成をクリックします。

  4. 格納されているキーまたは証明書の作成をクリックして、エンタイトルメントキー用に次のパラメータを設定します。

    • In the Description field, type Entitlement-key-date.

    • In the Type field, select SSL.

    • In the Select file to upload field, browse to the location where you saved the entitlement key, and select the .pem key file.

  5. キーの作成をクリックします。

  6. 格納されているキーまたは証明書の作成をクリックして、Red Hat証明書用に次のパラメータを設定します。

    • In the Description field, type redhat-uep.

    • In the Type field, select SSL.

    • In the Select file to upload field, browse to the location where you saved the Red Hat certificate, and select the certificate file.

  7. キーの作成をクリックします。

2. ソフトウェアチャンネルの追加

Red HatクライアントをSUSE Multi-Linux Managerサーバに登録する前に、必要なソフトウェアチャンネルを追加して同期する必要があります。

In the following section, descriptions often default to the x86_64 architecture. Replace it with other architectures if appropriate.

SUSE Multi-Linux Managerサブスクリプションでは、SUSE Linux Enterprise Server with Expanded Supportのツールチャンネルを使用できます(Red Hat拡張サポートまたはRESとも呼ばれます)。クライアントツールチャンネルを使用してブートストラップリポジトリを作成する必要があります。このプロシージャは、Saltクライアントに適用されます。

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

Table 1. Red Hat製品 - WebUI
OS Version Product Name

Red Hat 10

RHEL and Liberty 10 Base

Red Hat 9

RHEL and Liberty 9 Base

Red Hat 8

RHEL or SLES ES or CentOS 8 Base

Red Hat 7

RHEL7 Base x86_64

プロシージャ: ソフトウェアチャンネルの追加
  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. 製品の追加をクリックし、製品の同期が完了するまで待機します。

3. カスタムリポジトリおよびチャンネルの準備

Red Hat CDNからソフトウェアをミラーリングするには、URLでCDNにリンクされているカスタムチャンネルおよびリポジトリをSUSE Multi-Linux Managerに作成する必要があります。Red Hatポータルでこれらの製品を正しく動作させるには、該当製品のエンタイトルメントが必要です。サブスクリプションマネージャツールを使用して、ミラーリングするリポジトリのURLを取得できます。

subscription-manager repos

これらのリポジトリURLを使用して、カスタムリポジトリを作成できます。 クライアントを管理するために必要なコンテンツのみミラーリングできます。

Red Hatポータルに正しいエンタイトルメントがある場合、Red Hatリポジトリのカスタムバージョンのみ作成できます。

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

Table 2. Red Hatカスタムリポジトリ設定
Option Setting

Repository URL

The content URL provided by Red Hat CDN

Has Signed Metadata?

Uncheck all Red Hat Enterprise repositories

SSL CA Certificate

redhat-uep

SSL Client Certificate

Entitlement-Cert-date

SSL Client Key

Entitlement-Key-date

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

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

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

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

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

Table 3. Red Hatカスタムチャンネル
OS Version Base Product Base Channel

Red Hat 10

RHEL and Liberty 10 Base

el10-pool-x86_64

Red Hat 9

RHEL and Liberty 9 Base

el9-pool-x86_64

Red Hat 8

RHELまたはSLES ESまたはCentOS 8 Base

rhel8-pool-x86_64

Red Hat 7

RHEL7 Base x86_64

rhel7-pool-x86_64

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, Red Hat 9 and Red Hat 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: 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. 今すぐ同期をクリックし、すぐに同期を開始します。

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

プロシージャ: 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. 同期の進行中に各子チャンネルは独自のログを生成します。 同期が完了したことを確認するには、ベースチャンネルと子チャンネルのログファイルをすべて確認する必要があります。

Red Hat Enterprise Linuxチャンネルは非常に大きいことがあります。 同期に数時間かかる場合があります。

プロシージャ: オプション: Salt状態を作成して設定ファイルを展開する
  1. SUSE Multi-Linux ManagerサーバのWeb UIで、設定  チャンネルに移動します。

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

    • In the Name field, type subscription-manager: disable yum plugins.

    • In the Label field, type subscription-manager-disable-yum-plugins.

    • In the Description field, type subscription-manager: disable yum plugins.

    • In the SLS Contents field, leave it empty.

  3. 設定チャンネルの作成をクリックします

  4. 設定ファイルの作成をクリックします

    • In the Filename/Path field type /etc/yum/pluginconf.d/subscription-manager.conf.

    • In the File Contents field type:

      [main]
      enabled=0
  5. 設定ファイルの作成をクリックします

  6. Take note of the value of the field Salt Filesystem Path.

  7. 設定チャンネルの名前をクリックします。

  8. Click on View/Edit 'init.sls' File

    • In the File Contents field, type:

      configure_subscription-manager-disable-yum-plugins:
        cmd.run:
           - name: subscription-manager config --rhsm.auto_enable_yum_plugins=0
           - watch:
             - file: /etc/yum/pluginconf.d/subscription-manager.conf
         file.managed:
           - name: /etc/yum/pluginconf.d/subscription-manager.conf
           - source: salt:///etc/yum/pluginconf.d/subscription-manager.conf
  9. 設定ファイルの更新をクリックします。

The Creating a Salt State to Deploy Configuration Files procedure is optional.

プロシージャ: Red Hat Enterprise Linuxクライアントのシステムグループの作成
  1. SUSE Multi-Linux ManagerサーバのWeb UIで、システム  システムグループに移動します。

  2. グループの作成をクリックします。

    • In the Name field, type rhel-systems.

    • In the Description field, type All RHEL systems.

  3. グループの作成をクリックします。

  4. Click States tab.

  5. Click Configuration Channels tab.

  6. Type subscription-manager: disable yum plugins at the search box.

  7. 検索をクリックして状態を表示します。

  8. Click the checkbox for the state at the Assign column.

  9. 変更点の保存をクリックします。

  10. 確認をクリックします。

RHELシステムをSUSE Multi-Linux Managerに追加済みの場合、これらを新しいシステムグループに割り当て、highstateを適用します。

プロシージャ: システムグループをアクティベーションキーに追加する

RHELシステムで使用したアクティベーションキーを変更して、上記で作成したシステムグループに含めます。

  1. SUSE Multi-Linux ManagerサーバのWeb UIで、システム  アクティベーションキーに移動します。

  2. RHELシステムで使用されるそれぞれのアクティベーションキーをクリックします。

  3. Navigate to the Groups tab, and the Join subtab.

  4. Check Select rhel-systems.

  5. 選択されたグループに参加をクリックします。

5. GPGキーの管理

クライアントではGPGキーを使用して、ソフトウェアパッケージをインストールする前にパッケージ認証の確認が行われます。 信頼されているソフトウェアのみクライアントにインストールできます。

クライアントのセキュリティにとってGPGキーを信頼することは重要です。 必要かつ信頼できるキーを決定するのは管理者のタスクです。 GPGキーが信頼されていない場合、ソフトウェアチャンネルは使用できないため、クライアントにチャンネルを割り当てるかどうかは、キーを信頼するかどうかによって決まります。

GPGキーの詳細については、GPGキーを参照してください。

For the Red Hat custom channels, if you want to check the Enable GPG Check field, you need to populate the GPG Key URL field. You can use the file URL of the GPG key stored in the directory /etc/pki/rpm-gpg of the Red Hat minion.

Red Hat製品署名キーの完全なリストについては、https://access.redhat.com/security/team/keyを参照してください。

6. クライアントの登録

クライアントを登録するには、ブートストラップリポジトリが必要です。 デフォルトでは、ブートストラップリポジトリは自動的に作成され、すべての同期製品に対して毎日再生成されます。 コンテナホストのコマンドプロンプトからブートストラップリポジトリを手動で作成できます。

mgrctl exec -ti mgr-create-bootstrap-repo

クライアントの登録については、クライアントの登録を参照してください。