Deployment guide

CentOS Stream 10 LVM

Overview

CentOS Stream is a free, open source Linux distribution. It is the continuously delivered upstream development branch of Red Hat Enterprise Linux 10, produced by the CentOS Project and sponsored by Red Hat. Stream 10 is a rolling release, so there are no minor releases to track. Applying updates always rolls you forward within Stream 10.

This SecureAnyCloud image is the LVM variant, a preconfigured virtual machine image for Microsoft Azure from the Azure Marketplace. The root filesystem lives on a Logical Volume Manager logical volume instead of a plain disk partition. LVM lets you grow the root filesystem online, add disks to the volume group and take snapshots, without repartitioning or downtime.

What you get:

  • CentOS Stream 10, the upstream of RHEL 10, with RHEL 10 compatibility
  • An LVM root: volume group cs, logical volume root, formatted xfs
  • Every available Stream 10 update applied at build time
  • dnf-automatic armed, so the machine keeps applying security updates on its own
  • Azure Linux Agent (waagent) and cloud-init for Azure integration
  • Chronyd for NTP time synchronisation
  • SELinux in enforcing mode
  • BaseOS, AppStream and CRB repositories enabled, so your update path stays intact
  • 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 uses a key.
  • PermitRootLogin is set to no, so root cannot be reached over SSH at all.
  • 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 share a secret.
  • The machine identity and the SSH host keys are regenerated uniquely on every instance, so no two machines share a host key either.
  • SELinux stays in enforcing mode, the CentOS Stream 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

  • In the Azure Marketplace, search for "CentOS Stream 10 LVM SecureAnyCloud"
  • Select the image and choose Create
  • Configure the basics:
    • Subscription: Select your Azure subscription
    • Resource Group: Create a new group or select an existing one
    • Virtual Machine Name: Enter a name for your VM
    • Region: Select your preferred Azure region
    • Size: Standard_B2s is recommended
  • Under Administrator Account, select SSH public key and enter your key
  • Under Inbound Port Rules, allow SSH (port 22)
  • Choose Review + Create, then Create

Option B: Azure CLI

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

Connect via SSH

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

az vm show --resource-group myResourceGroup --name my-centos-stream-10-lvm-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 that you supplied at create time.

3

Confirm the release

Check that the machine runs the CentOS Stream 10 release you expect:

cat /etc/centos-release grep -E '^(NAME|VERSION|ID|PLATFORM_ID)=' /etc/os-release uname -rm

Expected output:

CentOS Stream release 10 NAME="CentOS Stream" VERSION="10" ID="centos" PLATFORM_ID="platform:el10" 6.12.0-55.el10.x86_64 x86_64

The kernel version carries an el10 tag. That tag marks the machine as CentOS Stream 10, the upstream of RHEL 10.

4

Verify the LVM root layout

The defining feature of this image is that the root filesystem is a logical volume, not a plain partition. Confirm the layout:

lsblk -o NAME,TYPE,MOUNTPOINT,SIZE,FSTYPE findmnt /
sudo vgs
sudo lvs

Expected output:

NAME TYPE MOUNTPOINT SIZE FSTYPE sda disk 10G ├─sda1 part /boot/efi 600M vfat ├─sda2 part /boot 1000M xfs └─sda3 part 8.4G LVM2_member └─cs-root lvm / 8.4G xfs TARGET SOURCE FSTYPE OPTIONS / /dev/mapper/cs-root xfs rw,relatime,... VG #PV #LV #SN Attr VSize VFree cs 1 1 0 wz--n- 8.41g 0 LV VG Attr LSize root cs -wi-ao---- 8.41g

Root is /dev/mapper/cs-root, a logical volume in the cs volume group. The lvm type against / in lsblk confirms that this is the LVM variant.

Growing the root filesystem

Because root is a logical volume, you can grow it online. First resize the OS disk in Azure: stop the VM, set a larger disk size, and start it. Then grow the partition, the physical volume, the logical volume and the xfs filesystem in sequence:

# grow partition 3 to fill the enlarged disk
sudo growpart /dev/sda 3
# grow the physical volume into the enlarged partition
sudo pvresize /dev/sda3
# extend the logical volume to use all free space in the volume group sudo lvextend -l +100%FREE /dev/cs/root
# grow the xfs filesystem to fill the enlarged logical volume (xfs grows mounted)
sudo xfs_growfs /

You can also add a second data disk to the volume group and extend root across both disks. This is the main reason to run an LVM root:

sudo pvcreate /dev/sdc
sudo vgextend cs /dev/sdc
sudo lvextend -l +100%FREE /dev/cs/root
sudo xfs_growfs /
5

Check the patch level

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

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

This image also arms dnf-automatic, so the machine downloads and applies security updates on a timer without any action from you. Stream 10 is a rolling release, so running an update always moves you to the current Stream 10 package set:

sudo dnf upgrade -y sudo systemctl reboot
# only if a new kernel was installed
6

Verify the security posture

Confirm that SELinux is enforcing, root is locked, and SSH accepts keys only:

getenforce
sudo passwd -S root
sudo sshd -T | grep -E '^(permitrootlogin|passwordauthentication|pubkeyauthentication)'

Expected output:

Enforcing root LK 2009-12-22 -1 -1 -1 -1 (Password locked.) permitrootlogin no pubkeyauthentication yes passwordauthentication no
7

Verify Azure integration and unattended updates

Confirm that the Azure Linux Agent, cloud-init and time synchronisation are healthy, that unattended security updates are armed, and check your resources:

systemctl is-active waagent
systemctl is-enabled waagent cloud-init --version
systemctl is-enabled dnf-automatic.timer
systemctl is-active chronyd df -h / free -h

waagent lets Azure provision your SSH key, resize the OS disk, run extensions and report VM health, so it should always be active and enabled. When dnf-automatic.timer is enabled, the machine keeps applying security updates on its own after launch.

8

Networking and the firewall

The Azure Network Security Group controls inbound and outbound traffic. It is the first, and usually the only, place where you need to open a port. The image advertises a single inbound port, SSH on 22.

This image binds no unnecessary listeners. Unlike the stock cloud image, it does not ship rpcbind, the RPC helper that would otherwise listen on port 111, because NFSv4, the CentOS Stream 10 default, does not use it. If you need NFSv3, install and enable it:

sudo dnf install -y rpcbind
sudo systemctl enable --now rpcbind.socket

Confirm what is listening before you open a port:

ss -tlnp

On a fresh machine, the only listener is sshd on port 22. If your policy also requires a host firewall, firewalld is installed and running, with the SSH service already allowed:

sudo firewall-cmd --list-services sudo firewall-cmd --permanent --add-service=https sudo firewall-cmd --reload
9

Install software

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

dnf search nginx
sudo dnf install -y nginx
sudo systemctl enable --now nginx

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

Common Use Cases

  • RHEL 10 compatible application hosting where LVM-managed storage is a requirement
  • Workloads that need to grow the root filesystem online without downtime
  • Estates that add data disks to a machine over its lifetime and want them pooled under one filesystem
  • A staging or development base that tracks what is coming next in RHEL 10

Troubleshooting

Cannot connect via SSH

  • Verify that the VM is in the Running state in the Azure Portal
  • Check that the Network Security Group allows port 22
  • Make sure you are using the correct username: azureuser
  • Verify that 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 offering, run ssh -v azureuser@<vm-ip> from your workstation and look for the Offering public key lines.

Azure agent not running

sudo systemctl status waagent

If it is not running, start it. Run the following 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 DNS resolution with getent hosts mirror.stream.centos.org. Install bind-utils if you need dig and nslookup.

A service is blocked and the logs mention SELinux

SELinux is enforcing on this image. Instead of disabling it, look at what it denied:

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

Important Notes

CentOS Stream is free and open source. A single licence does not cover it. It is a distribution assembled from thousands of independently packaged components, each with its own terms, including the GPLv2, LGPL, MIT, BSD, Apache 2.0 and MPL. You can read every package's terms with rpm -qi <package> and under /usr/share/licenses/. No subscription, licence key or Red Hat entitlement is required.

CentOS Stream 10 is a rolling release with no minor releases. Applying updates keeps you on the current Stream 10 package set, which is the code that flows into the next RHEL 10 minor.

CentOS is a trademark of Red Hat, Inc. The name is used here only to identify the distribution that this image contains. SecureAnyCloud is not affiliated with, endorsed by or sponsored by Red Hat or the CentOS Project.

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 CentOS Stream 10 LVM 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