Red Hat is pleased to announce additional capabilities and support to easily build and launch Red Hat Enterprise Linux (RHEL) on Oracle Cloud Infrastructure (OCI). This is one of many outcomes from our collaboration, providing two exciting paths to assembling and deploying RHEL optimized and supported to run on virtual and bare metal OCI compute shapes.
Insights image builder
Coming soon! Red Hat will soon add OCI as an option to build and launch RHEL on OCI to our Red Hat Insights image builder workflow, as demonstrated in this preview image. This will provide complete integration with Insights management capabilities that include Inventory, Compliance, Vulnerability, Patching and much more.
![Screenshot of Image Builder create conventional image screen](/rhdc/managed-files/styles/wysiwyg_full_width/private/rhel-oci-img1.png.webp?itok=198J9zeQ)
RHEL image builder
For on-premises build nodes, the RHEL image builder enables you to assemble a highly customized “gold” image that conforms to your requirements, and more easily upload them to your account at OCI to launch from the console or existing orchestration workflows. This even includes applying industry-standard security compliance policies so that new instances are more secure by default.
Build and launch in OCI
The following guide demonstrates setting up a RHEL image builder node on RHEL 9, building a RHEL image that incorporates the CIS Level 2 baseline security compliance policy, and uploading and launching in OCI.
Prerequisites:
- Access to a RHEL 9 virtual machine with image builder installed and accessible.
- Access to an OCI tenancy with appropriate permissions and limits to create and launch a custom image on OCI virtual machine shapes. The user should have a set of API keys in order to provide image builder the credentials to upload the image.
- A blueprint file (optional).
- Install image builder
# yum install -y osbuild-composer composer-cli cockpit-composer bash-completion scap-security-guide openscap-utils openscap-scanner # systemctl enable --now osbuild-composer.socket # systemctl enable --now cockpit.socket # firewall-cmd --add-service=cockpit && firewall-cmd --add-service=cockpit --permanent # source /etc/bash_completion.d/composer-cli
- Login into the image builder web console using the URL at port 9090 https://HOSTNAME_OR_IP:9090
Click Image Builder on the side navigation menu.
Click Import Blueprint to upload a copy of the sample CIS L2 blueprint.
- Note 1: You will need to update the user credentials and SSH keys as what is defined are non-functional placeholder values.
- Note 2: Review and optionally modify the partition sizes according to how large you would like the final image to be.
![Screenshot of Image Builder "Import blueprint" button](/rhdc/managed-files/styles/wysiwyg_full_width/private/rhel-oci-img2.png.webp?itok=uz-_lGhQ)
- After the blueprint file is uploaded, select Create Image.
![Screenshot of Image Builder "Create image" button](/rhdc/managed-files/styles/wysiwyg_full_width/private/rhel-oci-img3.png.webp?itok=mioMlMvb)
- In the Create Image window, select Oracle Cloud Infrastructure (.qcow2) for the image output type.
Check the Upload to OCI checkbox.
![Screenshot of Image Builder "Upload to OCI" checkbox (checked)](/rhdc/managed-files/styles/wysiwyg_full_width/private/rhel-oci-img4.png.webp?itok=FvdP_aPs)
- Enter the User OCID and the Private key and Fingerprint.
![Screenshot of Image Builder destination details screen](/rhdc/managed-files/styles/wysiwyg_full_width/private/rhel-oci-img5.png.webp?itok=eFY8Zf71)
- Fill in the destination details of the resulting image (image name, OCI bucket, Bucket namespace, etc.).
![Screenshot of Image Builder destination details screen](/rhdc/managed-files/styles/wysiwyg_full_width/private/rhel-oci-img6.png.webp?itok=viK611iw)
- Click Next, then click Create.
It should only take a couple minutes for image builder to create the image and upload it into OCI. Once it is done, you should see the image listed under Custom Images in your OCI tenancy.
After the image is created and uploaded into your OCI tenancy, we need to enable the bare metal shapes.
- Go to the custom image in your OCI tenancy under Compute -> Custom Images. Due to the way OCI imports custom images, you will first need to click on the image name, then select “Edit image capabilities” and save. No changes need to be made, but this step ensures it re-saves with the required attributes needed to launch.
- Click Create Instance.
- Change the Name (such as RHEL-9-CIS-L2)
- Change the Shape (such as to AMD or Intel Flexible OCPU count, VM.Standard3.Flex)
- Optionally add SSH keys. This may not be necessary if User+SSH were defined within the Blueprint of the RHEL build. Your own security policies may dictate the recommended practice for users and credentials.
- Click Create.
Once the instance State is “Succeeded”, you can log in via SSH at the IP address listed on the instance details page.
- Connect to Insights to validate with Insights Compliance reporting and remediation tools.
[myadmin@rhel-9-cis-l2 ~]$ sudo rhc connect --organization ORGID --activation-key ACT_KEY Connecting rhel-9-cis-l2 to Red Hat. This might take a few seconds. ● Connected to Red Hat Subscription Management ● Connected to Red Hat Insights ● Activated the Remote Host Configuration daemon ● Enabled console.redhat.com services: remote configuration, insights, remediations, compliance Successfully connected to Red Hat! Manage your connected systems: https://red.ht/connector [myadmin@rhel-9-cis-l2 ~]$ sudo insights-client --compliance System uses SSG version 0.1.69 Running scan for xccdf_org.ssgproject.content_profile_cis... this may take a while Uploading Insights data. Successfully uploaded report for rhel-9-cis-l2.
![Screenshot of CIS RHEL 9 Benchmark report](/rhdc/managed-files/styles/wysiwyg_full_width/private/rhel-oci-img7_0.png.webp?itok=EMAxdJvK)
Conclusion
The ability to easily create “gold” images for new deployments that are tailored to individual customers’ specifications reduces complexity, technical debt and time to deployment. By incorporating security compliance policies that integrate into Insights Compliance, Vulnerability, and Advisor functionality, Red Hat makes it easier than ever for customers to deploy and manage their infrastructure.
To learn more, visit our documentation on Composing a customized RHEL system image and our hosted Insights image builder for new functionality delivered regularly.
About the author
Terry Bowling has been designing and working with customers on UNIX and GNU/Linux environments since 1999. He brings this experience to the RHEL Product Management team to provide the best experience to assembling and deploying RHEL for customers. This includes the RHEL installer, image builder and related build services for RHEL being developed at Console.RedHat.com.
Browse by channel
Automation
The latest on IT automation for tech, teams, and environments
Artificial intelligence
Updates on the platforms that free customers to run AI workloads anywhere
Open hybrid cloud
Explore how we build a more flexible future with hybrid cloud
Security
The latest on how we reduce risks across environments and technologies
Edge computing
Updates on the platforms that simplify operations at the edge
Infrastructure
The latest on the world’s leading enterprise Linux platform
Applications
Inside our solutions to the toughest application challenges
Original shows
Entertaining stories from the makers and leaders in enterprise tech
Products
- Red Hat Enterprise Linux
- Red Hat OpenShift
- Red Hat Ansible Automation Platform
- Cloud services
- See all products
Tools
- Training and certification
- My account
- Customer support
- Developer resources
- Find a partner
- Red Hat Ecosystem Catalog
- Red Hat value calculator
- Documentation
Try, buy, & sell
Communicate
About Red Hat
We’re the world’s leading provider of enterprise open source solutions—including Linux, cloud, container, and Kubernetes. We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.
Select a language
Red Hat legal and privacy links
- About Red Hat
- Jobs
- Events
- Locations
- Contact Red Hat
- Red Hat Blog
- Diversity, equity, and inclusion
- Cool Stuff Store
- Red Hat Summit