SUSE Multi-Linux Manager 5.2 Server Deployment

This guide shows you how to install and configure a SUSE Multi-Linux Manager 5.2 container on SL Micro 6.2 or SUSE Linux Enterprise Server 15 SP7.

If you want to deploy SUSE Multi-Linux Manager on Kubernetes, see Server Deployment on Kubernetes.

1. Hardware Requirements for SUSE Multi-Linux Manager

These tables shows the software and hardware requirements for deploying SUSE Multi-Linux Manager Server on your bare metal machine.

Table 1. Software Requirements
Software Recommended

Operating System

SL Micro 6.2 or

SUSE Linux Enterprise Server 15 SP7

Table 2. Server Hardware Requirements
Hardware Details Recommendation

CPU

x86-64, aarch64, ppc64le, or s390x

Minimum 4 dedicated 64-bit CPU cores

RAM

Minimum

16 GB

Recommended

32 GB

Disk Space

/ (root directory)

40 GB

/var/lib/containers/storage/volumes

Minimum 150 GB (depending on the number and type of the product*)

* 50 GB for each SUSE product and Package Hub

* 360 GB for each Red Hat product

/var/lib/containers/storage/volumes/var-pgsql

Minimum 50 GB

Swap space

Systems can benefit from additional swap space. SUSE recommends using a swap file instead of a swap partition. For more information about swap space, see Swap space.

8 to 12 GB

Supported operating system for the Server Container Host

The supported operating system for the container host is SL Micro 6.2 or SUSE Linux Enterprise Server 15 SP7.

Container host

A container host is a server equipped with a container engine like Podman, which lets it manage and deploy containers. These containers hold applications and their essential parts, such as libraries, but not a full operating system, making them lightweight. This setup ensures applications run the same way in different environments. The container host supplies the necessary resources such as CPU, memory, and storage for these containers.

Server deployment mandates the use of a fully qualified domain name (FQDN). In the absence of automatic DNS provision of an FQDN by your router or network, the deployment process will not proceed successfully. An FQDN typically follows the format <host>.<domain>.com.

For instance:

  • mlm.example.com

  • mlm.container.lab

For more information, see the section on network requirements in Network Requirements.

2. Persistent Volumes

SUSE Multi-Linux Manager 5.2 defines the required persistent storage volumes by default. These are created during installation by the mgradm tool if they do not already exist.

These volumes are created in /var/lib/containers/storage/volumes/, where Podman stores its volumes by default.

Recommendations

You can leverage the simplicity of storage by mounting an external storage device to this directory. Because it will store the PostgreSQL database, binary packages for repositories, caches, operating system images, autoinstallation distributions, and configuration files, we have three recommendations:

Fast Storage

This mount point should ideally be NVMe or SSD-class devices. Slower storage will adversely affect SUSE Multi-Linux Manager performance.

Large Capacity

Recommended minimum size for this is at least 300 GB, and larger if there will be multiple Linux distributions or architectures to manage.

Recommended Filesystem

XFS (though any supported filesystem for SL Micro 6.2 could work).

Optional

You can provide custom storage for the volumes by mounting disks on the expected volume path inside it such as /var/lib/containers/storage/volumes/var-spacewalk. This adds to the complexity of a SUSE Multi-Linux Manager deployment, and may affect the resilience the default storage recommendation provides.

For a list of all persistent volumes in the container, see Persistent Container Volumes.

3. Prepare SUSE Multi-Linux Manager Server Host

You can deploy SUSE Multi-Linux Manager on SL Micro 6.2 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 Prepare SL Micro 6.2 Host or with Prepare SUSE Linux Enterprise Server 15 SP7 host and skip the not selected section.

3.1. Prepare SL Micro 6.2 Host

3.1.1. Download the installation media

Procedure: Downloading the installation media
  1. Locate the SL Micro 6.2 installation media at https://www.suse.com/download/sle-micro/, and download the appropriate media file.

  2. Prepare a DVD or USB flash drive with the downloaded .iso image for installation.

3.1.2. Install SL Micro 6.2

Procedure: Installing SL Micro 6.2
  1. Insert the DVD or USB flash drive (USB disk or key) containing the installation image for SLE Micro 6.2.

  2. Boot or reboot your system.

  3. Use the arrow keys to select Installation.

  4. Adjust Keyboard and language.

  5. Click the checkbox to accept the license agreement.

  6. Click Next to continue.

  7. Select the registration method. For this example, we will register the server with SUSE Customer Center.

    The SUSE Multi-Linux Manager 5.2 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.2 Server

    • SUSE Multi-Linux Manager 5.2 Proxy

    • SUSE Multi-Linux Manager 5.2 Retail Branch Server

    The SL Micro 6.2 entitlement is included within the SUSE Multi-Linux Manager entitlement, so it does not require a separate registration code.

  8. Enter your SUSE Customer Center email address.

  9. Enter your registration code for SL Micro 6.2.

  10. Click Next to continue.

  11. To install a proxy, select the SUSE Multi-Linux Manager 5.2 Proxy extension; to install a server, select the SUSE Multi-Linux Manager 5.2 Server extension Checkbox.

  12. Click Next to continue.

  13. Enter your SUSE Multi-Linux Manager 5.2 extension registration code.

  14. Click Next to continue.

  15. On the NTP Configuration page click Next.

  16. On the Authentication for the System page enter a password for the root user. Click Next.

  17. On the Installation Settings page click Install.

This concludes installation of SL Micro 6.2 and SUSE Multi-Linux Manager 5.2 as an extension. For more information about preparing your machines (virtual or physical), see the SL Micro Deployment Guide.

3.1.3. OPTIONAL: Registration from the command line

If you added SUSE Multi-Linux Manager 5.2 as an extension during SL Micro 6.2 installation then you can skip this procedure. However, optionally you may skip registration during SL Micro 6.2 installation by selecting the Skip Registration button. This section provides steps on registering your products after SL Micro 6.2 installation.

The following steps register a SUSE Multi-Linux Manager 5.2 extension with the x86-64 architecture and thus require a registration code for the x86-64 architecture. To register aarch64 or s390x architectures use the correct registration code.

Procedure: Registering from the command line
  1. List available extensions with the following command:

    transactional-update --quiet register --list-extensions
  2. From the list of available extensions, select the one you wish to install:

    1. If installing the Server, use your SUSE Multi-Linux Manager Server Extension 5.2 x86_64 registration code with following command:

      transactional-update register -p Multi-Linux-Manager-Server/5.2/x86_64 -r <reg_code>
    2. If installing the Proxy, use your SUSE Multi-Linux Manager Proxy Extension 5.2 x86_64 registration code with following command:

    transactional-update register -p Multi-Linux-Manager-Proxy/5.2/x86_64 -r <reg_code>
  3. Reboot.

3.1.4. Update the system

Procedure: Updating the system
  1. Log in as root.

  2. Run transactional-update:

    transactional-update
  3. Reboot.

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:

systemctl enable --now transactional-update.timer

To continue with deployment, see Configure Custom Persistent Storage.

3.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 procedures describe the main steps of the installation process.

3.2.1. Install SUSE Multi-Linux Manager extensions on SUSE Linux Enterprise Server

Procedure: Installing SUSE Multi-Linux Manager Extensions on SUSE Linux Enterprise Server
  1. Locate and download SUSE Linux Enterprise Server 15 SP7 .iso at https://www.suse.com/download/sles/.

  2. Make sure that you have registration codes both for the host operating system (SUSE Linux Enterprise Server 15 SP7) and extensions

  3. Start the installation of SUSE Linux Enterprise Server 15 SP7.

    1. On the Language, keyboard and product selection select the product to install.

    2. On the License agreement read the agreement and check I Agree to the License Terms.

  4. Select the registration method. For this example, we will register the server with SUSE Customer Center.

  5. Enter your SUSE Customer Center email address.

  6. Enter your registration code for SUSE Linux Enterprise Server 15 SP7.

  7. Click Next to continue.

    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.

  8. 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

  9. Click Next to continue.

  10. Enter your SUSE Multi-Linux Manager 5.2 extension registration code.

  11. Click Next to continue.

  12. Complete the installation.

  13. When the installation completes, log in to the newly installed server as root.

  14. Update the System (optional, if the system was not set to download updates during install):

    zypper up
  15. Reboot.

3.2.2. OPTIONAL: Registration from the command line

If you added SUSE Multi-Linux Manager 5.2 as an extension during SUSE Linux Enterprise Server installation then you can skip this procedure.

However, optionally you may skip registration during SUSE Linux Enterprise Server installation by selecting the Skip Registration button. This section provides steps on registering your products after SUSE Linux Enterprise Server installation.

The following steps register a SUSE Multi-Linux Manager 5.2 extension with the x86-64 architecture and thus require a registration code for the x86-64 architecture.

To register aarch64 or s390x architectures use the correct registration code.

Procedure: Registering from the command line
  1. List available extensions with the following command:

    SUSEConnect --list-extensions
  2. 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.2 x86_64 registration code.

      For example for SUSE Linux Enterprise 15 SP7, use the following commands:

      SUSEConnect -r <regcode>
      SUSEConnect -p sle-module-containers/15.7/x86_64
      SUSEConnect -p Multi-Linux-Manager-Server-SLE/5.2/x86_64 -r <regcode>
    • If installing the Proxy, use your SUSE Multi-Linux Manager Proxy Extension 5.2 x86_64 registration code with the following command:

    SUSEConnect -p Multi-Linux-Manager-Proxy-SLE/5.2/x86_64 -r <regcode>

3.2.3. Install and enable podman

Procedure: Installing podman
  1. Log in as root and install the product package.

    • On the server:

      zypper in podman
      zypper in -t product Multi-Linux-Manager-Server-SLE
    • On the proxies:

      zypper in podman
      zypper in -t product Multi-Linux-Manager-Proxy-SLE

      Before continuing, make sure that these packages are installed on the target system: * podman server: mgradm, mgradm-bash-completion proxy: mgrpxy, mgrpxy-bash-completion

  2. Start the Podman service by rebooting the system, or running a command:

    systemctl enable --now podman.service

To continue with deployment, see Configure Custom Persistent Storage.

4. Configure Custom Persistent Storage

Configuring persistent storage is optional, but it is the only way to avoid serious trouble with container full disk conditions. It is highly recommended to configure custom persistent storage with the mgr-storage-server tool.

For more information, see mgr-storage-server --help. This tool simplifies creating the container storage and database volumes.

Use the command in the following manner:

mgr-storage-server <storage-disk-device> [<database-disk-device>]

For example:

mgr-storage-server /dev/nvme1n1 /dev/nvme2n1

This command will create the persistent storage volumes at /var/lib/containers/storage/volumes.

For more information, see

5. Deploy SUSE Multi-Linux Manager with mgradm

If you want to use third-party SSL certificates instead of the self-signed certificates, import them in the run of the following deployment procedure.

For more information about the requirements of third-party SSL certificates, see Import SSL Certificates.

SUSE Multi-Linux Manager server hosts that are hardened for security may restrict execution of files from the /tmp folder. In such cases, as a workaround, export the TMPDIR environment variable to another existing path before running mgradm.

For example:

export TMPDIR=/path/to/other/tmp

In SUSE Multi-Linux Manager updates, tools will be changed to make this workaround unnecessary.

Procedure: Deploying SUSE Multi-Linux Manager 5.2 Using mgradm
  1. Log in as root.

  2. Deploy SUSE Multi-Linux Manager.

    If you use VM images as a migration target, here as the last step, execute the command mgradm migrate instead of mgradm install.

    Execute one of the following commands, depending on the SSL certificate variant (self-signed or third-party). Replace <FQDN> with your fully qualified domain name of the SUSE Multi-Linux Manager Server:

    • Using self-signed certificates provided by SUSE Multi-Linux Manager:

      mgradm install <FQDN>
    • With importing SSL certificates using third-party SSL certificate flags (the example can adjusted if not all these certificates are needed):

      mgradm install <FQDN> \
        --ssl-ca-intermediate <strings> \
        --ssl-ca-root <string> \
        --ssl-server-cert <string> \
        --ssl-server-key <string> \
        --ssl-db-ca-intermediate <strings> \
        --ssl-db-ca-root <string> \
        --ssl-db-cert <string> \
        --ssl-db-key <string>

    By default, the TFTP server container is not deployed on the server. For autoinstallation (PXE/TFTP), using a SUSE Multi-Linux Manager Proxy is recommended. If you need to run the TFTP service directly on the server without a proxy (discouraged), append the --tftpd-enable flag to mgradm install.

    +

    For more information, see mgradm install --help.

    If the executed command fails ensure that you have registered SUSE Multi-Linux Manager 5.2. If you skipped registration during installation and now need to register from the command line, follow the steps below to log in to the registry:

    set +o history
    echo SCC_MIRRORING_PASSWORD | podman login -u "SCC_MIRRORING_USER" --password-stdin registry.suse.com
    set -o history

    Use the SUSE Multi-Linux Manager 5.2 registration key when prompted.

  3. Enter CA key (certificate authority) and administrator account password when prompted.

    The administrator account password must be at least 5 characters and less than 48 characters in length.

  4. Press Enter.

  5. Enter the email address of the administration account. Press Enter.

  6. Wait for deployment to complete.

  7. Open a browser and proceed to your servers FQDN.

  8. Enter your username (default is admin) and the password you set during the deployment process.

In this guide you deployed SUSE Multi-Linux Manager 5.2 Server as a container. Proceed to Initial Setup After Installation to connect the server to SUSE Customer Center and add your first products.

6. Entering the Container for Management

To get to a shell inside the container, run on the container host:

mgrctl term