SUSE Multi-Linux Manager 5.1サーバの配備
This guide shows you how to install and configure a SUSE Multi-Linux Manager 5.1 container on SL Micro 6.1 or SUSE Linux Enterprise Server 15 SP7.
1. SUSE Multi-Linux Managerのハードウェア要件
次の表に、SUSE Multi-Linux Managerサーバをベースメタルマシンに配備するためのソフトウェアおよびハードウェアの要件を示します。このガイドの目的のためには、マシンに16 GBのRAMと200 GB以上のディスク容量が必要です。ディスク容量に関する背景情報については、ハードウェア要件を参照してください。
Software and Hardware | Recommended |
---|---|
Operating System |
SL Micro 6.1 or SUSE Linux Enterprise Server 15 SP7 |
Architecture |
x86-64, ARM, s390x, ppc64le |
Processor (CPU) |
Minimum of four (4) 64-bit CPU cores |
RAM |
16 GB |
Disk Space |
200 GB |
Channel Requirements |
50 GB per SUSE or openSUSE product 360 GB per Red Hat product |
Swap space: |
3 GB |
サーバコンテナホストでサポートされるオペレーティングシステム
The supported operating system for the container host is SL Micro 6.1 or SUSE Linux Enterprise Server 15 SP7.
|
サーバの配備では、必ず完全修飾ドメイン名(FQDN)を使用する必要があります。ルータまたはネットワークにFQDNのDNSの自動プロビジョニング機能がない場合は、配備プロセスは正常に続行されません。FQDNは通常、<host>.<domain>.comの形式に従います。 例:
詳細については、ネットワーク要件のネットワーク要件のセクションを参照してください。 |
2. 永続ボリューム
SUSE Multi-Linux Manager 5.1では、必要な永続ボリュームがデフォルトで定義されます。これらのボリュームは、まだ存在しない場合、mgradm
ツールによってインストール中に作成されます。
これらのボリュームは/var/lib/containers/storage/volumes/
に作成されます。Podman
はボリュームをデフォルトでここに保存します。
推奨事項
外部ストレージデバイスをこのディレクトリにマウントすると、ストレージを簡単に利用できます。ここには、PostgreSQLデータベース、リポジトリのバイナリパッケージ、キャッシュ、オペレーティングシステムのイメージ、自動インストールディストリビューション、および設定ファイルが保存されるため、次の3つの推奨事項があります。
|
コンテナ内の永続ボリュームのリストについては、Persistent Container Volumesを参照してください。
3. Prepare SUSE Multi-Linux Manager Server Host
You can deploy SUSE Multi-Linux Manager on SL Micro 6.1 or SUSE Linux Enterprise Server 15 SP7. SL Micro is a transactional system, while SUSE Linux Enterprise Server is a full server operating system.
Depending on your decision, either continue with Install SL Micro 6.1 and Deploy Server or with Install SUSE Linux Enterprise Server 15 SP7 and Deploy Server and skip the not selected section.
3.1. Install SL Micro 6.1 and Deploy Server
3.1.1. Download the Installation Media
-
Locate the SL Micro 6.1 installation media at https://www.suse.com/download/sle-micro/.
-
Download
SL-Micro-6.1-DVD-x86_64-GM-Media1.iso
. -
インストール用のDVDまたはUSBフラッシュドライブ(ダウンロードした
.iso
イメージを含む)を準備します。 -
Insert the DVD or USB flash drive (USB disk or key) containing the installation image for SL Micro 6.1.
-
システムをブートまたは再起動します。
For more information about preparing your machines (virtual or physical), see Introduction to SL Micro 6.1 Deployment.
3.1.2. Install SL Micro
-
矢印キーを使用して
インストール
を選択します。 -
キーボードと言語を調整します。
-
チェックボックス
をクリックしてライセンス契約に同意します。 -
次へ
をクリックして続行します。 -
登録方法を選択します。この例では、SUSE Customer Centerを使用してサーバを登録します。
インストール中にSUSE Multi-Linux Managerを拡張機能として登録するSUSE Multi-Linux Manager 5.1コンテナは拡張機能としてインストールされます。以下のリストから必要な特定の拡張機能に応じて、それぞれに追加のSUSE Customer Center登録コードが必要です。
-
SUSE Multi-Linux Manager 5.1サーバ
-
SUSE Multi-Linux Manager 5.1プロキシ
-
Retail Branch Server
The SL Micro 6.1 entitlement is included within the SUSE Multi-Linux Manager entitlement, so it does not require a separate registration code.
-
-
SUSE Customer Centerの電子メールアドレスを入力します。
-
Enter your registration code for SL Micro 6.1.
-
次へ
をクリックして続行します。 -
SUSE Multi-Linux Manager 5.1サーバ拡張機能の
チェックボックス
をオンにします。 -
次へ
をクリックして続行します。 -
SUSE Multi-Linux Manager 5.1サーバ拡張機能の登録コードを入力します。
-
次へをクリックして続行します。
-
NTP設定
ページで、次へをクリックします。 -
Authentication for the System (システムの認証)
ページで、rootユーザのパスワードを入力します。Click 次へをクリックします。 -
インストール設定
ページで、インストールをクリックします。
This concludes installation of SL Micro 6.1 and SUSE Multi-Linux Manager 5.1 as an extension.
3.1.3. コマンドラインからの登録(オプション)
If you added SUSE Multi-Linux Manager 5.1 as an extension during SL Micro 6.1 installation then you can skip this step. However, optionally you may skip registration during SL Micro 6.1 installation by selecting the Skip Registration button. This section provides steps on registering your products after SL Micro 6.1 installation.
-
Register SL Micro 6.1 to SUSE Customer Center from the command line run the following commands on the container host:
transactional-update register -r <reg_code> -e <your_email>
-
Use the registration code you obtained from your SUSE Customer Center account for SL Micro 6.1.
次の手順では、サーバをx86-64アーキテクチャに登録します。そのため、x86-64アーキテクチャの登録コードが必要になります。ARMまたはs390xアーキテクチャを登録する場合は、正しい登録コードを使用してください。
-
Next add the SUSE Multi-Linux Manager Server Extension 5.1 x86_64 Extension. List available extensions with the following command:
transactional-update --quiet register --list-extensions
-
Use your SUSE Multi-Linux Manager Server Extension 5.1 x86_64 registration code with the following command:
transactional-update register -p SUSE-Manager-Server/5.1/x86_64 -r <reg_code>
-
再起動します。
3.1.4. システムの更新
-
rootとしてログインします。
-
transactional-updateを実行します。
transactional-update
-
再起動します。
SL Micro is designed to update itself automatically by default and will reboot after applying updates. However, this behavior is not desirable for the SUSE Multi-Linux Manager environment. To prevent automatic updates on your server, SUSE Multi-Linux Manager disables the transactional-update timer during the bootstrap process. If you prefer the SL Micro default behavior, enable the timer by running the following command:
|
To continue with deployment, see カスタム永続ストレージの設定.
3.2. Install SUSE Linux Enterprise Server 15 SP7 and Deploy Server
Alternatively, you can deploy SUSE Multi-Linux Manager on SUSE Linux Enterprise Server 15 SP7.
The following procedure describes the main steps of the installation process.
-
Locate and download SUSE Linux Enterprise Server 15 SP7
.iso
at https://www.suse.com/download/sles/. -
Make sure that the SCC code you plan to use has the Extensions enabled.
-
Start the installation of SUSE Linux Enterprise Server 15 SP7.
-
Language, Keyboard and Product Selection
(言語、キーボードおよび製品の選択)で、インストールする製品を選択します。 -
ライセンス契約
で契約を読み、[I Agree to the License Terms
( ライセンス条項に同意します)にチェックを付けます。
-
-
Select the registration method.
For SUSE Linux Enterprise Server 15 SP7, you are required to have a valid SUSE Linux Enterprise Server subscription and corresponding regcode, which you must provide on this screen. You will be required to enter the SUSE Multi-Linux Manager Extension regcode below.
-
拡張とモジュールの選択
で、以下にチェックを付けます。-
SUSE Multi-Linux Managerサーバの拡張機能
-
ベースシステムモジュール
-
Containersモジュール
-
-
インストールを完了します。
Enter the SUSE Multi-Linux Manager Extension regcode.
-
インストールが完了したら、rootとして新しくインストールしたサーバにログインします。
-
Update the System (optional, if the system was not set to download updates during install):
zypper up
-
再起動します。
-
Log in as root and install
podman
plusmgradm
andmgradm-bash-completion
(if not already automatically installed):zypper install podman mgradm mgradm-bash-completion
-
Start the Podman service by rebooting the system, or running a command:
systemctl enable --now podman.service
To continue with deployment, see カスタム永続ストレージの設定.
4. カスタム永続ストレージの設定
永続ストレージの設定はオプションですが、コンテナのディスクがいっぱいになった状態での深刻な問題を回避する唯一の方法です。mgr-storage-server
ツールを使用してカスタム永続ストレージを設定することを強くお勧めします。
-
詳細については、
mgr-storage-server --help
を参照してください。このツールを使用すると、コンテナストレージとデータベースボリュームの作成が容易になります。このコマンドは次のように使用します。
mgr-storage-server <storage-disk-device> [<database-disk-device>]
例:
mgr-storage-server /dev/nvme1n1 /dev/nvme2n1
このコマンドは、
/var/lib/containers/storage/volumes
に永続ストレージを作成します。詳細については、以下を参照してください。
5. Deploy SUSE Multi-Linux Manager with mgradm
mgradm
を使用してSUSE Multi-Linux Manager 5.1を配備する-
rootとしてログインします。
-
Execute the following command, replacing
<multi-linux-manager.example.com>
with your fully qualified domain name:mgradm install podman <multi-linux-manager.example.com>
上記のコマンドが失敗する場合は、SUSE Multi-Linux Manager 5.1が登録済みであることを確認してください。インストール時に登録をスキップし、ここでコマンドラインから登録する必要がある場合は、次のステップに従ってレジストリにログインします。
podman login -u <EMAIL> -p <REGISTRATION-CODE> registry.suse.com
入力を求められたら、SUSE Multi-Linux Manager 5.1の登録キーを使用します。
-
入力を求められたら、証明書と管理者アカウントのパスワードを入力します。
管理者アカウントのパスワードは長さ5文字以上、48文字未満である必要があります。
-
Enter (入力)を押します。
-
管理者アカウントの電子メールアドレスを入力します。Enter (入力)を押します。
-
配備が完了するまで待ちます。
-
ブラウザを開き、サーバのFQDNに進みます。
-
ユーザ名(デフォルトは
admin
)と、配備プロセス中に設定したパスワードを入力します。
このガイドでは、SUSE Multi-Linux Manager 5.1サーバをコンテナとして配備します。次のセクションに進み、SUSE Customer Centerと同期するために組織の資格情報を追加します。
6. SUSE Customer CenterへのSUSE Multi-Linux Manager 5.1の接続
このセクションでは、Web UIからSCCと同期を取り、最初のクライアントチャンネルを追加する方法について説明します。
-
ブラウザを開き、サーバのFQDNに進みます。
-
ユーザ名(デフォルトは
admin
)と、配備プロセス中に設定したパスワードを入力します。 -
SUSE Multi-Linux ManagerのWeb UIで、
を選択します。 -
[
セットアップウィザード
]ページから、組織の資格情報タブを選択します。 -
Add a new credential(新しい資格情報の追加)をクリックします。
-
ブラウザでSUSE Customer Centerにアクセスします。
-
左側のナビゲーションから自分の組織を選択します。
-
ページの上部から[ユーザ]タブを選択し、組織の資格情報を選択します。
-
ミラーリング資格情報をメモします。
-
SUSE Multi-Linux ManagerのWeb UIに戻り[
ユーザ名
]と[パスワード
]に入力し、保存を押して確定します。
緑色のチェックマークアイコンで資格情報を確認したら、プロシージャ: SUSE Customer Centerと同期するに進みます。
-
Web UIで、
に移動します。 -
[
セットアップウィザード
]ページから[SUSE製品
]タブを選択します。以前にSUSE Customer Centerで登録したことがある場合、製品の一覧が表に入力され始めます。この操作には数分かかる場合があります。右側の[SUSE Customer Centerから製品カタログを更新
]セクションで、操作の進行状況を監視できます。この表は、アーキテクチャ、チャンネル、状態の各情報を一覧表示します。詳細については、ウィザードを参照してください。 -
表示されている製品のリストをフィルタするには、[
製品説明でフィルタ
]および[アーキテクチャでフィルタ
]を使用します。製品ページに一覧表示されたチャンネルによって、クライアントのリポジトリが提供されます。-
各チャンネルの左側にあるチェックボックスをオンにして、チャンネルをSUSE Multi-Linux Managerに追加します。説明の左にある矢印をクリックして、製品を展開し、使用できるモジュールを一覧表示します。
-
ページの上部の製品の追加をクリックして、製品の同期を開始します。
-
チャンネルを追加した後、SUSE Multi-Linux Managerは、チャンネルの同期をスケジュールします。この処理には時間がかかる場合があります。その理由は、SUSE Customer CenterにあるSUSEリポジトリからサーバのローカル/var/lib/containers/storage/volumes/var-spacewalk/
ディレクトリにチャンネルソフトウェアソースをSUSE Multi-Linux Managerでコピーするためです。
チャンネルが完全に同期されると、そのブートストラップリポジトリが自動的に生成されます。このステップは、クライアントを正常にブートストラップし、チャンネルの同期と配布がクライアント側で正常に機能していることを確認するために非常に重要です。これで、SUSE Multi-Linux Managerのインストールと設定、およびクライアントのブートストラップに必要なチャンネルの準備は完了です。
チャンネル同期プロセスが完了したら、SUSE Multi-Linux Manager 5.1プロキシまたは他のクライアントの登録に進むことができます。
詳細手順については、クライアントの登録を参照してください。
7. 管理のためにコンテナに移動する
コンテナ内のシェルに移動するには、コンテナホストで次のコマンドを実行します。
mgrctl term