Raspberry Pi OSクライアントの登録

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

Raspberry Pi OSクライアントでブートストラップを使用して、初期状態の実行、およびプロファイルの更新を行うことができます。

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

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

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

1. 登録の準備

Raspberry Pi OSクライアントをSUSE Multi-Linux Managerサーバに登録するには、その前に準備が必要です。

  • Ensure DNS is correctly configured and provides an entry for the client. Alternatively, you can configure the /etc/hosts files on both the SUSE Multi-Linux Manager Server and the client with the appropriate entries.

  • クライアントは、登録する前にSUSE Multi-Linux Managerサーバと日時が同期されている必要があります。

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

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

現在サポートされているアーキテクチャはarm64です。

たとえば、arm64アーキテクチャを使用する場合は、次のものが必要です。

Table 1. Raspberry Pi OS - WebUI
OS Version Product Name

Raspberry Pi OS 12

Raspberry Pi OS 12 (Tech Preview)

Raspberry Pi OS 13

Raspberry Pi OS 13 (Tech Preview)

プロシージャ: ソフトウェアチャンネルの追加
  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. Raspberry Pi OSチャンネル - CLI
OS Version Base Channel

Raspberry Pi OS 12

raspberrypios-12-pool-arm64

Raspberry Pi OS 13

raspberrypios-13-pool-arm64

プロシージャ: コマンドプロンプトからのソフトウェアチャンネルの追加
  1. With the spacewalk-common-channels command you can add the appropriate channels. At the command prompt on the SUSE Multi-Linux Manager container host, as root, execute the following command:

    mgrctl exec -ti -- spacewalk-common-channels \
    <base_channel_label> \
    <child_channel_label_1> \
    <child_channel_label_2> \
    ... <child_channel_label_n>

    使用可能なすべてのリポジトリを一覧にするには、次のコマンドを実行します。

    mgrctl exec -- spacewalk-common-channels -l
  2. 自動同期がオフになっている場合は、チャンネルを同期します。

    mgrctl exec -ti -- spacewalk-repo-sync -p <base_channel_label>
  3. 続行前に、同期が完了していることを確認してください。

The client tools channel provided by spacewalk-common-channels is sourced from Uyuni and not from SUSE.

Raspberry Pi OSクライアントをブートストラップする前に、新しいチャンネルはすべて完全に同期されている必要があります。

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

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

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

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

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

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

5. GPGキーの管理

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

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

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

Raspberry Pi OSクライアントをインストールするには、複数のGPGキーが必要な場合があります。

サードパーティのRaspberry Pi OSリポジトリを同期する場合は、適切なGPGキーをサーバにインポートする必要があります。GPGキーがない場合、同期は失敗します。

Raspberry Pi OSリポジトリの場合、メタデータのみが署名されます。したがって、ソフトウェアチャンネルのGPGキーをインポートする必要はありません。パッケージはSUSE Multi-Linux Managerによって再署名されません。

SUSE Multi-Linux ManagerサーバにすでにインポートされているGPGキーを確認するには、次のコマンドを実行します。

mgrctl exec -- gpg --homedir /var/lib/spacewalk/gpgdir --list-keys

新しいGPGキーをインポートするには、次のコマンドを実行します。

mgradm gpg add <filename>.gpg

6. rootアクセス

Raspberry Pi OSのrootユーザはデフォルトでSSHアクセスが無効になっています。

To be able to onboard using a regular user, you need to edit the sudoers file.

プロシージャ: rootユーザアクセスの許可
  1. On the client, edit the sudoers file:

    sudo visudo

    Grant sudo access to the user by adding this line at the end of the sudoers file. Replace <user> with the name of the user that is bootstrapping the client in the Web UI:

    <user>  ALL=NOPASSWD: /usr/bin/python, /usr/bin/python2, /usr/bin/python3, /var/tmp/venv-salt-minion/bin/python

This procedure grants root access without requiring a password, which is required for registering the client. When the client is successfully installed it runs with root privileges, so the access is no longer required. We recommend that you remove the line from the sudoers file after the client has been successfully installed.

7. クライアントの登録

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

mgrctl exec -ti mgr-create-bootstrap-repo

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