Rechercher

Ce contenu n'est pas disponible dans la langue sélectionnée.

Chapter 2. Building a RHEL image with custom repositories

download PDF

Start by using the Insights image builder application to build a RHEL for Edge image. RHEL for Edge is optimized for edge computing to provide faster data delivery. It also enables updates with OSTree, which is a git-like model of updates that sends only the changes in your update, so that updates are quick and rollback is easy. Optionally, you can add packages from custom repositories outside of Red Hat to customize your RHEL for Edge image and enable it with the features and packages that you need for your business.

Warning

Using RHEL for Edge customized images that were created using the on-premise version of RHEL image builder is not supported by the Insights image builder application. For more details, see Edge images supportability.

Prerequisites

You must have a Red Hat Hybrid Cloud Console account.

Procedure

  1. Access Red Hat Hybrid Cloud Console platform and log in.
  2. From the console dashboard, navigate to Red Hat Insights > RHEL > Inventory > Images. The Insights image builder environment opens.
  3. In the image builder application, click the Immutable (OSTree) tab.
  4. Click Create new image.

    On the Create image wizard, follow the steps:

  5. On the Details page, enter an image name and click Next.
  6. On the Options page, select the following details:

    1. Select the image base release for your image.
    2. Select the option RHEL for Edge Installer (.iso).
    3. Click Next.
  7. On the System registration page, follow the steps:

    1. Enter a username. This is the username to log in to your system after it is created.
    2. Enter a public SSH key to create a user for your image.
    3. Click Next.
  8. On the Activation Keys page, follow the steps:

    1. From the dropdown menu, choose an activation key to use for the image. See the Creating an activation key documentation for more details.

      You can manage the activation key that you chose by accessing Activation keys in the Console.

    2. Click Next.
  9. On the Content page:

    1. On the Additional Red Hat packages page, add any core RHEL package, for example, emacs.

      1. In the Available packages search field, enter emacs and click the search icon.
      2. Select emacs from the search results.
      3. Click the Add Selected or Add all arrow button to add emacs to the list.
    2. Click Next.
  10. On the Custom repositories page:

    1. Select the custom repository you added.
    2. Click Next.
  11. On the Review page:

    1. Check the data is correct and click Create image.

Verification

The image may take some minutes to build. After your image is created, you can see it on the Images page. You can see the following image details:

  • Name
  • Version
  • Created
  • Type
  • Release
  • Status
  • Created or Updated
  • Description
  • Packages
  • Changes from previous version
  • User information, such as username and ssh key.
Note

Every time that you created an updated version of the image, the system keeps using the same activation key that you previously added to the image. To change the activation key, you need to manually registry the system again.

Next Steps

After you build the image, install it on your device. When you run the Subscription Manager tool, you can see that the device was registered with the Activation key that you chose. If you did not choose an activation key, then you can proceed to register your system with the Red Hat Remote Host Configuration (rhc) client.

Red Hat logoGithubRedditYoutubeTwitter

Apprendre

Essayez, achetez et vendez

Communautés

À propos de la documentation Red Hat

Nous aidons les utilisateurs de Red Hat à innover et à atteindre leurs objectifs grâce à nos produits et services avec un contenu auquel ils peuvent faire confiance.

Rendre l’open source plus inclusif

Red Hat s'engage à remplacer le langage problématique dans notre code, notre documentation et nos propriétés Web. Pour plus de détails, consultez leBlog Red Hat.

À propos de Red Hat

Nous proposons des solutions renforcées qui facilitent le travail des entreprises sur plusieurs plates-formes et environnements, du centre de données central à la périphérie du réseau.

© 2024 Red Hat, Inc.