Registering RHEL 8 or CentOS Linux 8 with RMT
This guide explains how to register and update Red Hat Enterprise Linux 8 or CentOS Linux 8 with Repository Mirroring Tool (RMT).
To register with SUSE Multi-Linux Manager, see Registering RHEL 8 or CentOS Linux 8 with SUSE Multi-Linux Manager.
Copyright © 2022–2025 SUSE LLC and contributors. All rights reserved.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or (at your option) version 1.3; with the Invariant Section being this copyright notice and license. A copy of the license version 1.2 is included in the section entitled “GNU Free Documentation License”.
For SUSE trademarks, see https://www.suse.com/company/legal/. All third-party trademarks are the property of their respective owners. Trademark symbols (®, ™ etc.) denote trademarks of SUSE and its affiliates. Asterisks (*) denote third-party trademarks.
All information found in this book has been compiled with utmost attention to detail. However, this does not guarantee complete accuracy. Neither SUSE LLC, its affiliates, the authors nor the translators shall be held liable for possible errors or the consequences thereof.
1 Introduction #
SUSE Multi-Linux Support is a technology and support solution for mixed Linux environments. With a SUSE Multi-Linux Support subscription, you can register and update Red Hat Enterprise Linux and CentOS Linux. An optional High Availability extension is also available.
The following table shows which Linux distributions are supported by each subscription. These subscriptions also include an entitlement for a registration tool to manage package updates.
| Subscription | Supported distributions | Registration options |
|---|---|---|
SUSE Multi-Linux Support Enterprise |
CentOS Linux Red Hat Enterprise Linux SUSE Linux Enterprise Server |
SUSE Multi-Linux Manager Repository Mirroring Tool |
SUSE Multi-Linux Support Professional |
CentOS Linux Red Hat Enterprise Linux Includes one entitlement for SLES to host RMT |
SUSE Multi-Linux Manager Repository Mirroring Tool |
SUSE Multi-Linux Support Basic |
CentOS Linux Includes one entitlement for SLES to host RMT |
SUSE Multi-Linux Manager Repository Mirroring Tool |
SUSE Multi-Linux Support Lite |
CentOS Linux Includes one entitlement for SLES to host RMT | Repository Mirroring Tool |
CentOS Stream is not supported.
Registering RHEL or CentOS Linux directly with the SUSE Customer Center is not currently supported.
This guide describes how to register with Repository Mirroring Tool (RMT). RMT is a proxy system for the SUSE Customer Center. The RMT server is registered with the SUSE Customer Center, and other systems are registered with the RMT server and receive packages from it directly.
If you already have an RMT server and only need to register your RHEL 8 or CentOS Linux 8 system, skip straight to Section 5, “Registering RHEL or CentOS Linux with RMT”.
If you already have an RMT server but still need to mirror the SUSE Multi-Linux Support 8 repositories, go to Section 4, “Mirroring SUSE Multi-Linux Support repositories with RMT”.
If you still need to set up the RMT server, start with Section 2, “Installing a virtual machine to host RMT” and Section 3, “Configuring the RMT server”.
SUSE Multi-Linux Support was previously named SUSE Liberty Linux and SUSE Linux Enterprise Server with Expanded Support. During the transition period, some components might still use one of these names.
2 Installing a virtual machine to host RMT #
Use this procedure to install a SLES Minimal VM, a preconfigured virtual machine image that contains a slimmed-down version of SUSE Linux Enterprise Server (SLES). This machine will be the Repository Mirroring Tool (RMT) server.
You can use your SUSE Multi-Linux Support subscription to register this machine.
To install a full SLES machine on bare metal, see Installation Quick Start.
To deploy SLES in the public cloud, see Deploying a SUSE Linux Enterprise Server instance to support RMT in the public cloud in Repository Mirroring Tool Guide.
You have a SUSE Multi-Linux Support subscription.
You have a SUSE Customer Center account.
The VM must have a static IP address and host name. This guide includes steps for configuring the VM's network setup, but you must have basic networking knowledge to fill in the details.
You have the infrastructure to run virtual machines. This guide explains how to set up the VM to host RMT, but does not describe how to use different virtualization products. See the relevant documentation for your product.
The RMT server needs enough available disk space to mirror the SUSE Multi-Linux Support 8 repositories. Downloaded packages are stored in
/var/lib/rmt/public/repo/. The amount of storage required depends on the number of repositories you mirror. We recommend at least 1.5 times the total size of all enabled repositories.Important: SUSE Multi-Linux Support 8 repository sizeThe SUSE Multi-Linux Support 8 repositories will grow over time because older package versions are not removed. Based on the current[1] size of the repositories, to meet the 1.5 times size recommendation you will need approximately 860 GB of disk space for the default repositories.
If you need the optional
SourceandDebugrepositories, you will need an additional 1600 GB available.
Download the appropriate
Minimal-VMimage for your virtualization infrastructure from https://www.suse.com/download/sles/.Use the
Minimal-VMimage to start the virtual machine.The default disk size for SLES Minimal VM is 24 GB. If you can customize the configuration before the installation begins, increase the available storage so there is enough disk space for repository mirroring.
When the
JeOS Firstbootscreen appears, select .Choose your keyboard layout and select .
Review the
End User License Agreementand select . To agree with the terms of the license, select .Choose your time zone and select .
Enter a
rootpassword and select , then confirm the password and select again.JeOS Firstboot shows the command to use to register this VM. You do not need to write this down; the command is explained in this procedure. Select .
When the VM is ready, log in as the
rootuser with the password you entered during setup.Register the VM using your SUSE Customer Center email address and the registration code for SUSE Multi-Linux Support:
#SUSEConnect -e EMAIL_ADDRESS -r REGISTRATION_CODEThis activates the
Basesystem,Server Applications, andPython 3modules.If you did not already increase the VM's disk space before the installation began, increase it now. You might need to shut down the VM to do so. The VM must have enough space to mirror the SUSE Multi-Linux Support 8 repositories.
You must also configure a static IP address and host name for the VM. If you are familiar with any networking tools in SLES, configure the network with your preferred tool. If not, use the YaST graphical interface:
Install YaST and the YaST
networkmodule:#zypper install yast2 yast2-networkStart the YaST
networkmodule:#yast2 lanIn the tab, select to change the settings of the
eth0device. The dialog opens.In the tab, activate .
Fill in the , , and fields.
Select .
Switch to the tab and fill in the field.
Change to
no.Fill in at least one field.
Switch to the tab and select . A new dialog opens.
Fill in the field. Make sure to remove the
-character.From the drop-down list, select
eth0.Select to close the dialog.
Select to complete the configuration and close YaST.
Check the network settings:
#ip addrCheck that the network interface can access external networks:
#ping www.suse.comCancel the ping with Ctrl–C.
You can now install RMT on the virtual machine.
3 Configuring the RMT server #
Use this procedure to configure the Repository Mirroring Tool (RMT) on SUSE Linux Enterprise Server (SLES) 15.
A SLES 15 virtual machine is installed as described in Section 2, “Installing a virtual machine to host RMT”.
The SLES machine has a static IP address and host name.
You have a SUSE Customer Center account and organization credentials.
On the SLES machine, install RMT:
#zypper install rmt-serverInstall the following packages, which are not installed by default on a SLES Minimal VM:
#zypper install yast2-rmt mariadb nginxStart the YaST
rmt:#yast2 rmtEnter your , then select .
To find your organization credentials, log in to the SUSE Customer Center, select your organization from , and click . Your organization's are in the top right corner.
Enter for a new MariaDB database user, then select . The new user is created.
When prompted, enter and confirm a new password for the MariaDB root user, then select .
Enter a for the SSL certificates. The common name is usually the host name of the server.
If the server has other domain names or IP addresses, enter these as . Select to add new names. When all common names are entered, select .
If prompted, enter and confirm a password for the CA private key, then select .
Activate the check box , then select .
YaST displays the . If there are no issues, select .
Review the , then select to close YaST.
YaST enables and starts all RMT systemd services and timers.
4 Mirroring SUSE Multi-Linux Support repositories with RMT #
Use this procedure to mirror the SUSE Multi-Linux Support repositories for Red Hat Enterprise Linux 8 and CentOS Linux 8.
The RMT server is installed and up to date.
The RMT server has enough storage available for repository mirroring. The amount of storage required depends on the number of repositories you mirror. We recommend at least 1.5 times the total size of all enabled repositories. Be aware that the SUSE Multi-Linux Support repositories will grow substantially over time.
Your organization credentials appear correctly in
/etc/rmt.conf.You have a SUSE Multi-Linux Support subscription activated in the SUSE Customer Center.
On the RMT server, update the available product and repository metadata:
#rmt-cli syncSynchronization is also performed automatically by
rmt-server-sync.timer. You can check the status and the next scheduled synchronization time with the following command:#systemctl status rmt-server-sync.timerEnable SUSE Multi-Linux Support 8 using the product ID
1921:#rmt-cli products enable 1921This enables all the default repositories associated with the product.
If your subscription includes the High Availability extension, enable the extension using the product ID
1922:#rmt-cli products enable 1922To check whether the High Availability extension is available, run this command:
rmt-cli products list --all --name=RES-HAIf you also need the
SourceorDebugrepositories, enable them with the following commands:RES-8-Source-Updates,RES-AS-8-Source-UpdatesandRES-CB-8-Source-Updates:#rmt-cli repos enable 3879 3922 3925RES-8-Debug-Updates,RES-AS-8-Debug-UpdatesandRES-CB-8-Debug-Updates:#rmt-cli repos enable 3881 3923 3926RES-8-HA-Source-UpdatesandRES-8-HA-Debug-Updates:#rmt-cli repos enable 3883 3884
Start package mirroring for the enabled repositories:
#rmt-cli mirrorPackages are downloaded to the RMT server once per day by
rmt-server-mirror.timer. You can check the status and the next scheduled download time with the following command:#systemctl status rmt-server-mirror.timer
5 Registering RHEL or CentOS Linux with RMT #
Use this procedure to register Red Hat Enterprise Linux 8 or CentOS Linux 8 with the RMT server.
CentOS Stream is not supported.
The RMT server is running rmt-server version 2.10 or later.
The SUSE Multi-Linux Support 8 repositories are available on the RMT server.
The system you want to register can access the RMT server.
The system you want to register is up to date. SUSE Multi-Linux Support only supports the latest minor release of RHEL 8 or CentOS Linux 8.
You have a SUSE Multi-Linux Support subscription activated in the SUSE Customer Center.
You have removed the system from any Red Hat subscription services it was registered to.
Download the
rmt-client-setup-resscript:#curl -O http://RMT_SERVER/tools/rmt-client-setup-resRun the
rmt-client-setup-resscript with the URL of the RMT server as a parameter:#sh rmt-client-setup-res https://RMT_SERVERThe script installs
SUSEConnectand its dependencies, and replaces the existing release package with the SUSE Multi-Linux Support release package. It then downloads and runs thermt-client-setupscript, which performs the following tasks:Downloads all keys from
http://RMT_SERVER/repo/keys.Imports the keys with
gpg --importandrpm --import.Downloads the CA certificate from
https://RMT_SERVER/rmt.crt.Imports the CA certificate to the trust store.
Uses
SUSEConnectto register the system with the RMT server. Registering the system usingSUSEConnectadds and enables all default repositories.
You should see
Successfully registered system.Verify the installed product:
#SUSEConnect --status-textYou should see the following output:
Installed Products: ------------------------------------------ SUSE Liberty Linux release file (RES/8/x86_64) Registered ------------------------------------------
If your subscription includes the High Availability extension, activate it with the following command:
#SUSEConnect -p RES-HA/8/x86_64To check whether the extension is available, run the
SUSEConnect --list-extensionscommand.Verify the available repositories:
#dnf repolist allThe default repositories
RES-8-Updates,RES-AS-8-UpdatesandRES-CB-8-Updatesshould beenabled. If you activated the High Availability extension,RES-8-HA-Updatesshould also beenabled.You will also see optional
SourceandDebugrepositories with the statusdisabled. Be aware that these repositories are listed even if they are not mirrored on the RMT server. You can check the mirrored repositories by browsing the directory listing athttps://RMT_SERVER/repo/SUSE/Updates/or by logging in to the RMT server and runningrmt-cli repos list.If you need the
SourceorDebugrepositories, enable them with the following command:#dnf config-manager --enable REPO_IDRun the update command to make sure there are no errors:
#dnf update
You can now keep your system up to date from repositories provided by SUSE Multi-Linux Support.
6 Troubleshooting #
nginx.serviceis inactive after installing the rmt-server packageContinue the procedure to configure RMT in YaST. This often resolves the issue. If that fails, Apache might be installed on your server, and must be disabled. Apache conflicts with NGINX because both web servers listen on port 80.
- SUSE Multi-Linux Support does not appear in
rmt-cli products listafterrmt-cli sync Check your network. If the network is down,
rmt-cli syncfails without showing an error.- Mirroring completes with errors
If some packages could not be downloaded because of timeouts, rerun the
rmt-cli mirrorcommand until all packages are downloaded.- Setup script cannot access the SUSE Multi-Linux Support repository
The
repodatadirectory on the RMT server will not be available until all of the packages for that repository are downloaded. If some packages could not be downloaded to the RMT server because of timeouts during the first mirroring, rerun thermt-cli mirrorcommand until all packages are downloaded.- Setup script cannot install SUSEConnect because of package dependencies
SUSE Multi-Linux Support only supports the latest minor release of RHEL or CentOS Linux. If your system is running the latest version and SUSEConnect still has package dependency issues, try the following workaround:
Edit the
rmt-client-setup-resscript to add--skip-brokento the following line:$DNF install SUSEConnect librepo --skip-brokenRun the script and accept any proposed package changes. SUSEConnect will be skipped.
Run the script a second time. The package changes from the first attempt can sometimes resolve the package dependency issues, allowing the second attempt to successfully install SUSEConnect.
dnf updatefails withErrors during downloading metadata for repository — Status code: 404The repository shown in the error message might not be mirrored on the RMT server. The optional
SourceandDebugrepositories can be enabled withdnf config-managereven if they are not available from RMT.Run
dnf repolist allto show the status of the repositories.If the repository shown in the error message has the status
enabled, disable it with the following command:#dnf config-manager --disable REPO_IDRun
dnf updateagain to see if the issue is resolved.If you need the unavailable repository for your system, see Section 4, “Mirroring SUSE Multi-Linux Support repositories with RMT”.