CIQ’s Rocky Linux Images Now Available on Azure

We recently published Rocky Linux 8.5 on Microsoft’s Azure Cloud platform. Our Rocky is freely available as a service to the community or with bundled support on a flat rate pay-as-you-go basis. As the founding support and services partner for Rocky Linux, CIQ looks to have Rocky quickly and conveniently available everywhere you want to compute.

In this blog post, I’ll show you how to spin up a Rocky Linux virtual machine in Azure. Subsequent posts will explain how to do similar actions in code starting with the bash command line. Future posts will explain the journey Rocky Linux takes from the Rocky Enterprise Software Foundation’s build service to generalized cloud images to cloud specific and vendor specialized images that you can spin up at a moment’s notice online with a web browser or via the vendor’s command line interface.

Hello, Rocky

With an Azure account and a web browser, you can spin up a Rocky machine in short order. All X86_64 Gen2 virtual machine sizes are supported and cloud-init is enabled for customization at creation time. The default Azure username is azureuser, but any name will work and by convention I use rocky. That user is the first user created (typically uid 1000) and configured for sudo privilege as you’ll see in future articles. You can create a new key pair (the default) or reuse a previous key pair (the example below). Here’s what the creation form looks like after filling in a few pertinent details:

The provisioning and deployment process takes a minute or two depending on the machine size, region and time of day. When completed, you can navigate to the virtual machine instance to review it and obtain the IP4 network address. With your key pair and the public IP4 address, you can log in and look around:

## By convention, I’ll describe each (small) bash stanza’s intent first.
## Names starting with `your_` are meant to be substituted, e.g `your_group`

## Connect to the new virtual machine with ssh, accepting the remote host
## key if prompted.

$ ssh -i your_key.pem [email protected] 
Activate the web console with: systemctl enable --now cockpit.socket

## What’s the kernel version and arch?

[[email protected]_vm ~]$ uname -a 
Linux your_vm 4.18.0-348.20.1.el8_5.x86_64 #1 SMP Thu Mar 10 20:59:28 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

## What’s the Rocky release?

[[email protected]_vm ~]$ cat /etc/os-release 
NAME="Rocky Linux"
VERSION="8.5 (Green Obsidian)"
ID_LIKE="rhel centos fedora"
PRETTY_NAME="Rocky Linux 8.5 (Green Obsidian)"

## How long has the virtual machine been running?

[[email protected]_vm ~]$ uptime 
 19:32:18 up 7 min,  1 user,  load average: 0.00, 0.19, 0.15

## Does the rocky user `rocky` have sudo (superuser) capabilities?

[[email protected]_vm ~]$ sudo -i  

## Yup, passwordless!
[[email protected]_vm ~]# whoami

As you can see, Rocky is smoothly integrated into Azure’s management portal. In the next post, I’ll show how Rocky is also integrated into the Azure command line (and other devops frameworks).

Up next: Using the Azure Command Line Interface with CIQ’s Rocky Linux

About the Author:

Mike Carifio

Mike Carifio supports Rocky Linux for CIQ. He started programming on a DEC PDP 11/45, before Unix was even a thing, and never looked back. He’s filled every high tech role imaginable, but had never written a blog post for CIQ. Mission accomplished, twice over.

You might be interested in …