Este contenido no está disponible en el idioma seleccionado.
Chapter 7. Creating a boot ISO installer image with RHEL image builder
You can use RHEL image builder to create bootable ISO Installer images. These images consist of a .tar file that has a root file system. You can use the bootable ISO image to install the file system to a bare-metal server.
RHEL image builder builds a manifest that creates a boot ISO that contains a root file system. To create the ISO image, select the image type image-installer. RHEL image builder builds a .tar file with the following content:
- A standard Anaconda installer ISO
- An embedded RHEL system tar file
- A default Kickstart file that installs the commit with minimal default requirements
The created installer ISO image includes a pre-configured system image that you can install directly to a bare-metal server.
7.1. Creating a boot ISO installer image using the RHEL image builder CLI Copiar enlaceEnlace copiado en el portapapeles!
You can create a customized boot ISO installer image by using the RHEL image builder command-line interface. The resulting image is an .iso file that contains a .tar file, which you can install on your operating system.
The .iso file is set up to boot Anaconda and install the .tar file for setting up the system. You can use the created ISO image file on a hard disk or to boot in a virtual machine, such as an HTTP Boot or a USB installation.
The installation (.iso) image type does not accept partition customization. If you try to manually configure the filesystem customization, it is not applied to any system built by the (.iso) image. ISO image built with file system customizations might cause Kickstart errors, and the installation does not reboot automatically. For more information, see Automate a RHEL ISO installation generated by image builder.
Prerequisites
- You have created a blueprint for the image and customized it with a user included and pushed it back into RHEL image builder. See Supported image customizations.
Procedure
Create the ISO image:
# image-builder build iso --blueprint <blueprint_name>-
<blueprint_name>with the name of the blueprint you created <image_installer>is the image typeThe compose process starts and might take some minutes complete.
RHEL image builder builds an
.isofile that contains a.tarfile. The.tarfile is the image that is installed for the operating system. The.isois set up to boot Anaconda and install the.tarfile to set up the system.
-
Next steps
j In the directory where you downloaded the image file.
-
Locate the
.isoimage that you built. Mount the ISO image.
$ mount -o ro <path_to_iso> /mntYou can find the
.tarfile at the/mnt/liveimg.tar.gzdirectory.List the
.tarfile content:$ tar ztvf /mnt/liveimg.tar.gz
7.2. Creating a boot ISO installer image by using RHEL image builder in the GUI Copiar enlaceEnlace copiado en el portapapeles!
You can build a customized boot ISO installer image by using the RHEL image builder GUI. You can use the resulting ISO image file on a hard disk or boot it in a virtual machine. For example, in an Hypertext Transfer Protocol (HTTP) Boot or a Universal Serial Bus (USB) installation.
The installation (.iso) image type does not accept partitions customization. If you try to manually configure the filesystem customization, it is not applied to any system built by the installation image. Mounting an ISO image built with RHEL image builder file system customizations causes an error in the Kickstart, and the installation does not reboot automatically. For more information, see Automate a RHEL ISO installation generated by image builder.
Prerequisites
- You have opened the RHEL image builder app from the web console in a browser.
- You have created a blueprint for your image. See Creating a RHEL image builder blueprint in the web console interface.
Procedure
- On the RHEL image builder dashboard, locate the blueprint that you want to use to build your image. Optionally, enter the blueprint name or a part of it into the search box at the upper left, and click Enter.
On the right side of the blueprint, click the corresponding button.
The Create image dialog wizard opens.
On the Create image dialog wizard:
-
In the Image Type list, select
"RHEL Installer (.iso)". - Click .
On the Review tab, click Create.
After the build process is complete, you can see the image build complete status.
-
In the Image Type list, select
Verification
After the image is successfully created, you can download it.
-
Click Download to save the
"RHEL Installer (.iso)"image to your system. -
Navigate to the folder where you downloaded the
"RHEL Installer (.iso)"image. -
Locate the
.tarimage you downloaded. Extract the
"RHEL Installer (.iso)"image content.$ tar -xf <content>.tar
7.3. Installing a bootable ISO to a medium and booting it Copiar enlaceEnlace copiado en el portapapeles!
Install the bootable ISO image you created by using RHEL image builder on a bare metal system.
Prerequisites
- You created the bootable ISO image by using RHEL image builder.
- You have downloaded the bootable ISO image.
-
You installed the
ddtool. - You have a USB flash drive with enough capacity for the ISO image. The required size varies depending on the packages you selected in your blueprint, but the minimum size is 8 GB.
Procedure
Write the bootable ISO image directly to the USB drive using the
ddtool. For example:dd if=installer.iso of=/dev/sdXWhere
installer.isois the ISO image file name and/dev/sdXis your USB flash drive device path.- Insert the flash drive into a USB port of the computer you want to boot.
Boot the ISO image from the USB flash drive.
When the installation environment starts, you might need to complete the installation manually, similarly to the default Red Hat Enterprise Linux installation.