Este contenido no está disponible en el idioma seleccionado.
Chapter 4. Installing Red Hat Discovery containers with the disconnected installation process
The disconnected installation process is required when you want to run Red Hat Discovery from a system that does not have internet access, also commonly referred to as a disconnected, offline, or air-gapped environment. During the Red Hat Discovery disconnected installation process, you must complete some steps on a connected system, one that has internet connectivity. These steps include obtaining the container images from the Red Hat Ecosystem Catalog website and then transferring the images to the disconnected system that you intend to use as the Discovery server. You also complete steps on the disconnected system to install, configure the environment for, and start the Discovery containers.
The disconnected installation process uses Podman to install the containers for the Discovery server. You will need sudo permissions to install Podman on your system. However, you must not run the Discovery server using sudo or as the root user.
Prerequisites
- Before you begin, ensure that all hardware, software, and environment prerequisites are installed and configured. For more information about the prerequisites, see Installing prerequisites for Red Hat Discovery.
Procedure
To install Red Hat Discovery with the disconnected installation process, you do the following tasks:
From the connected system, run a series of commands:
- Access and download the container images.
From the disconnected system, run a series of commands:
- Transfer the container images to the disconnected system.
- Install, configure, and start the Red Hat Discovery server containers.
4.1. Installing the Discovery database and server container images for the disconnected installation Copiar enlaceEnlace copiado en el portapapeles!
During the disconnected installation of the Discovery server, you begin with a connected system to install the Podman container management tool and obtain the Discovery container images on the Red Hat Ecosystem Catalog website. You then transfer those container images to the disconnected system where you want to run Discovery, install Podman on the disconnected system, configure Discovery, and start the Discovery application.
Prerequisites
- The connected system on which you are downloading the Discovery container images must be connected to the internet.
- The connected system must be able to connect to the Red Hat Ecosystem Catalog.
-
The disconnected system that you are using must be able to install Red Hat standard packages through
dnf.
Procedure
To install the Discovery server with the disconnected installation process, use the following steps:
On the connected system
Log in to the Red Hat Ecosystem Catalog (the registry.redhat.io website). When prompted, supply your Red Hat Customer Portal account credentials.
podman login registry.redhat.io
podman login registry.redhat.ioCopy to Clipboard Copied! Toggle word wrap Toggle overflow Pull the Discovery container images and save them into as a
.tar.gzfile.podman pull registry.redhat.io/discovery/discovery-ui-rhel9:2.5 registry.redhat.io/discovery/discovery-server-rhel9:2.5 registry.redhat.io/rhel9/postgresql-15:latest registry.redhat.io/rhel9/redis-7:latest podman save --multi-image-archive registry.redhat.io/discovery/discovery-ui-rhel9:2.5 registry.redhat.io/discovery/discovery-server-rhel9:2.5 registry.redhat.io/rhel9/postgresql-15:latest registry.redhat.io/rhel9/redis-7:latest | gzip > discovery-images.tar.gz
podman pull registry.redhat.io/discovery/discovery-ui-rhel9:2.5 registry.redhat.io/discovery/discovery-server-rhel9:2.5 registry.redhat.io/rhel9/postgresql-15:latest registry.redhat.io/rhel9/redis-7:latest podman save --multi-image-archive registry.redhat.io/discovery/discovery-ui-rhel9:2.5 registry.redhat.io/discovery/discovery-server-rhel9:2.5 registry.redhat.io/rhel9/postgresql-15:latest registry.redhat.io/rhel9/redis-7:latest | gzip > discovery-images.tar.gzCopy to Clipboard Copied! Toggle word wrap Toggle overflow
On the disconnected system
-
Use the transfer method of your choice to transfer
discovery-images.tar.gzto the disconnected system where you are going to install Discovery: Load the container images into local storage for Podman.
podman load -i discovery-images.tar.gz
podman load -i discovery-images.tar.gzCopy to Clipboard Copied! Toggle word wrap Toggle overflow Run the following commands to get the
discoveryctlpackage that manages Discovery installation.sudo subscription-manager repos --enable <repository> sudo dnf install -y discoveryctl
sudo subscription-manager repos --enable <repository> sudo dnf install -y discoveryctlCopy to Clipboard Copied! Toggle word wrap Toggle overflow NoteIn the preceding command, replace <repository> with the following values:
-
For Red Hat Enterprise Linux 10, replace <repository> with
discovery-2-for-rhel-10-x86_64-rpms -
For Red Hat Enterprise Linux 9, replace <repository> with
discovery-2-for-rhel-9-x86_64-rpms -
For Red Hat Enterprise Linux 8, replace <repository> with
discovery-2-for-rhel-8-x86_64-rpms
-
For Red Hat Enterprise Linux 10, replace <repository> with
Run the following command to configure and install Discovery.
discoveryctl install
discoveryctl installCopy to Clipboard Copied! Toggle word wrap Toggle overflow NoteWhen you run the
discoveryctl installcommand for the first time, it will prompt you to define a new admin login username and password. You will use those values to log in to Discovery.Start the Discovery application.
systemctl --user start discovery-app
systemctl --user start discovery-appCopy to Clipboard Copied! Toggle word wrap Toggle overflow NoteThe first time that Discovery runs may take a long time to complete. To get a better idea about the status of the product, the following commands can be run to provide more verbose data during the initial run of Discovery.
check if the service is running systemctl --user status discovery-app
# check if the service is running systemctl --user status discovery-appCopy to Clipboard Copied! Toggle word wrap Toggle overflow list all current containers podman ps -a
# list all current containers podman ps -aCopy to Clipboard Copied! Toggle word wrap Toggle overflow display service logs sudo journalctl -t discovery-app sudo journalctl -t discovery-server
# display service logs sudo journalctl -t discovery-app sudo journalctl -t discovery-serverCopy to Clipboard Copied! Toggle word wrap Toggle overflow display and follow service logs sudo journalctl -f -t discovery-app sudo journalctl -f -t discovery-server
# display and follow service logs sudo journalctl -f -t discovery-app sudo journalctl -f -t discovery-serverCopy to Clipboard Copied! Toggle word wrap Toggle overflow
4.2. Changing the Discovery username and password Copiar enlaceEnlace copiado en el portapapeles!
You can change the Discovery server login username and password after installation, and your organization may require you to change them periodically. You should choose username and password values that align with common security best practices and your organization’s security standards.
The Discovery server password must meet the following requirements:
- must be at least ten characters long
- must contain at least one number
- must contain at least one letter
- cannot match the login username
- cannot match known weak passwords
- cannot match the previously provided Discovery default password
To reset the username, run the following command and follow the prompts to enter the new username:
discoveryctl reset_admin_username
discoveryctl reset_admin_username
To reset the password, run the following command and follow the prompts to enter the new password:
discoveryctl reset_admin_password
discoveryctl reset_admin_password
If Discovery is running when you change the username or password, you must restart Discovery for the new values to take effect.
To restart Discovery, run the following command:
systemctl --user restart discovery-app
systemctl --user restart discovery-app
Red Hat does not provide support for lost passwords for Discovery, and Discovery does not offer a method to recover passwords; however, you can reset your username or password at any time after installation completes.
4.3. Setting other post-installation preferences Copiar enlaceEnlace copiado en el portapapeles!
If you want to access Discovery on another computer in the same network, you must allow traffic on TCP port 9443 through any firewall to or on the system that is running the Discovery server.