CentOSクライアントの登録

このセクションでは、CentOSオペレーティングシステムを実行しているクライアントの登録について説明します。

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

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

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

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

CentOSベースメディアリポジトリとCentOSインストールメディアへのアクセス管理、およびSUSE Multi-Linux ManagerサーバのCentOSコンテンツデリバリネットワークへの接続は、ユーザが行います。

Registering CentOS clients to SUSE Multi-Linux Manager is tested with the default SELinux configuration of enforcing with a targeted policy. You do not need to disable SELinux to register CentOS clients to SUSE Multi-Linux Manager.

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

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

現在サポートされているアーキテクチャは、「x86_64」と「aarch64」です。 サポートされている製品およびアーキテクチャの完全な一覧については、サポートされているクライアントと機能を参照してください。

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

たとえば、「x86_64」アーキテクチャを使用する場合は、次の製品が必要です。

Table 1. CentOS製品 - WebUI
OSバージョン 製品名

CentOS 7

CentOS 7 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. 製品の追加をクリックし、製品の同期が完了するまで待機します。

または、コマンドプロンプトでチャンネルを追加できます。 このプロシージャで必要なチャンネルは次のとおりです。

Table 2. CentOSチャンネル - CLI
OSバージョン ベースチャンネル

CentOS 7

centos7-x86_64

プロシージャ: コマンドプロンプトからのソフトウェアチャンネルの追加
  1. SUSE Multi-Linux Managerコンテナホストのコマンドプロンプトで、 root として、適切なチャンネルを追加します。

    mgrctl exec -- mgr-sync add channel <channel_label_1>
    mgrctl exec -- mgr-sync add channel <channel_label_2>
    mgrctl exec -- mgr-sync add channel <channel_label_n>
  2. 同期は自動的に開始されます。 チャンネルを手動で同期する場合、次のコマンドを使用します。

    mgrctl exec -- mgr-sync sync --with-children <channel_name>
  3. 続行前に、同期が完了していることを確認してください。

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チャンネルの間のAppStreamチャンネルで利用できるパッケージ数に不一致が発生する場合があります。 また、同時に別の場所で追加したチャンネルを比較すると、数値が異なる場合もあります。 CentOSでリポジトリを管理する方法が原因です。 CentOSでは新しいバージョンがリリースされると古いバージョンのパッケージが削除されますが、SUSE Multi-Linux Managerでは経過年数に関係なくすべてのバージョンが保持されます。

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

3. アクティベーションキーの作成

CentOSチャンネルと関連付けられているアクティベーションキーを作成する必要があります。

アクティベーションキーの詳細については、アクティベーションキーを参照してください。

4. GPGキーの管理

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

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

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

5. クライアントの登録

CentOS 7 will fail to onboard due to the fact that the /etc/yum.repos.d/CentOS-Base.repo has URLs enabled, and thus causing yum to attempt to find the repositories using fastmirror. This will cause the bootstrap to fail with the error message:

Could not resolve host: mirrorlist.centos.org; Unknown error

To avoid the issue you can remove the CentOS-Base.repo file with the command:

rm -f /etc/yum.repos.d/CentOS-Base.repo

Or, if the file needs to remain, you can add enabled=0 to each of the URL sections.

どちらも場合も、再ブートストラップします。

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

mgrctl exec -ti mgr-create-bootstrap-repo

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