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.
사용자 정의 구성 파일을 사용하여 배포하는 방법에 대한 자세한 내용은 mgradm을 사용한 사용자 정의 YAML 구성 및 배포에서 확인할 수 있습니다.
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 사용자 또는 루트로 다음 명령을 실행합니다.
sudo mgradm install컨테이너를 sudo 또는 루트로 배포해야 합니다. 이 단계를 건너뛰면 터미널에 다음과 같은 오류가 표시됩니다.
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.
컨테이너의 모든 영구 볼륨 목록은 다음을 참조하십시오.