SUSE Multi-Linux Manager 5.1 Proxy Deployment
This guide outlines the deployment process for the SUSE Multi-Linux Manager 5.1 Proxy container on SL Micro 6.1 or SUSE Linux Enterprise Server 15 SP7. This guide presumes you have already successfully deployed a SUSE Multi-Linux Manager 5.1 Server.
SL Micro is only supported as regular minion ( |
To successfully deploy, you will perform the following actions:
-
Review hardware requirements.
-
Synchronize the SL Micro 6.1 or SUSE Linux Enterprise Server 15 SP7 parent channel and the proxy extension child channel on the server.
-
Install SL Micro or SUSE Linux Enterprise Server on a bare-metal machine.
-
During the installation, register SL Micro or SUSE Linux Enterprise Server along with the SUSE Multi-Linux Manager Proxy extension.
-
Create a Salt activation key.
-
Bootstrap the proxy as a client with the
default
connection method. -
Generate a proxy configuration.
-
Transfer the proxy configuration from server to proxy.
-
Use the proxy configuration to register the client as a proxy with SUSE Multi-Linux Manager.
Supported operating system for the Proxy Container Host
The supported operating system for the container host are SL Micro 6.1 and SUSE Linux Enterprise Server 15 SP7.
|
1. Hardware Requirements for the Proxy
For more information about hardware requirements for deploying SUSE Multi-Linux Manager Proxy, see installation-and-upgrade:hardware-requirements.adoc#proxy-hardware-requirements.
2. Synchronize the Parent and Proxy Extension Child Channels
This section presumes that you have already entered your organization credentials under the Proxy
as an extension option selected.
-
In the SUSE Multi-Linux Manager Web UI select
. -
From the products page enter SL Micro or SUSE Linux Enterprise Server in the filter field.
-
Next use the drop-down to select the required architecture. For this example x86-64.
-
In the
Product Description
field select the SL Micro 6.1 or SUSE Linux Enterprise Server 15 SP7 checkbox then use the drop-down to select theSUSE Multi-Linux Manager Proxy Extension 5.1 x86_64
extension. -
Click the Add products button.
-
Wait for the synchronization to complete.
3. Prepare SUSE Multi-Linux Manager Proxy Host
3.1. Install SL Micro 6.1 and Deploy Proxy
-
Locate the SL Micro 6.1 installation media at https://www.suse.com/download/sl-micro/.
-
You will need an account with SUSE Customer Center and must be logged in to download the ISO.
-
Download
SL-Micro-6.1-DVD-x86_64-GM-Media1.iso
. -
Prepare a USB flash disk or DVD for installation.
-
Insert a DVD or a bootable USB stick containing the installation image for SL Micro 6.1.
-
Boot or reboot your system.
For detailed documentation on preparing your machines OS (virtual or physical), see Introduction to SL Micro 6.1 Deployment.
-
Use the arrow keys to select
Installation
. -
Adjust Keyboard and language. Click the
checkbox
to accept the license agreement. -
Click
Next
to continue. -
Select your registration method. For this example, we will register the proxy with SUSE Customer Center.
-
Enter your SUSE Customer Center Email address.
-
Enter your registration code for SL Micro 6.1.
-
Click
Next
to continue. -
Select the SUSE Multi-Linux Manager 5.1 Proxy extension
Checkbox
. -
Click
Next
to continue. -
Enter your SUSE Multi-Linux Manager 5.1 Proxy extension registration code.
-
Click Next to continue.
-
On the
NTP Configuration
page click Next. -
On the
Authentication for the System
page enter a password for the root user. Click Next. -
On the
Installation Settings
page click Install.
This finalizes installation of SL Micro 6.1 and SUSE Multi-Linux Manager 5.1 Proxy as an extension.
3.1.1. Update the System
-
Log in as root.
-
Run transactional-update:
transactional-update
-
Reboot the system.
-
Log in as root.
-
Install the container utilities (
mgrpxy
should already be installed automatically):transactional-update pkg install mgrpxy-bash-completion
Alternatively you may install
mgrpxy-zsh-completion
ormgrpxy-fish-completion
. -
Reboot the system.
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:
|
To continue with deployment, see Configure Custom Persistent Storage.
3.2. Install SUSE Linux Enterprise Server 15 SP7 and Deploy Proxy
Alternatively, you can install SUSE Multi-Linux Manager Proxy 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 the SCC code you plan to use has the Extensions enabled.
-
Start the installation of SUSE Linux Enterprise Server 15 SP7.
-
On the
Language, keyboard and product selection
select the product to install. -
On the
License agreement
read the agreement and checkI Agree to the License Terms
.
-
-
Select the registration method.
For SUSE Linux Enterprise Server 15 SP7, you are required to have a valid SUSE Linux Enterprise Server subscription and corresponding regcode, which you must provide on this screen. You will be required to enter the SUSE Multi-Linux Manager Extension regcode below.
-
In the screen
Extensions and Modules Selection
check the following:-
SUSE Multi-Linux Manager Proxy Extension
-
Basesystem Module
-
Containers Module
Enter the SUSE Multi-Linux Manager Extension regcode.
-
-
Complete the installation.
-
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
-
Reboot.
-
Log in as root and install
podman
plusmgrpxy
andmgrpxy-bash-completion
(if not already automatically installed):zypper install podman mgrpxy mgrpxy-bash-completion
-
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.
If custom persistent storage is required for your infrastructure, use the mgr-storage-proxy
tool.
-
For more information, see
mgr-storage-proxy --help
. This tool simplifies creating the container storage and Squid cache volumes.
Use the command in the following manner:
mgr-storage-proxy <storage-disk-device>
For example:
mgr-storage-proxy /dev/nvme1n1
This command will create the persistent storage volumes at For more information, see |
5. Create an Activation Key for the Proxy
-
Navigate to
, and click Create key. -
Create an activation key for the proxy host with SLE Micro 6.1 as the parent channel. This key should include all recommended channels and the proxy as an extension child channel.
-
Proceed to boostrapping the proxy host as a
default
client.
6. Bootstrap the Proxy Host as a Client
-
Select
. -
Fill in the fields for your proxy host.
-
Select the activation key created in the previous step from the drop-down.
-
Click Bootstrap.
-
Wait for the bootstrap process to complete successfully. Check the Salt menu and confirm the Salt key is listed and accepted.
-
Reboot the proxy host.
-
Select the host from the System list and trigger a second reboot after all events are finished to conclude the onboarding.
-
Select the host from the Systems list and apply all patches to update it.
-
Reboot the proxy host.
7. Generate Proxy Configuration
The configuration archive of the SUSE Multi-Linux Manager Proxy is generated by the SUSE Multi-Linux Manager Server. Each additional Proxy requires its own configuration archive.
For Podman deployment, the container host for the SUSE Multi-Linux Manager Proxy must be registered as a client to the SUSE Multi-Linux Manager Server prior to generating this proxy configuration. |
If a proxy FQDN is used to generate a proxy container configuration that is not a registered client (as in the Kubernetes use case), a new system entry will appear in system list.
This new entry will be shown under previously entered Proxy FQDN value and will be of Foreign
system type.
7.1. Generate the Proxy Configuration with Web UI
-
In the Web UI, navigate to
and fill the required data: -
In the
Proxy FQDN
field type fully qualified domain name for the proxy. -
In the
Parent FQDN
field type fully qualified domain name for the SUSE Multi-Linux Manager Server or another SUSE Multi-Linux Manager Proxy. -
In the
Proxy SSH port
field type SSH port on which SSH service is listening on SUSE Multi-Linux Manager Proxy. Recommended is to keep default 8022. -
In the
Max Squid cache size [MB]
field type maximal allowed size for Squid cache. Recommended is to use at most 80% of available storage for the containers.2 GB represents the default proxy squid cache size. This will need to be adjusted for your environment.
-
In the
SSL certificate
selection list choose if new server certificate should be generated for SUSE Multi-Linux Manager Proxy or an existing one should be used. You can consider generated certificates as SUSE Multi-Linux Manager builtin (self signed) certificates.Depending on the choice then provide either path to signing CA certificate to generate a new certificate or path to an existing certificate and its key to be used as proxy certificate.
The CA certificates generated by the server are stored in the
/var/lib/containers/storage/volumes/root/_data/ssl-build
directory.For more information about existing or custom certificates and the concept of corporate and intermediate certificates, see Import SSL Certificates.
-
Click Generate to register a new proxy FQDN in the SUSE Multi-Linux Manager Server and generate a configuration archive (
config.tar.gz
) containing details for the container host. -
After a few moments you are presented with file to download. Save this file locally.
7.2. Generate Proxy Configuration With spacecmd
and Self-Signed Certificate
You can generate a Proxy configuration using spacecmd
.
-
SSH into your container host.
-
Execute the following command replacing the Server and Proxy FQDN:
mgrctl exec -ti 'spacecmd proxy_container_config_generate_cert -- dev-pxy.example.com dev-srv.example.com 2048 email@example.com -o /tmp/config.tar.gz'
-
Copy the generated configuration from the server container:
mgrctl cp server:/tmp/config.tar.gz .
7.3. Generate Proxy Configuration With spacecmd
and Custom Certificate
You can generate a Proxy configuration using spacecmd
for a custom certificates rather than the default self-signed certificates.
-
SSH into your Server container host.
-
Execute the following command replacing the Server and Proxy FQDN:
for f in ca.crt proxy.crt proxy.key; do mgrctl cp $f server:/tmp/$f done mgrctl exec -ti 'spacecmd proxy_container_config -- -p 8022 pxy.example.com srv.example.com 2048 email@example.com /tmp/ca.crt /tmp/proxy.crt /tmp/proxy.key -o /tmp/config.tar.gz'
-
Copy the generated configuration from the server container:
mgrctl cp server:/tmp/config.tar.gz .
8. Transfer the Proxy Configuration
The Web UI generates a configuration archive. This archive needs to be made available on the proxy container host.
-
If not already done, copy the configuration archive (
config.tar.gz
) generated in the previous step from the server container to the server host:mgrctl cp server:/root/config.tar.gz .
-
If not already done, copy the files from the server host to the proxy host:
scp config.tar.gz <proxy-FQDN>:/root
-
On the proxy host, install the Proxy with:
mgrpxy install podman config.tar.gz
9. Start the SUSE Multi-Linux Manager Proxy
Container can now be started with the mgrpxy
command:
-
Start the proxy by calling:
mgrpxy start
-
Check container status by calling:
mgrpxy status
Five SUSE Multi-Linux Manager Proxy containers should be present and should be part of the
proxy-pod
container pod:-
proxy-salt-broker
-
proxy-httpd
-
proxy-tftpd
-
proxy-squid
-
proxy-ssh
-
10. Use a Custom Container Image for a Service
By default, the SUSE Multi-Linux Manager Proxy suite is configured to use the same image version and registry path for each of its services.
However, it is possible to override the default values for a specific service using the install parameters ending with -tag
and -image
.
For example:
mgrpxy install podman --httpd-tag 0.1.0 --httpd-image registry.opensuse.org/uyuni/proxy-httpd /path/to/config.tar.gz
It adjusts the configuration file for the httpd service, where registry.opensuse.org/uyuni/proxy-httpds
is the image to use and 0.1.0
is the version tag, before restarting it.
To reset the values to defaults, run the install command again without those parameters:
mgrpxy install podman /path/to/config.tar.gz
This command first resets the configuration of all services to the global defaults and then reloads it.