このコンテンツは選択した言語では利用できません。
Chapter 4. RHUI 5 install procedure
Before you begin
For RHUI 5, only the container images will be published, and not the individual RPMs. There are separate images for:
- installer
- RHUA
- CDS
- HAPROXY
Providing local files to the installer
In RHUI 4, the installer would accept local file paths as arguments to some command line switches. This is no longer an option with containerized installations, since the running container has no access to arbitrary files on the host filesystem. Therefore, the RHUI 5 installer is taught to look into some hardcoded file paths to source some files, and those paths can be provided as volume mounts through the podman command line. Unfortunately, those paths cannot be provided through the answers file as the container has already been started at the point the answers file is parsed.
The list of special file paths, local to the container, that the installer will reference:
-
/ssh-keyfile- The private SSH key used to log into target host. -
/rhua-image.tar- The RHUA container image file in case we want to explicitly transfer it to the target host, the image file must be in the format created bypodman savecommand. In this case, --rhua-container-image and --rhua-container-registry installation parameters are not allowed /answers.yaml - The answers file, which will look similar to the following:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
/rhui-ca.crtand/rhui-ca.key- The RHUI CA certificate and its key. -
/client-ssl-ca.crtand/client-ssl-ca.key- The CA Certificate for CDS SSL traffic and its key. -
/client-entitlement-ca.crtand/client-entitlement-ca.key- The CA certificate for client certificate management and its key.
Whenever providing the volume mounts to the container, make sure you have proper SELinux labels for the container, providing either :z or :Z as a volume mount option.
Running the installer image for RHUI 5
To run the installer image you will need to access the public Red Hat registry, registry.redhat.io. The registry is protected by credentials. Also, you must be logged in a machine that has Podman installed (we call it control node), so that you can log in to the registry and subsequently run the installer image against the target host as shown in the following:
The following examples assume that you are using RHEL 9.
sudo dnf -y install podman [...] podman login --username <CCSP_login> --password '<CCSP_password>' registry.redhat.io Login Succeeded!
$ sudo dnf -y install podman
[...]
$ podman login --username <CCSP_login> --password '<CCSP_password>' registry.redhat.io
Login Succeeded!
After you have logged in to the registry, you can check the available RHUI container images:
At this point you are ready to start the installation process assuming all of the following is provided:
-
The target host you want to install RHUA on. This is the
--target-hostinstallation parameter. - The target host can meet or exceed the following requirements:
- It should run RHEL 9 or 10 and already be registered with Red Hat.
The target host needs to be registered using the following command: subscription-manager register. When prompted, enter your CCSP user name and password.
- Hardware should be a minimum of: x86_64, 8+ CPU cords, 8+ GB RAM, 128+ GB disk.
-
The NFS fileshare used for storing Pulp content. This is the
--remote-fs-serverinstallation parameter. - The target host has accepted your SSH authentication.
Assuming you have launched the target host and it is configured to accept your SSH key, you can run the following commands in Podman:
-
-itThis means an interactive session is needed with a proper terminal output. -
--rmThis will remove the container after the operation is finished. -v ~/.ssh/id_rsa:/ssh-keyfile:ZThis will volume mount your SSH private key so that the installer container has access to it.NoteDo not forget to supply your SSH passphrase if you have set up your SSH key with a passphrase.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Installation Verification
Your RHUA container is ready and running on the target host. So how do you access it? During the installation, a shell function named rhua has been created to save you from typing the Podman exec invocation. Assuming you are root on the target host enter the following:
Using SSH agent for authentication (Optional)
If you want to use ssh-agent for passing your SSH key, you must run the installer container in the --privileged mode to allow using the ssh-agent sockets inside the container. Additionally, ensure you have ssh-agent working and you have unlocked your SSH private key. Then, run the following command:
ssh-add Enter passphrase for /home/<username>/.ssh/id_rsa: Identity added: /home/<username>/.ssh/id_rsa (/home/<username>/.ssh/id_rsa)
$ ssh-add
Enter passphrase for /home/<username>/.ssh/id_rsa:
Identity added: /home/<username>/.ssh/id_rsa (/home/<username>/.ssh/id_rsa)
Next, in your installer invocation, replace:
-v ~/.ssh/id_rsa:/ssh-keyfile:Z
-v ~/.ssh/id_rsa:/ssh-keyfile:Z
with the following:
--privileged -v $SSH_AUTH_SOCK:$SSH_AUTH_SOCK:Z -e SSH_AUTH_SOCK=$SSH_AUTH_SOCK
--privileged -v $SSH_AUTH_SOCK:$SSH_AUTH_SOCK:Z -e SSH_AUTH_SOCK=$SSH_AUTH_SOCK
-
--privilegedThis is so the container has access to the ssh-agent sockets. -
-v $SSH_AUTH_SOCK:$SSH_AUTH_SOCK:ZThis is to pass the SSH authentication socket to the container filesystem, so that the container can access your SSH key. -
-e SSH_AUTH_SOCK=$SSH_AUTH_SOCKThis is to set the environment variable in the container runtime pointing to the location of the SSH authentication socket.