Sub topic 9
Cloud images, vendor certification, and commercial support
This chapter assumes you can use a Linux shell and read YAML, and that you know what a virtual machine image is. You should also know the basic terms from earlier chapters: LTS, repositories, and the Debian and RHEL lineages. The question here is a practical one. When you run Ubuntu Server, Debian, or Rocky Linux in a cloud, who builds the image, who certifies that your software runs on it, and who answers the phone when it breaks?
What an official cloud image is
A cloud image is a prebuilt disk image that a cloud platform boots as a virtual machine. It differs from an installer ISO in three ways:
- It is already installed. There is no installer step.
- It is small and generic. It has no machine-specific identity, such as SSH host keys or a hostname, baked in.
- It configures itself on first boot using cloud-init, a tool that reads instance metadata and user data from the cloud platform. It then creates users, installs SSH keys, sets the hostname, and runs your scripts.
All three distributions ship cloud-init in their cloud images, so the first-boot model is the same:
- Ubuntu images come from Canonical and are published on AWS, Azure, Google Cloud, Oracle Cloud, and others. Canonical also hosts downloadable images at cloud-images.ubuntu.com for private clouds such as OpenStack.
- Debian images are built by the Debian Cloud team and published at cloud.debian.org. They are also listed on the major clouds. Debian has "generic" and "genericcloud" variants for KVM and OpenStack use.
- Rocky Linux images are built by the Rocky Linux project and its cloud special interest group. They are published in the AWS, Azure, Google Cloud, and Oracle marketplaces, with GenericCloud qcow2 images for OpenStack and KVM.
The cloud-init user data below installs and starts nginx. The same file works on all three distributions, because the package is called nginx in each one.
#cloud-config
package_update: true
packages:
- nginx
runcmd:
- systemctl enable --now nginxYou can check what cloud-init did after the instance boots:
cloud-id
cloud-init status --long
. /etc/os-release
echo "$NAME $VERSION_ID (ID=$ID, ID_LIKE=${ID_LIKE:-none})"cloud-id prints the detected platform, such as aws or azure. cloud-init status --long reports whether first-boot configuration finished or failed. If it reports an error, read /var/log/cloud-init.log and /var/log/cloud-init-output.log.
Finding the right image
Image names and IDs change every time the publisher rebuilds an image. Never copy an AMI ID (the identifier of an Amazon machine image) from a blog post. Look it up by the publisher's account. This AWS CLI command finds the newest Ubuntu 24.04 server image from Canonical's account:
aws ec2 describe-images \
--owners 099720109477 \
--filters "Name=name,Values=ubuntu/images/hvm-ssd-gp3/ubuntu-noble-24.04-amd64-server-*" \
--query "sort_by(Images, &CreationDate)[-1].[ImageId,Name,CreationDate]" \
--output textThe --owners value is the check that matters. Anyone can publish an image called "ubuntu" or "rocky". Take the publisher account ID from the distribution's own documentation, not from a search result.
Default login users differ between the images, which trips up scripts written for one distribution:
| Distribution | Typical default SSH user | Notes |
|---|---|---|
| Ubuntu Server | `ubuntu` | Passwordless sudo through cloud-init. |
| Debian | `debian` or `admin` | The user depends on the cloud and image. Check the image documentation. |
| Rocky Linux | `rocky` | Passwordless sudo through cloud-init. |
Vendor certification
Certification is a statement by a software or hardware vendor. The vendor says it has tested its product on a specific OS release and will accept support tickets for that combination. This matters more than the image itself, because an unsupported combination can mean the vendor refuses to help.
The usual pattern across commercial software is:
- RHEL is the most common certification target. Databases, backup agents, monitoring suites, and storage drivers often list "RHEL 8 and 9" in their compatibility matrix. Rocky Linux is built to be compatible with RHEL, so software that runs on RHEL normally runs on Rocky. Compatibility is not certification. Some vendors explicitly list Rocky Linux. Others support only RHEL, and some accept "RHEL-compatible" systems on a best-effort basis.
- Ubuntu LTS is the second most common target. It is widely certified for application stacks, GPU and AI tooling, and many hardware platforms. Canonical runs a certification program for servers, laptops, and cloud instance types. Check its list before you buy hardware.
- Debian is rarely the named target for commercial software. Open-source projects often test on Debian, and vendors sometimes provide
.debpackages that install on it. Commercial support contracts, however, usually name Ubuntu or RHEL.
Cloud providers add a second layer. Some managed services, such as database engines, container hosts, and agent-based tools, run on a short list of guest operating systems. Some provider support agreements also treat marketplace images from the vendor differently from images you build yourself.
Commercial support
An open-source distribution is free to run. Support is a separate thing you pay for, and each of the three distributions handles it differently.
| Row | Ubuntu Server | Debian | Rocky Linux |
|---|---|---|---|
| Main commercial vendor | Canonical | None. The project is volunteer-run. | CIQ and other vendors. The project is run by the Rocky Enterprise Software Foundation. |
| Subscription product | Ubuntu Pro, with optional support tiers | None from the project | Vendor support contracts |
| Extended security updates | Expanded Security Maintenance (ESM) in Ubuntu Pro extends LTS security coverage to 10 years. A Legacy Support add-on extends it further. | Debian LTS (volunteer and sponsor-funded) extends releases to about 5 years. Third-party extended LTS exists. | Community updates for the full lifecycle of each major release |
| Live kernel patching | Livepatch, through Ubuntu Pro | Not provided by the project | Third-party options exist |
| Marketplace pay-as-you-go | Ubuntu Pro images on major clouds | Not applicable | Vendor-supported images in some marketplaces |
Some details to know:
- Ubuntu Pro is a subscription layered on Ubuntu LTS. It adds ESM coverage for packages in the
universerepository, not onlymain, plus Livepatch, and compliance tooling for standards such as FIPS and CIS. Canonical offers it free for personal use on a small number of machines. You attach a machine withsudo pro attach <token>and inspect it withpro status. On major clouds you can launch Ubuntu Pro images and pay hourly, which avoids token management. - Support tiers (business-hours or around the clock) are sold on top of Pro. A tier decides who answers your ticket and how fast.
- Debian gives you a stable, well-documented base. There is no vendor to call. If you need a contract, you buy it from a company that sells Debian support, and you accept that the scope varies by company.
- Rocky Linux has no single vendor. CIQ is the best-known one, and several other companies sell Rocky support. Compare scope and response times, and check whether the vendor also covers your hardware and cloud.
Deciding what level of support you need
The diagram shows the questions that usually settle the support decision.
Edge cases and common mistakes
- Pro images versus plain images. A Pro image on a marketplace costs more per hour than the plain Ubuntu image. If you attach an existing machine with a token instead, you pay Canonical directly. Do not pay for both on the same machine.
- Reading "supported" too loosely. "Supported by the cloud" often means the cloud can boot the image and offer a console. It does not mean the cloud will debug your application on it.
- Image drift. A new instance from an image launched months ago starts with old packages. Run
apt upgradeordnf upgradeon first boot, or rebuild your image on a schedule. cloud-init'spackage_upgrade: truedoes this. - Building your own image. Many teams bake a golden image (a hardened, preconfigured image) from the official one. Doing so can invalidate a vendor's "certified image" claim. Check the support terms before you modify a certified image.
- cloud-init assumptions in scripts. Do not assume the default user name, and do not assume
aptordnf. Detect the family withID_LIKEfrom/etc/os-release, as in the first chapter of this tutorial. - Lifecycle versus subscription. Standard support periods are the same with or without a paid plan. A subscription mainly extends coverage or adds service levels. Rocky and Debian do not offer a Pro-style extension from the project itself.
Exercise
Your team must run a commercial backup agent whose compatibility matrix lists only "RHEL 9" and "Ubuntu 22.04 LTS". You prefer Rocky Linux for cost reasons and want a fixed contract for security updates. Name two things you should check before choosing Rocky Linux. Then name the alternative that most directly satisfies a strict reading of the matrix.
Show answer
First, ask the backup vendor in writing whether it supports Rocky Linux 9 or only accepts RHEL-compatible systems on a best-effort basis. Second, confirm that your Rocky support vendor will take tickets involving that agent. Rocky is not named in the matrix, so a vendor could decline to help even if the agent works. The alternative that satisfies the matrix as written is Ubuntu 22.04 LTS, optionally with Ubuntu Pro for a longer security window.
Exercise
A script launches the same cloud-init user data on Ubuntu, Debian, and Rocky images, but the SSH step fails on two of them. What is the most likely cause, and how should you find the right value?
Show answer
The script hardcodes one default user name, but the images use different ones, such as ubuntu and rocky, and Debian varies by cloud. Check the image documentation for each distribution, or set the user explicitly in the cloud-init users: section so it is the same everywhere.