8.2. Creating a pre-hardened image with RHEL image builder


RHEL image builder on-premise supports the OpenSCAP integration. This integration enables the production of pre-hardened RHEL images.

By setting up a blueprint, you can perform the following actions:

  • Create images that are pre-hardened and compliant with a specific profile
  • Deploy the pre-hardened images in a VM, or a bare-metal environment, for example.

Prerequisites

  • You are logged in as the root user or a user who is a member of the weldr group.
  • The openscap and scap-security-guide packages are installed.

Procedure

  1. Create a hardening blueprint in the TOML format, using the OpenSCAP tool and scap-security-guide content, and modify it if necessary:

    # oscap xccdf generate fix --profile=<profileID> --fix-type=<blueprint> /usr/share/xml/scap/ssg/content/ssg-rhel10-ds.xml > cis.toml

    Replace <profileID> with the profile ID that the system should comply with, for example, cis.

  2. Start the build of hardened image:

    # image-builder build <image_type> --blueprint <blueprint_name>

    Replace <image_type> with any image type, for example, qcow2.

    After the image build is ready, you can use your pre-hardened image on your deployments. See Creating a virtual machine from a KVM guest image.

Verification

After you deploy your pre-hardened image, you can perform a configuration compliance scan to verify that the image is aligned with the selected security profile.

重要

Performing a configuration compliance scanning does not guarantee the system is compliant. For more information, see Configuration compliance scanning.

Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

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

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。 最新の更新を見る.

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

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

会社概要

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

Theme

© 2026 Red Hat
トップに戻る