Suscríbase al feed

Image mode for Red Hat Enterprise Linux (RHEL) uses the same tools, skills, and patterns as containerized applications to deliver an operating system (OS) that is easier to build, ship, and run. Image mode for Red Hat Enterprise Linux: A quick start guide covers the concepts behind image mode and helps introduce users to foundational concepts required to package operating systems in Open Container Initiative (OCI) container images.

Many of the same concepts users know from using package mode will apply, but one of the main differences is that package operations, e.g. DNF install, update, etc., are performed during the image build process. This means remediating common vulnerabilities and exposures (CVEs) is not done directly on a live system by running dnf update. Instead, the container build process will build a new image containing the updates and push that to a container registry. Then the image mode system will pull that image down using bootc update, and the update will apply after the next reboot. In this case, the behavior of the OS intentionally mimics how containerized applications work. 

Red Hat Insights provides views and tools to help you manage your running image mode systems alongside your package mode systems.

Connect your image mode RHEL systems

To get started:

If you're using Red Hat Satellite, use your preferred registration method, making sure that Insights registration is enabled. For example, if you're using global registration, click Hosts --> Register Host --> Advanced  and make sure "Setup Insights" is enabled.  Then generate the registration command.

If you're directly connected, or connected through a proxy, use the Remote Host Configuration (RHC) client to connect. For example, rhc connect -s <AK> -o <org id>.

Alternatively, you can add an activation key to your build configuration and your image mode system will use that activation key to connect the first time it boots. See an example of including an activation key in a container build.

View your image mode RHEL systems

After you have connected your first image mode RHEL system to Insights, you can view it in the Hybrid Cloud Console to view predictive analytics and system facts to help you manage this new infrastructure. To view your connected image mode RHEL system:

  1. Navigate to Insights > Inventory > Systems
  2. Select the "System type" filter and choose the "Image mode" option
  3. Click the system name
View your image mode RHEL systems

The system inventory list in Red Hat Insights is filtered to only show image mode RHEL systems. Each system name is a hyperlink to view more system details.

On the details for your image mode system, you will see a panel titled "BOOTC" that contains facts about the images related to this system.

system details page in Red Hat Insights

A list of bootc system facts displayed on the system details page in Red Hat Insights, including the running image, stage image, available image, and rollback image.

Clicking on the Advisor tab will show you the list of the recommendations that Insights provides to help you maintain image mode systems. If you are familiar with recommendations for package mode systems, you might notice some different options for remediating issues on image mode systems. For image mode systems, Insights will provide playbook remediations only for changes that will persist across reboots. Other remediations will require you to update your application image and then update your system to use this new image.

Similarly, resolving CVEs often includes installing package updates that are delivered with Red Hat product advisories. To update packages on image mode RHEL systems, you should update and publish a new image to your repository and then update your system to use this new image. Not only can we see when systems have outstanding CVEs that need addressing, Insights also shows us when newer images are available but not yet applied to registered systems. It’s a powerful tool to help make sure systems are running with the latest image updates. 

View the images and hashes deployed as image mode RHEL systems

As you deploy and connect more image mode systems, you will likely have multiple images and image hashes that were used to deploy those systems. Insights provides a catalog of these images and hashes, which can be viewed by clicking the image view toggle from the inventory list. To see this list:

  1. Navigate to Red Hat Insights > Inventory > Systems
  2. Click the “Image view” toggle in the upper right corner of the screen
View the images and hashes deployed as image mode RHEL systems

A list of the bootc images that were used to create registered systems in Red Hat Insights, including how many systems are running each hash of each image.

Update your image mode RHEL systems

For image mode RHEL systems, automatic updates are on by default. In this state, the system will check the registry on a regular interval and update to a new image if one is detected. If you have turned this off for your system, or if you don’t want to wait for the next update interval, Insights lets you run an on-demand bootc upgrade:

  1. Navigate to Insights > Automation Toolkit > Tasks
  2. Click "Select systems"
  3. Select the image mode systems that you want to update (they must be connected with RHC or from Satellite with a Cloud Connector integration.)
  4. Click "Run task"
Update your image mode RHEL systems

A view of the task to initiate a bootc update for an image mode RHEL system. Includes a description of the task, a selection of target systems, and a button to run the task.

Next steps

Register your first image mode RHEL system to Insights and explore the analytics and management that it provides.

If you still need to get started with image mode for RHEL, we recommend you read the Image mode for Red Hat Enterprise Linux: A quick start guide, which covers the concepts behind image mode and introduces the foundational concepts required to package operating systems in Open Container Initiative (OCI) container images . And be sure to have a look at our bootc examples repo that includes useful scenarios for a number of platformss. We also encourage you to check out the full documentation when you’re ready to go deeper.

Learn more about image mode for RHEL


Sobre el autor

Shane McDowell is a Principal Product Manager for Red Hat. He is focused on helping customers manage their infrastructure in the hybrid cloud. He brings 20+ years of experience with delivering and supporting technology solutions to users in a variety of industries, including Information Technology, Talent Acquisition and Residential Management.

Read full bio
UI_Icon-Red_Hat-Close-A-Black-RGB

Navegar por canal

automation icon

Automatización

Las últimas novedades en la automatización de la TI para los equipos, la tecnología y los entornos

AI icon

Inteligencia artificial

Descubra las actualizaciones en las plataformas que permiten a los clientes ejecutar cargas de trabajo de inteligecia artificial en cualquier lugar

open hybrid cloud icon

Nube híbrida abierta

Vea como construimos un futuro flexible con la nube híbrida

security icon

Seguridad

Vea las últimas novedades sobre cómo reducimos los riesgos en entornos y tecnologías

edge icon

Edge computing

Conozca las actualizaciones en las plataformas que simplifican las operaciones en el edge

Infrastructure icon

Infraestructura

Vea las últimas novedades sobre la plataforma Linux empresarial líder en el mundo

application development icon

Aplicaciones

Conozca nuestras soluciones para abordar los desafíos más complejos de las aplicaciones

Original series icon

Programas originales

Vea historias divertidas de creadores y líderes en tecnología empresarial