Este contenido no está disponible en el idioma seleccionado.
Chapter 6. Creating system images by using RHEL image builder web console interface
RHEL image builder is a tool for creating custom system images. To control RHEL image builder and create your custom system images, you can use the web console interface.
6.1. Accessing the RHEL image builder dashboard in the RHEL web console Copiar enlaceEnlace copiado en el portapapeles!
With the cockpit-image-builder plugin for the RHEL web console, you can manage image builder blueprints and composes by using a graphical interface.
Prerequisites
- You must have root access to the system.
- You installed RHEL image builder.
-
You installed the
cockpit-image-builderpackage.
Procedure
-
On the host, open
https://localhost:9090/in a web browser. - Log in to the web console as the root user.
To display the RHEL image builder controls, click the Image Builder button, in the upper-left corner of the window.
The RHEL image builder dashboard opens, listing existing blueprints, if any.
6.2. Creating a blueprint in the web console interface Copiar enlaceEnlace copiado en el portapapeles!
Before creating your customized RHEL system image, you must create a blueprint. All customizations are optional.
Prerequisites
- You opened the RHEL image builder application from the web console in a browser. See Accessing RHEL image builder GUI in the RHEL web console.
Procedure
-
Click Create Blueprint. On the
Image outputpage, selectReleaseversion,Architecture, and target environment, then click Next. -
Optional: On the
File system configurationpage, selectManually configure partitionsto add mount points, such as/var,/home,/tmpand specifyMinimum size partition. Click Next. -
Optional: On the
Additional packagespage, search for packages, move them toChosen packages, then click Next. -
Optional: On the
Userspage, click Add user to enter aUsername, aPassword, anSSH key, andAdministratorprivileges. Click Next -
Optional: On the
Timezonepage, enter a time zone, for example, "US/Eastern" andNTPservers. Click Next. -
Optional: On the
Localepage, enter the languages and keyboard identifier. For example: "us" and ["en_US.UTF-8"]. Click Next. -
Optional: On the
HostnameandKernelpages, add a hostname, and kernel command-line arguments. Click Next after each page. -
Optional: On the
FirewallandSystemd servicespages, configureport, firewall services, and systemd services to enable or disable. Click Next after each page. -
On the
Detailspage, enter the blueprint name and optional description, then click Next. -
On the
Reviewpage, review the details and click Create blueprint or Create blueprint and build image(s).
6.3. Importing a blueprint in the RHEL image builder web console interface Copiar enlaceEnlace copiado en el portapapeles!
You can import and use an already existing blueprint. The system automatically resolves all the dependencies.
Prerequisites
- You have opened the RHEL image builder app from the web console in a browser.
- You have a blueprint that you want to import to use in the RHEL image builder web console interface.
Procedure
-
On the RHEL image builder dashboard, click . The
Import blueprintwizard opens. -
From the
Uploadfield, either drag or upload an existing blueprint. This blueprint can be in eitherTOMLorJSONformat. - Click . The dashboard lists the blueprint you imported.
Verification
When you click the blueprint you imported, you have access to a dashboard with all the customizations for the blueprint that you imported.
To verify the packages that have been selected for the imported blueprint, navigate to the
Packagestab.- To list all the package dependencies, click . The list is searchable and can be ordered.
Next steps
Optional: To modify any customization:
-
From the
Customizationsdashboard, click the customization you want to make a change to. Optionally, you can click to navigate to all the available customization options.
-
From the
6.4. Exporting a blueprint from the RHEL image builder web console interface Copiar enlaceEnlace copiado en el portapapeles!
You can export a blueprint to use the customizations in another system. You can export the blueprint in the TOML or in JSON format. Both formats work on the CLI and also in the API interface.
Prerequisites
- You have opened the RHEL image builder app from the web console in a browser.
- You have a blueprint that you want to export.
Procedure
- On the image builder dashboard, select the blueprint you want to export.
-
Click
Export blueprint. TheExport blueprintwizard opens. Click the button to download the blueprint as a file or click the button to copy the blueprint to the clipboard.
- Optional: Click the button to copy the blueprint.
Verification
- Open the exported blueprint in a text editor to inspect and review it.
6.5. Creating a system image by using RHEL image builder in the web console interface Copiar enlaceEnlace copiado en el portapapeles!
You can create a customized RHEL system image from a customized blueprint by completing these steps.
Prerequisites
- You opened the RHEL image builder app from the web console in a browser.
- You created a blueprint.
Procedure
- In the RHEL image builder dashboard, click the blueprint tab.
- On the blueprint table, find the blueprint you want to build an image.
- On the right side of the chosen blueprint, click Create Image. The Create image dialog wizard opens.
On the Image output page, complete the following steps:
- From the Select a blueprint list, select the image type you want.
From the Image output type list, select the image output type you want.
Depending on the image type you select, you need to add further details.
- Click Next.
On the Review page, review the details about the image creation and click Create image.
The image build starts and takes up to 20 minutes to complete.
Verification
After the image finishes building, you can:
Download the image.
-
On the RHEL image builder dashboard, click the
Node options (⫶)menu and select Download image.
-
On the RHEL image builder dashboard, click the
Download the logs of the image to inspect the elements and verify if any issue is found.
-
On the RHEL image builder dashboard, click the
Node options (⫶)menu and select Download logs.
-
On the RHEL image builder dashboard, click the