Red Hat Image Builder
Insights image builder bundled with Insights enables you to create customized images and upload the image to the target cloud environments. Insights image builder is a tool bundled with Red Hat Insights within Red Hat Hybrid Cloud Console.
During the bootstrap part of the infrastructure we aim to provision base images using Insights Image builder and upload these golden images to the public cloud provider Azure. Automation will cover building customized system images, that can have a subscription activation key already embedded and uploading these images to the Azure. Custom RHEL images are created and used to build VMs for building core Red Hat Management Infrastructure before having Red Hat Satellite provisioning feature. To be able to upload these images to the Azure Red Hat Insights Image Builder requires authorization from the Azure, and the document covers how to grant this authorization.
Red Hat Management Core Infrastructure
We can provision VMs on Azure (for any public provider or on-prem baremetal systems) by using Red Hat Insights Image Builder tool to build the core Red Hat Management Infrastructure.
We aim to provision the services below with this approach;
-
Jumpstart/ Bastion (RHEL 9)
-
PKI for root Certificate Authority (RHEL 9)
-
RHIdM VMs (RHEL 9)
-
Red Hat Satellite Server (RHEL 8)
Build Integration between Red Hat Hybrid Cloud Console and Azure
-
Ensure you have
Azure Tenant GUID
andSubscription ID
to use -
Access to the Integrations
-
Click
Add Integration
-
Select
Microsoft Azure
and clickNext
-
Type a name for the integration like
azure_integration
and clickNext
-
Select
Launch images
from the list and clickNext
-
Click
Take me to Lighthouse
to be able to configure Azure for allowing this integration. -
Review and confirm
Subscription
,Region
,Msp Offer Name`and `Msp Offer Description
on the screen. If they seem correct clickReview + Create
-
Review and confirm Azure Marketplace Terms and click
Create
-
Return to the previous window and type Azure
Subscription ID
on the screen and ClickNext
-
Review and confirm the information and click
Add
Red Hat Hybrid Cloud Console is integrated with Azure as a source.
Authorize Image Builder
-
Ensure that Red Hat Insights subscription exist your account. Red Hat Insights is included with your Red Hat Enterprise Linux subscription.
-
Access to the Insights image builder
-
Log in with your Red Hat credentials.
-
From the images select
Create Blueprint
-
Select
Azure
as a public cloud provider and clickNext
-
Select
Use an account configured from Sources.
option, and select the source name which was configured on the previous step. -
Click
Authorize image builder
to authorize Insights image builder to push images to the Microsoft Azure which will redirect you to the Azure portal where you can grant permissions by clickingAccept
. You need to haveOwner
orUser Access Administrator
role and subscription must includeMicrosoft.Storage
andMicrosoft.Compute
as a resource provider. -
Confirm that Insights Image Builder is authorized for your tenant.
-
Search for
Azure Entra ID
and choose Enterprise applications, from the left menu. -
Search for
Red Hat Image Builder
and confirm it is authorized.
-
-
Add the Enterprise application as a contributor to your
Subscriptions
.-
In the search bar, type
Subscriptions
and select the subscription for the project. This redirects you to theSubscriptions
dashboard. -
Select your
Subscription
. -
On the left menu, click
Access control (IAM)
to add a permission so theInsights image builder
application can access to all your resource groups. -
From the menu, click the tab
Role assignments
. -
Click
Add
. -
From the dropdown menu, choose
Add role assignment
. A menu appears on the left side. -
Insert the following details:
-
Role: Assign the
Contributor role
-
Assign access to: User, group, service principal. Add members: Click
Select members
and typeRed Hat
in the search bar. Press enter. -
Select:
Red Hat Image Builder
application
-
-
The Insights Image Builder application is now authorized to push images to Microsoft Azure cloud.
Detailed information provided by the official documentation in Red Hat Image Builder