1.2. Enabling extended support repositories for image building


If you have an extended support (EUS) release of MicroShift or Red Hat Enterprise Linux (RHEL), you must enable the RHEL EUS repositories for image builder to use. If you do not have an EUS version, you can skip these steps.

Prerequisites

警告

Keeping component versions in a supported configuration of Red Hat Device Edge can require updating MicroShift and RHEL at the same time. Ensure that your version of RHEL is compatible with the version of MicroShift you are updating to, especially if you are updating MicroShift across two minor versions. Otherwise, you can create an unsupported configuration, break your cluster, or both. For more information, see the Red Hat Device Edge release compatibility matrix.

Procedure

  1. Create the /etc/osbuild-composer/repositories directory by running the following command:

    $ sudo mkdir -p /etc/osbuild-composer/repositories
  2. Copy the /usr/share/osbuild-composer/repositories/rhel-9.4.json file into the /etc/osbuild-composer/repositories directory by running the following command:

    $ sudo cp /usr/share/osbuild-composer/repositories/rhel-9.4.json /etc/osbuild-composer/repositories/rhel-9.4.json
  3. Update the baseos source by modifying the /etc/osbuild-composer/repositories/rhel-9.4.json file with the following values:

    # ...
    "baseurl": "https://cdn.redhat.com/content/eus/rhel<9>/<9.4>//baseos/os", 
    1
    
    # ...
    1
    Replace <9> with the major RHEL version you are using, and replace <9.4> with the <major.minor> version. Be certain that the RHEL version you choose is compatible with the MicroShift version you are using.
  4. Optional. Apply the baseos update by running the following command:

    $ sudo sed -i "s,dist/rhel<9>/<9.4>/$(uname -m)/baseos/,eus/rhel<9>/<9.4>/$(uname -m)/baseos/,g" \
    /etc/osbuild-composer/repositories/rhel-<9.4>.json 
    1
    1
    Replace <9> with the major RHEL version you are using, and replace <9.4> with the <major.minor> version. Be certain that the RHEL version you choose is compatible with the MicroShift version you are using.
  5. Update the appstream source by modifying the /etc/osbuild-composer/repositories/rhel-<major.minor>.json file with the following values:

    # ...
    "baseurl": "https://cdn.redhat.com/content/eus/rhel<9>/<9.4>//appstream/os", 
    1
    
    # ...
    1
    Replace <9> with the major RHEL version you are using, and replace <9.4> with the <major.minor> version. Be certain that the RHEL version you choose is compatible with the MicroShift version you are using.
  6. Optional. Apply the appstream update by running the following command:

    $ sudo sed -i "s,dist/rhel<9>/<9.4>/$(uname -m)/appstream/,eus/rhel<9>/<9.4>/$(uname -m)/appstream/,g" \
    /etc/osbuild-composer/repositories/rhel-<9.4>.json 
    1
    1
    Replace <9> with the major RHEL version you are using, and replace <9.4> with the <major.minor> version. Be certain that the RHEL version you choose is compatible with the MicroShift version you are using.

Verification

You can verify the repositories by using the composer-cli tool to display information about the source.

  1. Verify the baseos source by running the following command:

    $ sudo composer-cli sources info baseos | grep 'url ='

    Example output

    url = "https://cdn.redhat.com/content/eus/rhel9/9.4/x86_64/baseos/os"

  2. Verify the appstream source by running the following command:

    $ sudo composer-cli sources info appstream | grep 'url ='

    Example output

    url = "https://cdn.redhat.com/content/eus/rhel9/9.4/x86_64/appstream/os"

Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

Red Hat ドキュメントについて

Legal Notice

Theme

© 2026 Red Hat
トップに戻る