Raspberry Pi OSクライアントの登録
このセクションでは、Raspberry Pi OSオペレーティングシステムを実行しているクライアントの登録について説明します。
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/hostsfiles 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アーキテクチャを使用する場合は、次のものが必要です。
| OS Version | Product Name |
|---|---|
Raspberry Pi OS 12 |
Raspberry Pi OS 12 (Tech Preview) |
Raspberry Pi OS 13 |
Raspberry Pi OS 13 (Tech Preview) |
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.製品の追加をクリックし、製品の同期が完了するまで待機します。
または、コマンドプロンプトでチャンネルを追加できます。
このプロシージャで必要なチャンネルは次のとおりです。
| OS Version | Base Channel |
|---|---|
Raspberry Pi OS 12 |
raspberrypios-12-pool-arm64 |
Raspberry Pi OS 13 |
raspberrypios-13-pool-arm64 |
-
With the
spacewalk-common-channelscommand 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 -
自動同期がオフになっている場合は、チャンネルを同期します。
mgrctl exec -ti -- spacewalk-repo-sync -p <base_channel_label> -
続行前に、同期が完了していることを確認してください。
|
The client tools channel provided by |
|
Raspberry Pi OSクライアントをブートストラップする前に、新しいチャンネルはすべて完全に同期されている必要があります。 |
3. 同期ステータスの確認
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同期の進行中に各子チャンネルは独自のログを生成します。 同期が完了したことを確認するには、ベースチャンネルと子チャンネルのログファイルをすべて確認する必要があります。
|
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.
-
On the client, edit the
sudoersfile:sudo visudo
Grant
sudoaccess to the user by adding this line at the end of thesudoersfile. 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 |
7. クライアントの登録
クライアントを登録するには、ブートストラップリポジトリが必要です。 デフォルトでは、ブートストラップリポジトリは自動的に作成され、すべての同期製品に対して毎日再生成されます。 コンテナホストのコマンドプロンプトからブートストラップリポジトリを手動で作成できます。
mgrctl exec -ti mgr-create-bootstrap-repo
クライアントの登録については、クライアントの登録を参照してください。