Deployment guide

Rocky Linux 8 Minimal

Overview

Rocky Linux is a community-driven enterprise Linux distribution built by the Rocky Enterprise Software Foundation to be binary compatible with Red Hat Enterprise Linux 8. This SecureAnyCloud image is the Minimal edition of Rocky Linux 8 for Microsoft Azure, deployed from the Azure Marketplace as a preconfigured virtual machine.

The Minimal edition removes the web console, the tuning daemon, the support-report collector, the boot splash and the firmware bundle for physical hardware that an Azure guest never has. The result is a smaller package set and a smaller surface to patch and audit.

Unlike the SecureAnyCloud Rocky Linux 8.10 image, which is pinned to a single point release, this listing tracks whichever 8.x point release is current at build time. Rocky Linux 8.10 is the final minor release in the 8 series and remains on the RHEL 8 maintenance support stream until May 2029. This listing therefore continues to receive security backports even though no further point release will follow.

What you get:

  • Rocky Linux 8, binary compatible with RHEL 8, Minimal edition
  • 425 installed packages on a fresh build, roughly 1.3 GB on disk, with cockpit, tuned, sos, plymouth, linux-firmware and the GeoIP data files removed and everything the platform needs to boot, network, authenticate and update itself kept intact
  • Every available update applied at build time, verified with a zero-pending check
  • Unattended updates already armed, so the machine keeps patching itself
  • Azure Linux Agent (waagent) and cloud-init for Azure integration
  • Chronyd for NTP time synchronization
  • SELinux in enforcing mode, both at runtime and persisted for the next boot, with the policy package verified present
  • BaseOS, AppStream and Extras repositories enabled, with signature checking on
  • Exactly one externally reachable port: SSH on 22
  • Gen2 Hyper-V virtual machine support
  • 24/7 SecureAnyCloud support

Platform: Microsoft Azure (Gen2 Hyper-V). Default user: azureuser.

Security posture

This image ships with no known credential. There is no default password and no baked-in SSH key:

  • The root account password is locked, so no one can log in as root with a password.
  • PasswordAuthentication is disabled in the SSH daemon, so every login is by key.
  • KbdInteractiveAuthentication is also disabled, which closes the other password path.
  • PermitRootLogin is set to prohibit-password, so root cannot be reached with a password even if one were later set.
  • The only key that works is the public key you supply when you create the virtual machine. Azure injects it into azureuser at first boot, so no two machines you launch ever share a secret.
  • No SSH host keys are baked into the image. Each machine generates its own at first boot, so two machines built from this image never share a host identity.
  • /etc/machine-id ships empty and is regenerated per machine.
  • SELinux is left in enforcing mode with the targeted policy loaded, the Rocky Linux default.

Prerequisites

Before you deploy this image, make sure you have:

  • An active Microsoft Azure subscription
  • Access to the Azure Portal or Azure CLI
  • An SSH key pair for Linux VM access
  • Familiarity with Azure VM management

Recommended VM size: Standard_B2s (2 vCPU, 4 GB RAM) or larger.

1

Deploy the Virtual Machine

Option A: Azure Portal

  • Open the Azure Marketplace and search for "Rocky Linux 8 Minimal SecureAnyCloud".
  • Select the image and click Create.
  • On the Basics tab, set Subscription to your Azure subscription.
  • Set Resource Group to a new or existing group.
  • Enter a Virtual Machine Name.
  • Pick your preferred Region.
  • Set Size to Standard_B2s (recommended).
  • Under Administrator Account, select SSH public key and enter your key.
  • Under Inbound Port Rules, allow SSH (port 22).
  • Click Review + Create, then Create.

Option B: Azure CLI

az vm image terms accept --urn sac1647283583153:rocky-8-minimal:default:latest
az vm create \
  --resource-group myResourceGroup \
  --name my-rocky-8-minimal-vm \
  --image sac1647283583153:rocky-8-minimal:default:latest \
  --size Standard_B2s \
  --admin-username azureuser \
  --generate-ssh-keys \
  --public-ip-sku Standard
2

Connect over SSH

Run these commands on your own workstation, not on the VM. Find the public IP, then connect:

az vm show --resource-group myResourceGroup --name my-rocky-8-minimal-vm --show-details --query publicIps -o tsv ssh azureuser@<vm-ip>

There is no password to enter. If SSH asks for one, your client is not offering the key you supplied at create time.

3

Confirm the release

Check the Rocky Linux release and package count:

cat /etc/rocky-release grep -E '^(NAME|VERSION|ID|PLATFORM_ID)=' /etc/os-release uname -rm rpm -qa | wc -l

Expected output:

Rocky Linux release 8.10 (Green Obsidian) NAME="Rocky Linux" VERSION="8.10 (Green Obsidian)" ID="rocky" PLATFORM_ID="platform:el8" 4.18.0-553.153.1.el8_10.x86_64 x86_64 425

This listing follows the Rocky 8 stream. It ships whichever 8.x point release is current when the image is built, instead of being pinned to a single minor release like the SecureAnyCloud Rocky Linux 8.10 image. Release 8.10 is the final minor of the RHEL 8 lifecycle, so both images report the same release string today. This one would keep following the stream if that ever changed.

4

Check the patch level

The image is fully updated at build time. The command dnf check-update returns exit code 100 when updates are pending and 0 when none are:

sudo dnf check-update echo "check-update exit code: $?"

Confirm that no reboot is outstanding. The command needs-restarting -r returns 0 when nothing requires a restart:

sudo dnf needs-restarting -r echo "needs-restarting exit code: $?"

List the enabled repositories to confirm your update path is intact:

dnf repolist --enabled

Expected output:

repo id repo name appstream Rocky Linux 8 - AppStream baseos Rocky Linux 8 - BaseOS extras Rocky Linux 8 - Extras

PowerTools (powertools) is not enabled on this image. It carries developer and build-time packages that most server workloads do not need. Check its state:

echo "powertools state: $(dnf repolist --all 2>/dev/null | grep -c '^powertools ')"

To turn it on, run sudo dnf config-manager --set-enabled powertools. RHEL 9 renamed this repository to crb, but on this RHEL 8-compatible image the name is still powertools.

Package signatures are verified on every install: no repository on this image sets gpgcheck=0.

5

Unattended updates are already armed

This image ships patched and keeps patching itself. dnf-automatic is installed and configured to apply updates. Its timer is enabled, so systemd starts it automatically on every boot:

systemctl is-enabled dnf-automatic.timer
systemctl is-active dnf-automatic.timer grep -E '^(upgrade_type|download_updates|apply_updates)' /etc/dnf/automatic.conf

Expected output:

enabled active upgrade_type = default download_updates = yes apply_updates = yes

upgrade_type is deliberately set to default rather than security. The security-only mode resolves against errata metadata. Where that metadata is not published, a security-only policy silently resolves to nothing and applies no updates. The default setting applies every available update, so it cannot quietly do nothing.

To control the schedule yourself, disable the timer and patch on your own cadence:

echo "to take manual control: sudo systemctl disable --now dnf-automatic.timer"

To patch by hand at any time, run sudo dnf upgrade -y, then reboot with sudo systemctl reboot if a new kernel was installed.

6

Verify the security posture

Confirm that SELinux is enforcing with its policy loaded, root is locked, SSH is key-only and there is no swap:

getenforce sestatus | grep -E '^(SELinux status|Loaded policy name|Current mode)' grep -E '^[[:space:]]*SELINUX=' /etc/selinux/config
sudo passwd -S root
sudo sshd -T | grep -E '^(permitrootlogin|passwordauthentication|kbdinteractiveauthentication)' swapon --show

Expected output:

Enforcing SELinux status: enabled Loaded policy name: targeted Current mode: enforcing SELINUX=enforcing root LK 2009-12-22 -1 -1 -1 -1 (Alternate authentication scheme in use.) permitrootlogin without-password passwordauthentication no kbdinteractiveauthentication no

The command swapon --show returns nothing. This is expected (see Step 7).

without-password is how OpenSSH reports the prohibit-password setting. Both names mean the same thing: root may not authenticate with a password.

The checks cover both the runtime SELinux mode and the persisted /etc/selinux/config value, because a runtime setting that is not persisted would silently revert on your next reboot. The sestatus policy name confirms the policy is loaded, not merely that the runtime mode reads Enforcing.

7

Verify Azure integration and resources

Confirm that the Azure Linux Agent, cloud-init and time synchronization are healthy, and check your resources:

systemctl is-active waagent
systemctl is-enabled waagent cloud-init --version
systemctl is-active chronyd df -h / free -h

The command free -h reports 0B of swap. This is deliberate. Azure manages swap on the ephemeral resource disk through waagent rather than on the OS disk, and a swap file baked into a Marketplace image fails certification. If your workload needs swap, configure it through waagent.

8

Networking and open ports

The Azure Network Security Group controls inbound and outbound traffic. It is the first, and usually the only, place you need to open a port.

This image is a Minimal build, so firewalld is not installed. This is deliberate. With no host firewall in the way, your NSG rules take effect exactly as written, and there is no second layer to keep in sync. Confirm what is listening before you open anything:

sudo ss -tlnu

On a fresh machine, SSH on port 22 is the only externally bound listener. Chrony appears on 127.0.0.1:323 and [::1]:323, both loopback only and not reachable from the network.

rpcbind is disabled on this image. The stock Rocky cloud image pulls it in because nfs-utils depends on it, which leaves TCP and UDP port 111 open on every interface. NFSv4, the default in Rocky Linux 8, does not use rpcbind. This image therefore disables it and closes the port, while nfs-utils stays installed and fully working for NFSv4 mounts:

echo "rpcbind.socket: $(systemctl is-enabled rpcbind.socket 2>/dev/null || echo disabled)" rpm -q nfs-utils

NFSv3 does require the portmapper. If you need it, turn rpcbind back on with one command:

echo "to re-enable NFSv3 support: sudo systemctl enable --now rpcbind.socket"

rpcbind is disabled rather than masked, so that command works without further steps.

If your policy also requires a host firewall, install and enable it yourself:

sudo dnf install -y firewalld
sudo systemctl enable --now firewalld
sudo firewall-cmd --permanent --add-port=443/tcp sudo firewall-cmd --reload

Once firewalld is running, a port must be open in both the Azure NSG and firewalld before traffic reaches your service.

9

What the Minimal edition trims, and what it never touches

This is the same Rocky Linux 8 base as the standard SecureAnyCloud images, with the packages a headless Azure guest never uses removed. Confirm the trim yourself:

rpm -qa cockpit-ws cockpit-bridge tuned sos plymouth linux-firmware echo "(no output above = every trimmed package is genuinely absent)"

Removed Why it is safe to remove on Azure

linux-firmware Firmware blobs for physical NICs, GPUs, wireless and storage controllers. An Azure guest's storage and network are the in-kernel Hyper-V synthetic drivers, which load no firmware at all. This is the single largest reduction.

cockpit-ws, cockpit-bridge The web admin console. This is a headless server image with no web UI.

tuned The tuning-profile daemon. Azure images use the platform defaults.

sos The Red Hat support-report collector. Install it yourself if you need it for a support case.

plymouth The graphical boot splash. There is no console to splash to on a cloud VM.

GeoIP data files A bundled dataset unused on a base OS image.

Nothing the platform needs is touched: systemd, NetworkManager, openssh-server, cloud-init, WALinuxAgent, dnf, sudo, chrony and dnf-automatic all ship exactly as on the standard image. Every removal above is verified on the image before it is captured. SELinux and its policy package are asserted present at every stage of the build, so a trim that touches the wrong dependency chain cannot ship silently.

10

Install software

AppStream carries the application packages. Search it, then install what you need:

dnf search nginx

The 8 series still ships modules for some packages. AppStream can carry several versions of the same language or database as separate streams, so you can pick a version instead of taking the default.

dnf module list nginx

Expected output:

Rocky Linux 8 - AppStream Name Stream Profiles Summary nginx 1.14 [d] common [d] nginx webserver nginx 1.16 common [d] nginx webserver nginx 1.18 common [d] nginx webserver nginx 1.20 common [d] nginx webserver nginx 1.22 common [d] nginx webserver nginx 1.24 common [d] nginx webserver Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled

Install a package and enable it in the usual way, for example sudo dnf install -y nginx followed by sudo systemctl enable --now nginx.

To add another administrator, create the account with sudo adduser <name>. Add it to the wheel group with sudo usermod -aG wheel <name>. Then copy your public key into /home/<name>/.ssh/authorized_keys, with mode 600 on the file and mode 700 on the .ssh directory, both owned by that user.

The image ships with no human accounts, so azureuser is the only login until you add one:

getent group wheel

Common Use Cases

  • A stripped-down, RHEL-compatible base for production servers where a smaller package set matters
  • A lean foundation for your own applications and container hosts
  • Migrating older RHEL 8-compatible workloads without license cost, on a minimal-footprint edition

Troubleshooting

Cannot connect over SSH

  • Confirm the VM is in the Running state in the Azure Portal.
  • Check that port 22 is allowed in the Network Security Group
  • Ensure you are using the correct username: azureuser
  • Verify your SSH key matches the one you supplied at create time. Password login is disabled by design, so a wrong key cannot fall back to a password prompt.

To see which key your client is actually offering, run ssh -v azureuser@<vm-ip> from your workstation and look for the Offering public key lines.

Azure agent not running

systemctl is-active waagent

If it is not running, start it. Run this yourself on the VM:

sudo systemctl enable --now waagent

Package manager issues

Refresh the metadata cache first:

sudo dnf clean all
sudo dnf makecache

If repositories are unreachable, check that DNS resolves. This image is minimal, so nslookup and dig are not installed. The getent command is always present and resolves through the same system resolver:

getent hosts download.rockylinux.org

Install bind-utils if you want dig and nslookup available.

A service is blocked and the logs mention SELinux

SELinux is enforcing on this image. Instead of disabling it, inspect what was denied. On a healthy machine there are no recent denials, so the command reports none:

sudo ausearch -m AVC -ts recent 2>/dev/null || echo "no recent AVC denials"

If a denial is genuine, prefer setting the correct file context with semanage fcontext and restorecon, or enabling the relevant boolean with setsebool -P, over turning SELinux off.

Checking for failed services

A healthy machine reports running with nothing failed:

systemctl is-system-running
systemctl list-units --state=failed --no-legend

I need something the Minimal trim removed

Nothing is blocked, only absent by default. cockpit-ws, tuned, sos, plymouth and firewalld all install cleanly from the enabled repositories with a normal sudo dnf install -y <package> if your workload needs them.

Important Notes

Rocky Linux is free and open source, and it is a collection of licenses rather than a single one. This image carries 425 installed packages that declare 88 distinct license strings between them, most commonly LGPLv2+, GPLv2+, MIT, BSD, GPLv3+, GPLv2 and LGPLv3+. You can read each package's own terms on the machine:

rpm -qa --qf '%{LICENSE}\n' | sort | uniq -c | sort -rn | awk 'NR<=8'

No subscription, license key or support contract is required.

Rocky Linux 8.10 is the final minor release of the RHEL 8 family and remains on the maintenance support stream until May 2029. This image tracks the current 8.x point release instead of being pinned to one. If you need a specific, named point release, use the SecureAnyCloud Rocky Linux 8.10 image.

Support

For help with this image, contact SecureAnyCloud support:

  • Website: secureanycloud.com
  • Product Catalogue: secureanycloud.com/products
  • User Guides: secureanycloud.com/guides
  • SLA: 24 hour response guaranteed

Deploy on Azure

Launch Rocky Linux 8 Minimal on Azure with 24/7 support from SecureAnyCloud.

View this image

Need Help?

Our support team is available 24/7.

sales@secureanycloud.com

Deploy on Azure