SUSE Multi-Linux Manager Server Deployment on openSUSE Tumbleweed
1. 配備の準備
In this section, you will gain expertise in setting up and deploying a SUSE Multi-Linux Manager Server. The process encompasses the installation of Podman, Uyuni container utilities, deployment, and then initiating interaction with the container through mgrctl.
|
This section assumes you have already configured an openSUSE Tumbleweed host server, whether it is running on a physical machine or within a virtual environment. |
2. コンテナホストの一般的な要件
一般的な要件については、一般的な要件を参照してください。
An openSUSE Tumbleweed server should be installed from installation media.
このプロシージャは以下で説明されます。
3. コンテナホストの要件
CPU、RAM、およびストレージの要件については、ハードウェア要件を参照してください。
|
クライアントがFQDNドメイン名を解決できることを保証するには、コンテナ化されたプロキシとホストマシンの両方が、機能しているDNSサーバにリンクされている必要があります。さらに、リバース参照が正しく設定されていることを確認することも重要です。 |
4. コンテナで使用するためにUyuniツールをインストールする
On your local host, open a terminal window and log in.
Add the following repository to your openSUSE Tumbleweed server. You might need to use
sudofor the following commands.zypper ar https://download.opensuse.org/repositories/systemsmanagement:/Uyuni:/Stable/images/repo/Uyuni-Server-POOL-$(arch)-Media1/ uyuni-server-stableRefresh the repository list and import the key:
zypper refWhen prompted, trust and import the new repository GPG key.
コンテナツールをインストールします。
zypper in mgradm mgrctl mgradm-bash-completion mgrctl-bash-completion uyuni-storage-setup-server
Uyuniコンテナユーティリティの詳細については、Uyuniコンテナユーティリティを参照してください。
5. カスタム永続ストレージの設定
This step is optional. However, if custom persistent storage is required for your infrastructure, use the mgr-storage-server tool.
For more information, see mgr-storage-server --help. This tool simplifies creating the container storage and database volumes.
このコマンドは次のように使用します。
mgr-storage-server <storage-disk-device> [<database-disk-device>]
例:
mgr-storage-server /dev/nvme1n1 /dev/nvme2n1
|
This command will create the persistent storage volumes at 詳細については、永続コンテナボリュームを参照してください。 |
6. Install and Enable Podman
Before deploying SUSE Multi-Linux Manager, you must install and enable podman.
Log in as root and install:
zypper in podmanStart and enable the Podman service:
systemctl enable --now podman.service
7. Podmanを使用したUyuniコンテナの配備
7.1. mgradm Overview
SUSE Multi-Linux Manager is deployed as a container using the mgradm tool. There are two methods of deploying a SUSE Multi-Linux Manager server as a container. In this section we will focus on basic container deployment.
カスタム設定ファイルを使用した配備の詳細については、YAMLのカスタム設定とmgradmを使用した配備を参照してください。
For additional information, you can explore further by running mgradm --help from the command line.
|
SUSE Multi-Linux Manager server hosts that are hardened for security may restrict execution of files from the 例:
SUSE Multi-Linux Managerの更新では、この回避策が不要になるようにツールが変更されます。 |
-
端末から、sudoユーザまたはrootとして次のコマンドを実行します。
sudo mgradm installコンテナはsudoまたはrootとして配備する必要があります。このステップを省略すると、端末に次のエラーが表示されます。
INF Setting up uyuni network 9:58AM INF Enabling system service 9:58AM FTL Failed to open /etc/systemd/system/uyuni-server.service for writing error="open /etc/systemd/system/uyuni-server.service: permission denied" -
配備が完了するまで待ちます。
-
ブラウザを開き、サーバのFQDNに進みます。
7.2. 永続ボリューム
多くのユーザが永続ボリュームの場所を指定したいと考えています。
|
If you are just testing out SUSE Multi-Linux Manager you do not need to specify these volumes. ボリュームの場所の指定は一般的に、大規模な運用配備で使用されます。 |
By default podman stores its volumes in /var/lib/containers/storage/volumes/.
You can provide custom storage for the volumes by mounting disks on this path or the expected volume path inside it such as: /var/lib/containers/storage/volumes/var-spacewalk. This is especially important for the database and package mirrors.
コンテナ内のすべての永続ボリュームのリストについては、以下を参照してください。