Red Hat Nordics SA Demo lab

We are Red Hat Solution Architects, in this blog we are sharing content that we have used to create our own demos and labs. Some of it has proven to be useful starting points for our customers and partners. You are free to use it as is. If you use it, and it breaks your stuff, you get to keep both pieces ;-). Ansible, Tower, CloudForms, Satellite, RHV, IdM, RHEL, Gluster, Ceph. Disclaimer, This is not a Red Hat official blog, nor a service and we will not provide support on this.

24 April 2019

How to deploy Red Hat Enterprise Linux 8, really fast

Written by Magnus Glantz

Summary

This blogpost will be fairly straight forward. It will walk you through the process of deploying Red Hat Enterprise Linux 8, really really fast. To do so, we’ll be using the new ‘‘composer’’ tooling in RHEL8 to generate a disk image file you can deploy from, to speed things up considerably. To enable you to go from zero to logging into a new virtual machine instance of RHEL8, in seconds instead of minutes.

On a KVM platform with modern hardware, we can do provisioning in below one second and login to our new VM, in less than 7 seconds.

With that said, this post is about doing VM deployment much faster, but without turning it into rocket science.

Why

Before we get started, a fair question is

My current VM deployment takes a couple of minutes.. is that not enough?

The short answer is, no. The long answer is, to cater for developers who wants to be able to test their code in fresh environments, waiting 5 minutes for a VM to spin up, is pain. Even worse, kickstarting a VM typically takes 30 minutes.

Also, to cater for future FaaS (Function-as-a-Service) and other get-it-when-you-need-it architectures where a VM get’s provisioned or spun-up triggered by incoming traffic to a load balancer or etc, then you need to get much faster.

You convinced me, teach me how

Let’s get started. From here on, there will only be step-by-step instructions.

Summary of things needed

Install Red Hat Enterprise Linux 8 on a virtual machine.

This VM will be your build server, where you build new RHEL8 installation images. Instructions for how to download and install RHEL8 are linked here.

On your RHEL8 VM, follow below instructions:

Deploying the virtual machine

If you are deploying on VMware, Amazon, OpenStack, make your disk image available and deploy from it. How? You’ll have to google it, this blog post does not deal with that :-)


Written by Magnus Glantz   Linkedin Github

tags: rhel8 - composer