이 콘텐츠는 선택한 언어로 제공되지 않습니다.

Chapter 14. Creating stateless images with RHEL image builder


Use RHEL image builder to create stateless images. After building the image in the pxe-tar-xz format, you can use the resulting stateless PXE image output in PXE or UEFI HTTP network boot environments. For more information, see the README contained within the generated tarball file.

14.1. Building a PXE-bootable RHEL image with image builder CLI

Use the RHEL image builder CLI and a customized blueprint to create a RHEL image for PXE deployments. The tar file includes kernel, initrd, and root file system components. Stateless PXE images are available for the 64-bit ARM and 64-bit x86 architectures and support some customizations.

Prerequisites

  • An existing customized blueprint.

Procedure

  1. Build the customized RHEL image:

    $ image-builder build pxe-tar-xz --blueprint <blueprint-name>

    RHEL image builder creates the image in the current directory path:

    <os>-pxe-tar-xz-<architecture>.tar.xz
  2. Extract the image components to your boot server. Locate the tar file. If the tool created a directory, enter that directory to find the .tar.xz file. Then, extract it to your TFTP root:

    $ sudo tar -xJf <image-name>.tar.xz -C /var/lib/tftpboot/rhel-pxe/

14.2. Booting a stateless image in a PXE boot environment with an HTTP server

Serve the rootfs.img image by using HTTP for faster and more reliable transfers than TFTP alone.

Prerequisites

  • An <os>-pxe-tar-xz-<architecture>.tar.xz image exists.
  • The target system has enough memory to hold the kernel, initrd, and rootfs simultaneously.
  • 2GiB of capacity for small images, but it varies depending on the workload.

    Warning

    Insufficient RAM can result in a kernel panic during the boot process.

Procedure

  1. Prepare the TFTP server by placing the vmlinuz, initrd.img, and rootfs.img files in the root directory of your TFTP server.
  2. Modify the grub.cfg configuration, replacing the HTTP-SERVER placeholder with the actual URL of your HTTP server.
  3. Serve the rootfs.img by using HTTP inside the directory containing the rootfs.img file:

    $ python3 -m http.server 8000

14.3. Booting a stateless image in a PXE boot environment with a combined image

Eliminate the need for a separate HTTP server by merging the root filesystem into the initial ramdisk.

Prerequisites

  • A PXE stateless image exists.
  • The target system has enough memory to hold the kernel, initrd, and rootfs simultaneously.
  • 2GiB of capacity for small images, but it varies depending on the workload.

    Warning

    Insufficient RAM can result in a kernel panic during the boot process.

Procedure

  1. Create the rootfs CPIO archive:

    $ echo rootfs.img | cpio -c --quiet -L -o > rootfs.cpio
  2. Concatenate the initrd.img and rootfs.cpio images:

    $ cat initrd.img rootfs.cpio > combined.img
  3. Boot the system by using the resulting combined.img file as your initrd in your PXE configuration.

    Note

    Using a combined image significantly increases the initial network payload. Because the entire root filesystem is transferred during the PXE phase, ensure your network bandwidth can handle the increased traffic, especially when booting multiple systems simultaneously.

Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 문서 정보

Legal Notice

Theme

© 2026 Red Hat
맨 위로 이동