SUSE Multi-Linux Manager Server Migration to a Containerized Environment
1. Requirements and Considerations
1.1. General
-
To migrate a SUSE Multi-Linux Manager 4.3 Server to a container, you require a new machine with SL Micro 6.1 or SUSE Linux Enterprise Server 15 SP7 and
mgradm
installed. -
An in-place migration from SUSE Multi-Linux Manager 4.3 to 5.1 is not supported, regardless of whether the chosen host operating system is SL Micro 6.1 or SUSE Linux Enterprise Server 15 SP7.
Before migrating from SUSE Multi-Linux Manager 4.3 to 5.1, any existing traditional clients including the traditional proxies must be migrated to Salt. For more information about migrating traditional SUSE Multi-Linux Manager 4.3 clients to Salt clients, see https://documentation.suse.com/suma/4.3/en/suse-manager/client-configuration/contact-methods-migrate-traditional.html.
-
Traditional contact protocol is no longer supported in SUSE Multi-Linux Manager 5.0 and later.
This guide only covers the migration from SUSE Multi-Linux Manager 4.3 to 5.1. Migrating an existing SUSE Multi-Linux Manager 5.1 instance to the same version while switching the host operating system from SL Micro 6.1 to SUSE Linux Enterprise Server 15 SP7, or vice versa, is not handled by the |
1.2. Hostnames
-
The current migration procedure does not include functionality for renaming hostnames. As a result, the fully qualified domain name (FQDN) of the new server will remain the same as that of the old server.
-
The IP address must remain unchanged to ensure that the clients can contact the server.
After the migration, it will be necessary to manually update the DHCP and DNS records to point to the new server.
1.3. GPG Keys
-
Self trusted GPG keys are not migrated.
-
GPG keys that are trusted in the RPM database only are not migrated. Thus synchronizing channels with
spacewalk-repo-sync
can fail. -
관리자는 실제 서버 마이그레이션을 수행한 후 이러한 키를 4.3 설치에서 컨테이너 호스트로 수동으로 마이그레이션해야 합니다.
Procedure: Manual Migration of the 4.3 GPG Keys to New Server-
4.3 서버의 키를 새 서버의 컨테이너 호스트로 복사합니다.
-
그 후,
mgradm gpg add <PATH_TO_KEY_FILE>
명령을 사용하여 마이그레이션된 서버에 각 키를 추가합니다.
-
2. 마이그레이션
2.1. Prepare SUSE Multi-Linux Manager 5.1 Server Host
Do not pre-install SUSE Multi-Linux Manager on the prepared SL Micro 6.1 or SUSE Linux Enterprise Server 15 SP7 system. The migration process is designed to perform the server installation automatically. Running In the following steps, we are only preparing the host system, not installing the actual SUSE Multi-Linux Manager 5.1 Server. |
2.1.1. Prepare SL Micro 6.1 Host
2.1.1.1. Download the installation media
-
Locate the SL Micro 6.1 installation media at https://www.suse.com/download/sle-micro/, and download the appropriate media file.
-
설치하기 위해 다운로드한
.iso
이미지가 들어 있는 DVD 또는 USB 플래시 드라이브를 준비합니다.
2.1.1.2. Install SL Micro 6.1
For more information about preparing your machines (virtual or physical), see the SL Micro Deployment Guide.
-
Insert the DVD or USB flash drive (USB disk or key) containing the installation image for SLE Micro 6.1.
-
시스템을 부팅하거나 재부팅합니다.
-
화살표 키를 사용하여
설치
를 선택합니다. -
Adjust Keyboard and language.
-
확인란
을 클릭하여 라이선스 계약에 동의합니다. -
다음
을 클릭하여 계속합니다. -
Select the registration method. For this example, we will register the server with SUSE Customer Center.
The SUSE Multi-Linux Manager 5.1 containers are installed as extensions. Depending on the specific extension needed from the list below, additional SUSE Customer Center registration codes will be required for each.
-
SUSE Multi-Linux Manager 5.1 서버
-
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.
-
-
Enter your SUSE Customer Center email address.
-
Enter your registration code for SL Micro 6.1.
-
다음
을 클릭하여 계속합니다. -
To install a proxy, select the SUSE Multi-Linux Manager 5.1 Proxy extension; to install a server, select the SUSE Multi-Linux Manager 5.1 Server extension
Checkbox
. -
다음
을 클릭하여 계속합니다. -
Enter your SUSE Multi-Linux Manager 5.1 extension registration code.
-
다음을 클릭하여 계속합니다.
-
NTP 구성
페이지에서 다음을 클릭합니다. -
시스템 인증
페이지에서 루트 사용자의 비밀번호를 입력합니다. 다음을 클릭합니다. -
설치 설정
페이지에서 설치를 클릭합니다.
This concludes installation of SL Micro 6.1 and SUSE Multi-Linux Manager 5.1 as an extension.
2.1.1.3. OPTIONAL: Registration from the command line
If you added SUSE Multi-Linux Manager 5.1 as an extension during SL Micro 6.1 installation then you can skip this procedure. 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.
The following steps register a SUSE Multi-Linux Manager 5.1 extension with the x86-64 architecture and thus require a registration code for the x86-64 architecture. To register ARM or s390x architectures use the correct registration code. |
-
List available extensions with the following command:
transactional-update --quiet register --list-extensions
-
From the list of available extensions, select the one you wish to install:
-
If installing the Server, use your SUSE Multi-Linux Manager Server Extension 5.1 x86_64 registration code with following command:
transactional-update register -p Multi-Linux-Manager-Server/5.1/x86_64 -r <reg_code>
-
If installing the Proxy, use your SUSE Multi-Linux Manager Proxy Extension 5.1 x86_64 registration code with following command:
transactional-update register -p Multi-Linux-Manager-Proxy/5.1/x86_64 -r <reg_code>
-
-
재부팅합니다.
2.1.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:
|
2.1.2. Prepare SUSE Linux Enterprise Server 15 SP7 Host
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 you have regsistration codes both for the host operating system (SUSE Linux Enterprise Server 15 SP7) and extensions
-
Start the installation of SUSE Linux Enterprise Server 15 SP7.
-
On the
Language, keyboard and product selection
select the product to install. -
라이선스 계약
에서 계약서를 읽고라이선스 약관에 동의합니다
에 체크 표시합니다.
-
-
Select the registration method. For this example, we will register the server with SUSE Customer Center.
-
Enter your SUSE Customer Center email address.
-
Enter your registration code for SUSE Linux Enterprise Server 15 SP7.
-
다음
을 클릭하여 계속합니다.Please note that for SUSE Linux Enterprise Server 15 SP7, you are required to have a valid SUSE Linux Enterprise Server subscription and corresponding registration code, which you must provide on this screen. You will be required to enter the SUSE Multi-Linux Manager Extension registration code below.
-
In the screen
Extensions and Modules Selection
check the following:-
Select the SUSE Multi-Linux Manager Server Extension to install the Server, or the SUSE Multi-Linux Manager Proxy Extension to install the Proxy.
-
Basesystem Module
-
Containers Module
-
-
다음
을 클릭하여 계속합니다. -
Enter your SUSE Multi-Linux Manager 5.1 extension registration code.
-
다음을 클릭하여 계속합니다.
-
설치를 완료합니다.
-
When the installation completes, log in to the newly installed server as 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
2.2. SSH Connection Preparation
This step ensures that the new SUSE Multi-Linux Manager 5.1 Server can connect to the existing 4.3 Server over SSH without requiring a password. It involves generating and configuring SSH keys, setting up an SSH agent, and copying the public key to the old server. This setup is required for the migration process to run without manual intervention.
-
새 5.1 서버에
root
에 대한 SSH 키가 있는지 확인합니다. 키가 없는 경우 다음을 사용하여 키를 만듭니다.ssh-keygen -t rsa
-
The SSH configuration and agent should be ready on the new server for a connection to the 4.3 server that does not prompt for a password.
eval $(ssh-agent); ssh-add
To establish a connection that does not prompt for a password, the migration script relies on an SSH agent running on the new server. If the agent is not active yet, initiate it by running
eval $(ssh-agent)
. Then add the SSH key to the running agent withssh-add
followed by the path to the private key. You will be prompted to enter the password for the private key during this process. -
ssh-copy-id
를 사용하여 SUSE Multi-Linux Manager 4.3 서버(<oldserver.fqdn>
)에 공개 SSH 키를 복사합니다.<oldserver.fqdn>
을 4.3 서버의 FQDN으로 바꿉니다.ssh-copy-id <old server.fqdn>
The SSH key will be copied into the old server’s
~/.ssh/authorized_keys
file. For more information, see thessh-copy-id
manpage. -
새 서버에서 기존 SUSE Multi-Linux Manager 서버로 SSH 연결을 설정하여 비밀번호가 필요하지 않은지 확인합니다. 호스트 지문에도 문제가 없어야 합니다. 문제가 있는 경우
~/.ssh/known_hosts
파일에서 기존 지문을 제거합니다. 그런 다음 다시 시도합니다. 지문은 로컬~/.ssh/known_hosts
파일에 저장됩니다.
2.3. 마이그레이션 수행
When planning your migration from SUSE Multi-Linux Manager 4.3 to SUSE Multi-Linux Manager 5.1, ensure that your target instance meets or exceeds the specifications of the old setup.
This includes, but is not limited to, memory (RAM), CPU Cores, Storage, and Network Bandwidth.
-
This step is optional. If custom persistent storage is required for your infrastructure, use the
mgr-storage-server
tool. For more information aboutmgr-storage-server
, see installation-and-upgrade:hardware-requirements.adoc#install-hardware-requirements-storage. -
새 SUSE Multi-Linux Manager 서버를 설치하려면 다음 명령을 실행합니다. <oldserver.fqdn>은 4.3 서버의 FQDN으로 대체합니다.
Make sure to upgrade your 4.3 server and apply all available updates before starting the migration process. Additionally, remove any unnecessary channels to help reduce the overall migration time.
The migration can take a very long time depending on the amount of data that needs to be replicated. To reduce downtime it is possible to run the migration multiple times in a process of initial replication, re-replication, or final replication and switch over while all the services on the old server can stay up and running.
Only during the final migration the processes on the old server need to be stopped.
For all non-final replications add the parameter
--prepare
to prevent the automatic stopping the services on the old server. For example on SUSE Multi-Linux Manager server:mgradm migrate podman <oldserver.fqdn> --prepare
-
Stop the SUSE Multi-Linux Manager services on 4.3 Server:
spacewalk-service stop
-
Stop the PostgreSQL service on 4.3 Server:
systemctl stop postgresql
-
Perform the migration on SUSE Multi-Linux Manager server
mgradm migrate podman <oldserver.fqdn>
-
신뢰할 수 있는 SSL CA 인증서를 마이그레이션합니다.
2.3.1. Migration of the Certificates
Trusted SSL CA certificates that were installed as part of an RPM and stored on SUSE Multi-Linux Manager 4.3 in the /usr/share/pki/trust/anchors/
directory will not be migrated. Because SUSE does not install RPM packages in the container, the administrator must migrate these certificate files manually from the 4.3 installation after the migration.
-
4.3 서버에서 새 서버로 파일을 복사합니다. 예를 들어
/local/ca.file
일 수 있습니다. -
다음을 사용하여 파일을 컨테이너에 복사합니다.
mgrctl cp /local/ca.file server:/etc/pki/trust/anchors/
To redirect them to the 5.1 server, it is required to rename the new server at the infrastructure level (DHCP and DNS) to use the same FQDN and IP address as 4.3 server. Adjusting the IP address can be avoided if the latest version of the minion is installed on the clients, as the newer version can automatically re-connect with the server using only the FQDN. |
SUSE Multi-Linux Manager 5.1 introduces a rebranded set of client tools for all supported operating systems. This transition is seamless, and users performing a new product synchronization should only notice the updated channel names. Channels named Although the legacy channels remain assigned to existing clients after migration, the corresponding repositories have been removed. To ensure continued updates, users must:
This also means that any CLM projects based on the old client tools must be adjusted accordingly. |