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を登録し、このプロシージャに従って証明書を取得します。
-
クライアントシステムのコマンドプロンプトで、サブスクリプションマネージャツールを使用して登録します。
subscription-manager register
プロンプトが表示されたら、Red Hatポータルのユーザ名とパスワードを入力します。
-
コマンドを実行します。
subscription-manager activate
-
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 haskeyin the filename. -
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つずつです。
-
SUSE Multi-Linux ManagerサーバのWeb UIで、に移動します。
-
格納されているキーまたは証明書の作成をクリックして、エンタイトルメント証明書用に次のパラメータを設定します。
-
In the
Descriptionfield, typeEntitlement-Cert-date. -
In the
Typefield, selectSSL. -
In the
Select file to uploadfield, browse to the location where you saved the entitlement certificate, and select the.pemcertificate file.
-
-
キーの作成をクリックします。
-
格納されているキーまたは証明書の作成をクリックして、エンタイトルメントキー用に次のパラメータを設定します。
-
In the
Descriptionfield, typeEntitlement-key-date. -
In the
Typefield, selectSSL. -
In the
Select file to uploadfield, browse to the location where you saved the entitlement key, and select the.pemkey file.
-
-
キーの作成をクリックします。
-
格納されているキーまたは証明書の作成をクリックして、Red Hat証明書用に次のパラメータを設定します。
-
In the
Descriptionfield, typeredhat-uep. -
In the
Typefield, selectSSL. -
In the
Select file to uploadfield, browse to the location where you saved the Red Hat certificate, and select the certificate file.
-
-
キーの作成をクリックします。
2. ソフトウェアチャンネルの追加
Red HatクライアントをSUSE Multi-Linux Managerサーバに登録する前に、必要なソフトウェアチャンネルを追加して同期する必要があります。
|
In the following section, descriptions often default to the |
SUSE Multi-Linux Managerサブスクリプションでは、SUSE Linux Enterprise Server with Expanded Supportのツールチャンネルを使用できます(Red Hat拡張サポートまたはRESとも呼ばれます)。クライアントツールチャンネルを使用してブートストラップリポジトリを作成する必要があります。このプロシージャは、Saltクライアントに適用されます。
このプロシージャで必要な製品は次のとおりです。
| 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 |
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.製品の追加をクリックし、製品の同期が完了するまで待機します。
3. カスタムリポジトリおよびチャンネルの準備
Red Hat CDNからソフトウェアをミラーリングするには、URLでCDNにリンクされているカスタムチャンネルおよびリポジトリをSUSE Multi-Linux Managerに作成する必要があります。Red Hatポータルでこれらの製品を正しく動作させるには、該当製品のエンタイトルメントが必要です。サブスクリプションマネージャツールを使用して、ミラーリングするリポジトリのURLを取得できます。
subscription-manager repos
これらのリポジトリURLを使用して、カスタムリポジトリを作成できます。 クライアントを管理するために必要なコンテンツのみミラーリングできます。
|
Red Hatポータルに正しいエンタイトルメントがある場合、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 |
|
SSL Client Certificate |
|
SSL Client Key |
|
SUSE Multi-Linux ManagerサーバのWeb UIで、に移動します。
リポジトリの作成をクリックし、リポジトリに適切なパラメータを設定します。
リポジトリの作成をクリックします。
作成する必要があるすべてのリポジトリで繰り返します。
このプロシージャで必要なチャンネルは次のとおりです。
| 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 |
SUSE Multi-Linux ManagerサーバのWeb UIで、に移動します。
チャンネルの作成をクリックし、チャンネルに適切なパラメータを設定します。
In the
Parent Channelfield, select the appropriate base channel.チャンネルの作成をクリックします。
作成する必要があるすべてのチャンネルで繰り返します。 各カスタムリポジトリに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.
すべてのチャンネルを作成済みの場合、これらのチャンネルを、作成したリポジトリと関連付けできます。
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.今すぐ同期をクリックし、すぐに同期を開始します。
4. 同期ステータスの確認
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同期の進行中に各子チャンネルは独自のログを生成します。 同期が完了したことを確認するには、ベースチャンネルと子チャンネルのログファイルをすべて確認する必要があります。
|
Red Hat Enterprise Linuxチャンネルは非常に大きいことがあります。 同期に数時間かかる場合があります。 |
-
SUSE Multi-Linux ManagerサーバのWeb UIで、に移動します。
-
状態チャンネルの作成をクリックします。
-
In the
Namefield, typesubscription-manager: disable yum plugins. -
In the
Labelfield, typesubscription-manager-disable-yum-plugins. -
In the
Descriptionfield, typesubscription-manager: disable yum plugins. -
In the
SLS Contentsfield, leave it empty.
-
-
設定チャンネルの作成をクリックします
-
設定ファイルの作成をクリックします
-
In the
Filename/Pathfield type/etc/yum/pluginconf.d/subscription-manager.conf. -
In the
File Contentsfield type:[main] enabled=0
-
-
設定ファイルの作成をクリックします
-
Take note of the value of the field
Salt Filesystem Path. -
設定チャンネルの名前をクリックします。
-
Click on
View/Edit 'init.sls' File-
In the
File Contentsfield, 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
-
-
設定ファイルの更新をクリックします。
|
The |
-
SUSE Multi-Linux ManagerサーバのWeb UIで、に移動します。
-
グループの作成をクリックします。
-
In the
Namefield, typerhel-systems. -
In the
Descriptionfield, typeAll RHEL systems.
-
-
グループの作成をクリックします。
-
Click
Statestab. -
Click
Configuration Channelstab. -
Type
subscription-manager: disable yum pluginsat the search box. -
検索をクリックして状態を表示します。
-
Click the checkbox for the state at the
Assigncolumn. -
変更点の保存をクリックします。
-
確認をクリックします。
RHELシステムをSUSE Multi-Linux Managerに追加済みの場合、これらを新しいシステムグループに割り当て、highstateを適用します。
RHELシステムで使用したアクティベーションキーを変更して、上記で作成したシステムグループに含めます。
-
SUSE Multi-Linux ManagerサーバのWeb UIで、に移動します。
-
RHELシステムで使用されるそれぞれのアクティベーションキーをクリックします。
-
Navigate to the
Groupstab, and theJoinsubtab. -
Check
Select rhel-systems. -
選択されたグループに参加をクリックします。
5. GPGキーの管理
クライアントではGPGキーを使用して、ソフトウェアパッケージをインストールする前にパッケージ認証の確認が行われます。 信頼されているソフトウェアのみクライアントにインストールできます。
|
クライアントのセキュリティにとってGPGキーを信頼することは重要です。 必要かつ信頼できるキーを決定するのは管理者のタスクです。 GPGキーが信頼されていない場合、ソフトウェアチャンネルは使用できないため、クライアントにチャンネルを割り当てるかどうかは、キーを信頼するかどうかによって決まります。 |
GPGキーの詳細については、GPGキーを参照してください。
|
For the Red Hat custom channels, if you want to check the Red Hat製品署名キーの完全なリストについては、https://access.redhat.com/security/team/keyを参照してください。 |
6. クライアントの登録
クライアントを登録するには、ブートストラップリポジトリが必要です。 デフォルトでは、ブートストラップリポジトリは自動的に作成され、すべての同期製品に対して毎日再生成されます。 コンテナホストのコマンドプロンプトからブートストラップリポジトリを手動で作成できます。
mgrctl exec -ti mgr-create-bootstrap-repo
クライアントの登録については、クライアントの登録を参照してください。