Creating system images with RHEL Image Builder using CLI
If you prefer to use the command line interface (CLI) for your Red Hat Enterprise Linux local instance, Image Builder can still be used to create golden images for your workflow needs. The image builder is based on the osbuild-composer upstream project and is available in RHEL as an installable package.
What will you learn?
- Creating RHEL images in the Image Builder service locally
- Configuring images
What do you need before starting?
- Red Hat account
Create an image with the CLI
- Install the Image Builder plugins with the following command:
- Enable the extra services:
- After enabling the socket, you can restart the osbuild-composer service:
- After these steps, the web console will be enabled on port 9090 of your server, and you can access it with your browser.
- Once open, click the Create Image button to open the Image Builder dialogue wizard.
- Select your preferred RHEL release and designate your target cloud environment.
- Proceed through the wizard steps to register and name your image. You can register your image later if you do not currently have an activation key.
The built image can also be customized according to your organization’s specifications using Image Builder blueprints. To learn more about these options, please see this blog post.