I remember when I carried around a set of DVDs with different operating system disks. Eventually, that became a stack of flash drives with the installers. Nowadays, I don't need to worry about that as much because I utilize the Red Hat Enterprise Linux (RHEL) image builder tool to manage my operating system lifecycle.
You've heard us talk a lot about the future of RHEL and the installation experience. Overhauling your server lifecycle process may as well start at the very beginning with image creation. Image builder supports multiple formats and destinations.
So, how do you decide which tool to use? What formats should you keep updated? Let's break it down step-by-step:
![Steps for using RHEL image builder](/rhdc/managed-files/styles/wysiwyg_full_width/private/rhel-image-builder-tool-img1.png.webp?itok=2BYdvoJq)
1) Choose a platform
Before you start deciding what packages to install or how many gigabytes to make your /tmp partition, you need to ask yourself a few questions.
The main question is: Where will this workload be run? Physical, public or private cloud, or edge?
- Is this for a data warehouse running on a storage-dense physical server?
- Is this an IoT collection point on a light pole somewhere?
- Is this a Word Press site with minimal resource requirements running on AWS?
The answer to these questions will help you through the first step. Which platform will my workload run on? From here, you can correctly provision users' accounts for the cloud or bare metal servers.
2) Select your image builder tool
![Select your RHEL image builder tool](/rhdc/managed-files/styles/wysiwyg_full_width/private/rhel-image-builder-tool-img2.png.webp?itok=Z-YtQ5a9)
Now that you know what your workload is and what the platform will be, you can choose which of the two tools to use:
- Image builder service (https://console.redhat.com/insights/image-builder)
- On-premise, private build
Technically, there are three tools: the service, the private web UI and the private command line tool. How do you decide?
If you plan on a public, multicloud deployment, it will make sense to take advantage of the service. However, if you are 100% on-premises, why not use the on-prem tool?
One caveat: The service tends to get new features faster because the on-premise tools are only updated during minor RHEL releases (every six months).
3) Create a blueprint
Now that you know the what and the where, it is time to start building a blueprint. This process varies considerably based on your needs. Here is the basic rundown:
First, choose your destination(s).
![RHEL image builder: select the target destination(s)](/rhdc/managed-files/styles/wysiwyg_full_width/private/rhel-image-builder-tool-img3.png.webp?itok=i0sVFhG8)
Second, configure your system registration and enable Red Hat Insights.
![RHEL image builder: configure your system registration and enable Red Hat Insights](/rhdc/managed-files/styles/wysiwyg_full_width/private/rhel-image-builder-tool-img4.png.webp?itok=A0FzAE_a)
Next, define your file system layout.
![RHEL image builder: define your file system layout](/rhdc/managed-files/styles/wysiwyg_full_width/private/rhel-image-builder-tool-img5.png.webp?itok=BrvV4gW5)
Then, select some packages.
![RHEL image builder: select some packages](/rhdc/managed-files/styles/wysiwyg_full_width/private/rhel-image-builder-tool-img6.png.webp?itok=WYB51H7L)
Finally, give your template a name, and you’ll be ready to start building.
![RHEL image builder: give your template a name](/rhdc/managed-files/styles/wysiwyg_full_width/private/rhel-image-builder-tool-img7.png.webp?itok=SWH0XdP0)
4) Build your image
Now that you have a blueprint defined, you can create images across various platforms. The best part is that these images will be virtually identical!
Image builder supports a variety of image types from cloud templates (for instance, AMIs on Amazon) to private clouds (like VMDKs for VMware), and Linux-specific formats (IE qcow2 or ISO installer).
You can schedule multiple formats to be built in parallel, ensuring that all your golden images are identical.
![RHEL image builder: build your image](/rhdc/managed-files/styles/wysiwyg_full_width/private/rhel-image-builder-tool-img8.png.webp?itok=06VkfVq3)
5) Deploy your instance
You've got the blueprints and the destination—now it's time to deploy. This could mean uploading the vmdk file to your ESX host, the qcow2 file to a Linux file server for deployment as virtual machines, or copying over a GCP image into your organization on Google's cloud.
These templates can be used as one-offs or as the basis for thousands of identical servers!
Extra credit
Imagine taking this process to the next level: Automate the builds. The image builder service has an API that you could make scripted, scheduled calls on a daily, monthly or quarterly basis—whatever meets your needs. Like any other sysadmin tool, the command line can easily be scripted via cron or run regularly by an operations team.
Automating image builder tasks ensures that not only are your images identical across multiple platforms, but it also makes sure that they receive the latest updates and don't end up stale.
Wrap up
Following these five steps, you can tackle one of the most frustrating projects a systems administrator deals with: defining and maintaining images across disparate and disconnected environments.
Stay tuned for more content around golden images right here on the Red Hat Enterprise Linux blog. Interested in digging deeper? Check out the Enable SysAdmin blog for hands-on tutorials!
執筆者紹介
チャンネル別に見る
自動化
テクノロジー、チームおよび環境に関する IT 自動化の最新情報
AI (人工知能)
お客様が AI ワークロードをどこでも自由に実行することを可能にするプラットフォームについてのアップデート
オープン・ハイブリッドクラウド
ハイブリッドクラウドで柔軟に未来を築く方法をご確認ください。
セキュリティ
環境やテクノロジー全体に及ぶリスクを軽減する方法に関する最新情報
エッジコンピューティング
エッジでの運用を単純化するプラットフォームのアップデート
インフラストラクチャ
世界有数のエンタープライズ向け Linux プラットフォームの最新情報
アプリケーション
アプリケーションの最も困難な課題に対する Red Hat ソリューションの詳細
オリジナル番組
エンタープライズ向けテクノロジーのメーカーやリーダーによるストーリー
製品
ツール
試用、購入、販売
コミュニケーション
Red Hat について
エンタープライズ・オープンソース・ソリューションのプロバイダーとして世界をリードする Red Hat は、Linux、クラウド、コンテナ、Kubernetes などのテクノロジーを提供しています。Red Hat は強化されたソリューションを提供し、コアデータセンターからネットワークエッジまで、企業が複数のプラットフォームおよび環境間で容易に運用できるようにしています。
言語を選択してください
Red Hat legal and privacy links
- Red Hat について
- 採用情報
- イベント
- 各国のオフィス
- Red Hat へのお問い合わせ
- Red Hat ブログ
- ダイバーシティ、エクイティ、およびインクルージョン
- Cool Stuff Store
- Red Hat Summit