CentOS Stream 10
Overview
CentOS Stream 10 is the continuously delivered upstream development branch of RHEL 10. This SecureAnyCloud image runs it as a preconfigured virtual machine from the Azure Marketplace on Microsoft Azure.
What you get
- CentOS Stream 10, the continuously delivered upstream development branch of RHEL 10, patched to the latest package set at build time.
- Azure Linux Agent (waagent) and cloud-init for Azure provisioning and cloud integration.
- Chronyd for NTP time synchronisation.
- SELinux in enforcing mode.
- Gen1 Hyper-V virtual machine support (BIOS boot).
- 24/7 SecureAnyCloud support.
Platform: Microsoft Azure (Gen1 Hyper-V). Default user: azureuser.
Prerequisites
Before you deploy, make sure you have:
- An active Microsoft Azure subscription.
- Access to the Azure Portal or the 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.
Deploy the virtual machine
Option A: Azure Portal
- Open the Azure Marketplace and search for "CentOS Stream 10 on Azure SecureAnyCloud".
- Select the image and click Create.
- On the Basics tab, choose your Subscription and a Resource Group (create a new one or select an existing one).
- Enter a Virtual Machine Name and select your preferred Region.
- Set Size to
Standard_B2s, the recommended size. - 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:centos-stream-10:default:latest
az vm create \
--resource-group myResourceGroup \
--name my-centos-stream-10-azure-vm \
--image sac1647283583153:centos-stream-10:default:latest \
--size Standard_B2s \
--admin-username azureuser \
--generate-ssh-keys \
--public-ip-sku StandardConnect via SSH
When your VM is running, connect over SSH:
ssh azureuser@<public-ip-address>To find your VM's public IP address, run:
az vm show --resource-group myResourceGroup --name my-centos-stream-10-azure-vm --show-details --query publicIps -o tsvVerify the installation
After connecting, verify the operating system:
cat /etc/centos-release
cat /etc/os-release uname -rCheck disk space and memory:
df -h free -hVerify that the Azure Linux Agent is running:
systemctl status waagentUpdate the system
CentOS Stream 10 is continuously delivered (rolling). Updating it pulls the latest package set and all security backports:
sudo dnf upgrade -yConfigure the firewall (optional)
The Azure Network Security Group (NSG) is the primary inbound and outbound firewall for your VM. The minimal CentOS Stream 10 image does not ship a host firewall by default. If you want an additional host-based firewall, install and enable firewalld first:
sudo dnf install -y firewalld
sudo systemctl enable --now firewalld
sudo firewall-cmd --list-allTo allow additional ports, run:
sudo firewall-cmd --permanent --add-port=80/tcp sudo firewall-cmd --permanent --add-port=443/tcp sudo firewall-cmd --reloadCommon use cases
- Tracking the next RHEL 10 minor release ahead of general availability.
- Building and testing RPMs against the RHEL 10 development stream.
- Container and Kubernetes workloads.
- Development, CI and staging environments that mirror the RHEL 10 platform.
Troubleshooting
Cannot connect via SSH
- Verify that the VM is in the Running state in the Azure Portal.
- Check that port 22 is allowed in the Network Security Group.
- Make sure you are using the correct username:
azureuser. - Verify that your SSH key matches the one configured during deployment.
Azure agent not running
sudo systemctl start waagent
sudo systemctl enable waagentPackage manager issues
sudo dnf upgrade -yIf the repositories are unreachable, check DNS resolution:
getent hosts google.comImportant notes
CentOS Stream is free and open source (GPLv2 and a collection of upstream open-source licences). It is the upstream development branch of Red Hat Enterprise Linux 10, sponsored by Red Hat and maintained by the CentOS Project. No licence or paid subscription is required.
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 on Azure with 24/7 support from SecureAnyCloud.
View this image
Need Help?
Our support team is available 24/7.
sales@secureanycloud.com
Overview
CentOS Stream 10 is the free, community-built enterprise Linux distribution maintained by the CentOS Project. It is developed just ahead of Red Hat Enterprise Linux 10. It carries the fixes and features of the next RHEL 10 minor release before RHEL ships them, as a continuous stream of updates rather than numbered point releases.
This AMI is the standard CentOS Stream 10 version of the SecureAnyCloud CentOS Stream listing on AWS Marketplace. It contains the full package set of the official CentOS Stream 10 image for EC2, with nothing trimmed. You pick it as the software version when you subscribe and launch. Every release and variant in the listing is described at /guides/centos-stream-aws/.
What you get
- The standard server package set, with current AWS tools. Everything the official CentOS Stream 10 EC2 image ships stays installed. That includes the
tunedtuning daemon (running thevirtual-guestprofile) and thelinux-firmwarecollection that the Minimal version of this listing removes (Step 4). The AWS Systems Manager agent is installed at its current release. - CIS Level 1 Server remediation. The image is remediated with the OpenSCAP CIS Level 1 Server profile from SCAP Security Guide 0.1.82 (the CentOS Project's own signed
scap-security-guidepackage and its CentOS Stream 10 content), then rebooted and evaluated. 284 of 286 scored rules pass (99.3%), the same on the build and on a freshly launched instance. Seven rules are waived because they cannot work on an EC2 image, each with its reason. The HTML report, the machine-readable results, the waiver list and a summary ship in/usr/share/doc/sac/. - EC2 defaults that keep you in control. Key-only SSH as
ec2-user, root locked, no password on any account, SELinux enforcing, and IMDSv2 required. A host firewall (firewalld) allows SSH in and everything out. The current AWS Systems Manager agent is installed, and time comes from the Amazon Time Sync Service. - Fully patched at build time, with
dnf-automaticapplying all available updates on your instance every day. CentOS Stream publishes no separate security advisories, so there is no "security only" update set to choose. Every update is applied. - 24/7 SecureAnyCloud support.
What is on the image: CentOS Stream 10 (the 6.12 kernel), cloud-init, OpenSSH, firewalld, chrony, tuned, SELinux (targeted policy, enforcing), the AWS Systems Manager agent, auditd, rsyslog, AIDE file integrity checking, dnf-automatic, OpenSCAP, and the pinned SCAP Security Guide content used for the evaluation.
Default user: ec2-user · Architecture: x86_64 · Boot mode: legacy BIOS · Root volume: 10 GiB gp3, XFS (grows to the size you choose at launch)
Standard or another CentOS Stream 10 version? Choose the standard version if you want the image as the CentOS Project ships it for EC2, with tuned applying its virtual-guest tuning. Choose CentOS Stream 10 Minimal if you want a smaller package set and do not need tuned or the hardware firmware collection. It carries the same CIS Level 1 Server hardening. Choose CentOS Stream 10 LVM if your benchmark needs separate volumes for /tmp, /var, /var/log and the other CIS mount points. Every version is listed on the listing hub.
These images are remediated with an OpenSCAP profile and ship their own evaluation report. They are not CIS Hardened Images, and CIS has not reviewed or certified them. CIS publishes no benchmark for CentOS Stream. The profile is the Red Hat Enterprise Linux 10 CIS content as packaged by the CentOS Project for CentOS Stream 10.
Connecting to your instance
For the CentOS Stream 10 version, the SSH user is ec2-user and the root device is /dev/sda1 (10 GiB gp3).
Security posture
- No known credential. There is no default password and no baked-in SSH key. The only key that works is the EC2 key pair you choose at launch, which cloud-init installs for
ec2-useron first boot. - Key-only SSH.
PasswordAuthentication no,PermitRootLogin no, keyboard-interactive off, X11 forwarding off. The root account has no password and is locked. EC2 Instance Connect, which adds a second way to push SSH keys, is not installed. - Per-instance identity. SSH host keys and the machine ID are generated fresh on every instance, so no two instances share a host key.
- IMDSv2 required. The AMI is registered with
ImdsSupport v2.0, so instances launched from it refuse token-less (IMDSv1) metadata requests by default. - SELinux enforcing with the targeted policy, as CentOS Stream ships it.
- Password quality applies to root too. If you set passwords on the instance,
pam_pwqualityrefuses weak ones, including when root sets them (enforce_for_root). - Host firewall. The firewalld
publiczone allows only SSH and the DHCPv6 client inbound, and allows all outbound traffic. The SSM agent, metadata service, DNS, time and package updates therefore keep working. - Only SSH listens on the network. Nothing else on the image listens on any address.
Prerequisites
Before you deploy, make sure you have:
- An AWS account and permission to launch EC2 instances.
- An EC2 key pair in the Region you launch in.
- A security group that allows TCP 22 from your own address, not from the whole internet.
Recommended instance type: m5.large. The image runs on any current x86_64 instance type. Like every CentOS Stream 10 build for x86_64, it needs a processor with the x86-64-v3 feature level (AVX2). Current-generation EC2 x86 instance types provide it.
Launch the instance
Option A: AWS Marketplace console
- Open the SecureAnyCloud CentOS Stream listing on AWS Marketplace. Choose View purchase options, then Subscribe. One subscription covers every version in the listing.
- When the subscription is active, choose Launch your software.
- Choose One-click launch from AWS Marketplace, or Launch from EC2 Console for full control. In Version, choose CentOS Stream 10 - YYYY-MM-DD HH:MM (the date and UTC time when the version was added), then choose your Region.
- Instance type:
m5.largeis recommended, and any current x86_64 type works. The software charge is $0.04 per vCPU per hour. - Key pair: choose your EC2 key pair. It is the only way in. RSA and ED25519 keys both work.
- Security group: allow inbound TCP 22 from your own IP address or network only.
- Storage: the root volume is 10 GiB gp3 by default. Choose a larger size if you need one. On first boot, cloud-init grows the root partition and filesystem to fill it.
- Metadata: leave the defaults, because the image already requires IMDSv2. Then choose Launch.
Option B: AWS CLI
Run this on your own workstation. Replace the AMI ID with the one shown for your Region on the Marketplace launch page. Replace the key pair, security group and subnet with your own. The root device of this AMI is /dev/sda1:
aws ec2 run-instances \
--image-id ami-0123456789abcdef0 \
--instance-type m5.large \
--key-name my-key-pair \
--security-group-ids sg-0123456789abcdef0 \
--subnet-id subnet-0123456789abcdef0 \
--block-device-mappings 'DeviceName=/dev/sda1,Ebs={VolumeSize=20,VolumeType=gp3}' \
--tag-specifications 'ResourceType=instance,Tags=[{Key=Name,Value=centos-stream-10}]'You do not need --metadata-options, because the AMI already requires IMDSv2.
Once you have subscribed, you can also find the AMI ID from the CLI. Look it up by the listing's product code and the version's image name. The newest image comes first, and the same command works in any Region:
ami=$(aws ec2 describe-images --owners aws-marketplace \
--filters Name=product-code,Values=92965ysffq64jl24gdjgioljg \
'Name=name,Values=sac-centos-stream-10-aws-*' \
--query 'sort_by(Images,&CreationDate)[-1].ImageId' --output text)
aws ec2 describe-images --image-ids "$ami" --query 'Images[0].[ImageId,Name]' --output textExpected output (your AMI ID depends on the Region and the version date):
ami-0123456789abcdef0 sac-centos-stream-10-aws-centos-stream-10-<build date>-prod-x7mjtndaxbitiThen pass --image-id "$ami" to aws ec2 run-instances. To find another version of the listing, change the name filter, for example sac-centos-stream-10-minimal-aws-*, sac-centos-stream-10-lvm-aws-* or sac-centos-stream-9-aws-*.
Connect via SSH
From your workstation, connect as ec2-user with the key pair you chose:
ssh -i ~/.ssh/my-key-pair.pem ec2-user@<public-ip>There is no password to enter. If SSH asks for one, or says Too many authentication failures, see Troubleshooting below.
You can also connect without opening port 22 at all, through AWS Systems Manager Session Manager. This requires an instance profile that allows Systems Manager. The agent is installed and running on this image.
Confirm the release
cat /etc/centos-release grep -E '^(NAME|VERSION|ID|VERSION_ID|PLATFORM_ID|PRETTY_NAME)=' /etc/os-release uname -srmExpected output:
CentOS Stream release 10 (Coughlan) NAME="CentOS Stream" VERSION="10 (Coughlan)" ID="centos" VERSION_ID="10" PLATFORM_ID="platform:el10" PRETTY_NAME="CentOS Stream 10 (Coughlan)" Linux 6.12.0-277.el10.x86_64 x86_64CentOS Stream has no point releases. The release is just 10, and the system moves forward through ordinary dnf updates. Your kernel version is newer if updates have installed since this image was built.
The standard package set
This version keeps the CentOS Stream 10 EC2 package set whole. The packages that the Minimal version removes are installed here, and tuned is running. Check them:
rpm -qa | wc -l rpm -q tuned linux-firmware systemctl is-active tuned tuned-adm activeExpected output (the package versions change over time):
547 tuned-2.28.0-1.el10.noarch linux-firmware-20260812-27.el10.noarch active Current active profile: virtual-guest- tuned is the system tuning daemon. Its
virtual-guestprofile, the onetuned-adm recommendpicks on EC2, sets memory writeback and swappiness, disk readahead and CPU performance settings for a guest on a hypervisor. To use another profile, list the profiles withtuned-adm list, then switch with a command such assudo tuned-adm profile throughput-performance. - linux-firmware is the firmware collection for physical network, graphics and wireless hardware. An EC2 instance does not load it, but it is part of the standard CentOS Stream package set, so tools that expect it find it.
- The
sossupport-report collector is not part of the CentOS Stream 10 EC2 base image. If a support engineer asks for a report, install it withsudo dnf -y install sos, then runsudo sos report.
What the Minimal version drops. CentOS Stream 10 Minimal removes linux-firmware and tuned, and lists the removals in /usr/share/doc/sac/minimal-manifest.txt on its own image. A new Minimal instance has 545 packages against 547 here.
Everything else is the same in both versions. The CentOS Stream 10 EC2 base image is already small, so neither version has sound firmware, Cockpit or Plymouth installed. Both carry the same hardening, compliance tooling and AWS agents. The package count on your instance moves by a few as kernels and updates install.
Read the compliance evidence
The evaluation that the build ran after its reboot ships on the image. List the evidence files:
ls -lh /usr/share/doc/sac/ python3 -c "import json; s=json.load(open('/usr/share/doc/sac/cis-l1-summary.json')); print('profile: ', s['profileLabel'], '(SCAP Security Guide', s['ssgVersion'] + ')'); print('scored rules: ', s['scored'], ' pass:', s['pass'], ' fail:', s['fail'], ' rate:', str(s['ratePct']) + '%'); print('waived: ', s['waived'], ' not applicable:', s['notapplicable']); print('evaluated at: ', s['evaluatedAt'])"Expected output:
total 32M -rw-r--r--. 1 root root 29M Oct 21 14:20 cis-l1-arf.xml -rw-r--r--. 1 root root 2.4M Oct 21 14:20 cis-l1-report.html -rw-r--r--. 1 root root 1.3K Oct 21 14:20 cis-l1-summary.json -rw-r--r--. 1 root root 1.8K Oct 21 14:20 cis-l1-tailoring.xml -rw-r--r--. 1 root root 2.9K Oct 21 14:20 cis-l1-waivers.txt -rw-r--r--. 1 root root 1.6K Oct 21 14:09 scap-security-guide-LICENSE.txt profile: CIS Level 1 Server (SCAP Security Guide 0.1.82) scored rules: 286 pass: 284 fail: 2 rate: 99.3% waived: 7 not applicable: 31 evaluated at: 2026-10-21T14:20:36Zcis-l1-report.htmlis the full OpenSCAP report, rule by rule. Copy it to your workstation and open it in a browser.cis-l1-arf.xmlis the same evaluation in the machine-readable ARF format, for compliance tooling.cis-l1-tailoring.xmlis the exact tailoring used, so you can re-run the same evaluation (Step 6).- The pass rate is pass / (pass + fail + error + unknown). Rules that are not applicable to this machine, not selected or waived are not counted.
To copy the report to your workstation, run this command on the workstation:
scp -i ~/.ssh/my-key-pair.pem ec2-user@<public-ip>:/usr/share/doc/sac/cis-l1-report.html .The seven waived rules
grep -v '^#' /usr/share/doc/sac/cis-l1-waivers.txt | cut -f1,2Expected output:
partition_for_tmp [single-volume-partitions] grub2_password [serial-console-and-boot] ensure_root_password_configured [serial-console-and-boot] accounts_maximum_age_login_defs [key-only-account-aging] account_disable_post_pw_expiration [key-only-account-aging] sshd_limit_user_access [ssh-access-list] service_systemd-journal-upload_enabled [log-remote-destination]The full reason for each is the third column of the same file. In short:
- Separate /tmp partition: this version boots from one EBS root volume. The LVM versions of this listing provide separate volumes for /tmp, /var, /var/log, /var/log/audit, /var/tmp and /home.
- Boot loader and root passwords: a GRUB or root password would have to be baked into the image, giving every instance the same secret. Root stays locked with no password. Set your own if you need serial console access (see Step 11).
- Password ageing defaults: the accounts cloud-init creates are key-only, and an ageing limit would expire them and lock the SSH key out. Accounts that do have a password are still aged.
- SSH AllowUsers/AllowGroups: a list fixed at build time would refuse accounts you create later. Your security group restricts who can reach port 22.
- Journal upload to a remote log server: the profile switches on
systemd-journal-uploadbut sets no destination, and an image cannot know your log server. With no destination, the service fails at every boot.systemd-journal-remoteis installed and the upload service is left off. To enable it, create/etc/systemd/journal-upload.confwith an[Upload]section andURL=for your collector (the packaged defaults are in/usr/lib/systemd/journal-upload.conf), then runsudo systemctl enable --now systemd-journal-upload.
The two rules that do not pass
python3 -c "import json; [print(r) for r in json.load(open('/usr/share/doc/sac/cis-l1-summary.json'))['failingRules']]"Expected output:
ensure_journald_and_rsyslog_not_active_together ensure_redhat_gpgkey_installed- journald and rsyslog together. The benchmark wants one logging system, not both. CentOS Stream runs journald and rsyslog together by default. Journald keeps the structured system journal (persistent, in
/var/log/journal). Rsyslog writes the traditional text logs (/var/log/messages,/var/log/secure,/var/log/cron) that many log shippers and audit procedures read. The image keeps both so that neither kind of tooling loses its logs. If you standardise on one, for example the journal only, runsudo systemctl disable --now rsyslogon your instance and re-run Step 6. - Red Hat's package signing key. The rule comes from the RHEL content and checks that Red Hat's own release key is in the RPM database. The CentOS Project, not Red Hat, signs CentOS Stream packages, so that key is neither shipped nor useful here. The CentOS Official Signing Key is installed, and every repository checks package signatures (
gpgcheck=1).rpm -qa gpg-pubkeylists the keys. The image deliberately does not import a key that signs none of its packages.
Re-run the evaluation yourself
You can repeat the evaluation at any time with the same content and tailoring. It takes under a minute. Run:
sudo oscap xccdf eval \
--tailoring-file /usr/share/doc/sac/cis-l1-tailoring.xml \
--profile xccdf_co.sac_profile_cis-l1_ec2_single \
--results /tmp/cis-check-results.xml --report /tmp/cis-check-report.html \
/usr/share/xml/scap/ssg/content/ssg-cs10-ds.xml > /tmp/cis-check.log 2>&1 echo "oscap exit code: $? (2 = at least one rule did not pass)"
sudo python3 -c "import re,collections; c=collections.Counter(re.findall(r'<result>(\w+)</result>', open('/tmp/cis-check-results.xml').read())); s=sum(c[k] for k in ('pass','fail','error','unknown')); print(dict(sorted(c.items()))); print('pass rate: %.1f%%' % (100.0*c['pass']/s))"Expected output:
oscap exit code: 2 (2 = at least one rule did not pass) {'fail': 2, 'notapplicable': 31, 'notselected': 756, 'pass': 284} pass rate: 99.3%Your own report is at /tmp/cis-check-report.html. Use the ssg-cs10-ds.xml content shown above. The scap-security-guide package also ships ssg-rhel10-ds.xml, but that content applies only to Red Hat Enterprise Linux, so on CentOS Stream it reports almost every rule as not applicable. As you install software and change settings, re-run the evaluation to see how your changes affect the result.
Confirm IMDSv2 is required
curl -s -o /dev/null -w 'IMDSv1 request without a token: HTTP %{http_code}\n' http://169.254.169.254/latest/meta-data/instance-id
TOKEN=$(curl -s -X PUT -H 'X-aws-ec2-metadata-token-ttl-seconds: 60' http://169.254.169.254/latest/api/token)
curl -s -H "X-aws-ec2-metadata-token: $TOKEN" -w '\n' http://169.254.169.254/latest/meta-data/placement/regionExpected output (your Region may differ):
IMDSv1 request without a token: HTTP 401 us-east-1A request without a session token is refused with HTTP 401, and the same request with a token works. Scripts and SDKs on the instance must use IMDSv2. Every current AWS SDK and the AWS CLI do this automatically.
The host firewall and listening ports
sudo firewall-cmd --state sudo firewall-cmd --list-all sudo ss -tlnpExpected output (the interface name and process IDs may differ):
running public (default, active) target: default ingress-priority: 0 egress-priority: 0 icmp-block-inversion: no interfaces: ens5 sources: services: dhcpv6-client ssh ports: protocols: forward: yes masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: State Recv-Q Send-Q Local Address:Port Peer Address:PortProcess LISTEN 0 128 0.0.0.0:22 0.0.0.0:* users:(("sshd",pid=1204,fd=7)) LISTEN 0 128 [::]:22 [::]:* users:(("sshd",pid=1204,fd=8))- Only
sshdlistens, on port 22. Nothing else on the image opens a TCP port. - The
publiczone allowssshanddhcpv6-client. The latter allows replies to the instance's IPv6 DHCP client, which is how an instance in an IPv6-enabled subnet gets its address. The CentOS defaultcockpitservice is removed from the zone, and Cockpit is not installed. - The loopback interface sits in the firewalld
trustedzone, which is a CIS requirement. Local services can therefore talk to each other overlo.
Opening a port for your own service takes two steps: allow it in the instance's security group, and allow it in firewalld. For example, for a web server on 443, run this on the instance:
sudo firewall-cmd --permanent --add-service=https sudo firewall-cmd --reloadIf a port is open in the security group but not in firewalld, or the other way round, the traffic does not arrive.
Time sync and the Systems Manager agent
systemctl is-active chronyd amazon-ssm-agent chronyc -n sourcesExpected output (the timings vary):
active active MS Name/IP address Stratum Poll Reach LastRx Last sample =============================================================================== ^* 169.254.169.123 3 4 377 31 -87ns[ -87us] +/- 552usThe ^* marks the source chrony is using: 169.254.169.123, the Amazon Time Sync Service. It is reachable from every instance without internet access, so time stays correct in a private subnet too.
The AWS Systems Manager agent is installed from Amazon's own package at its current release (3.3.5390.0 on this build). It is not in the CentOS Stream repositories, so dnf does not update it. Systems Manager can keep it current for you, through the AWS-UpdateSSMAgent document or the Auto update SSM Agent setting in Fleet Manager.
Patch level and automatic updates
The image is fully patched at build time. Check which updates are pending and how automatic updates are set up:
sudo dnf -q check-update --refresh echo "dnf check-update exit code: $? (0 = nothing to update, 100 = updates available)" grep -E '^(upgrade_type|apply_updates|reboot) =' /etc/dnf/automatic.conf systemctl is-enabled dnf-automatic.timer systemctl cat dnf-automatic.timer | grep -E '^(OnCalendar|RandomizedDelaySec)' uname -rExpected output on an instance launched soon after the image was built. Later launches list the updates released since, with exit code 100:
dnf check-update exit code: 0 (0 = nothing to update, 100 = updates available) upgrade_type = default apply_updates = yes reboot = never enabled OnCalendar=*-*-* 6:00 RandomizedDelaySec=60m 6.12.0-277.el10.x86_64How dnf-automatic is configured on this image:
upgrade_type = defaultinstalls every available update, not only security fixes. CentOS Stream's repositories carry no security advisory data, so a security-only setting would install nothing at all.apply_updates = yesinstalls the updates instead of only downloading them.- The timer runs daily at 06:00 (instance time, UTC by default) with a random delay of up to an hour.
reboot = nevermeans a new kernel or core library is installed but takes effect only after you reboot, at a time you choose.
CentOS Stream moves ahead of RHEL and updates arrive continuously. If your workload is sensitive to package changes, test updates on a non-production instance first.
To stop automatic updates, run sudo systemctl disable --now dnf-automatic.timer. To update everything now, run:
sudo dnf -y upgradeReboot if a new kernel was installed:
sudo systemctl rebootSecurity settings on the instance
getenforce
sudo passwd -S root
sudo sshd -T | grep -E '^(permitrootlogin|passwordauthentication|pubkeyauthentication|maxauthtries|clientaliveinterval|banner) ' cat /etc/issue.netExpected output:
Enforcing root L 2025-04-08 0 99999 7 -1 maxauthtries 4 clientaliveinterval 300 permitrootlogin no pubkeyauthentication yes passwordauthentication no banner /etc/issue.net Authorized users only. All activity may be monitored and reported.Enforcingmeans SELinux is on and enforcing the targeted policy. Keep it on. If your own software is denied, checksudo ausearch -m avc -ts recentrather than disabling SELinux.Lin the second column means the root account is locked.sshd -Tprints the settings the SSH server actually uses, after every file in/etc/ssh/sshd_config.d/has been read.maxauthtries 4andclientaliveinterval 300come from the CIS profile. SSH allows four authentication attempts per connection and checks idle sessions every five minutes.sudo sshd -T | grep -E '^(x11forwarding|kbdinteractiveauthentication) 'shows both set tono.- The banner text is shown before login.
EC2 Serial Console and recovery. No account on this image has a password, so the serial console cannot log in until you set one. If you want serial console access, set a password for your own user on your running instance. The password is yours and is not on the image, and pam_pwquality refuses a weak one:
sudo passwd ec2-userDisk layout, size, swap and file integrity
df -hT / lsblk -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINT
sudo grep -E 'cc_growpart.*(resized|NOCHANGE)' /var/log/cloud-init.log | tail -1 swapon --noheadings --show | wc -l sudo grep -h aide /etc/crontabExpected output with the default 10 GiB root volume (on a larger volume, Size is larger and the cloud-init line says resized):
Filesystem Type Size Used Avail Use% Mounted on /dev/nvme0n1p3 xfs 9.8G 2.2G 7.6G 23% / NAME SIZE TYPE FSTYPE MOUNTPOINT nvme0n1 10G disk ├─nvme0n1p1 1M part ├─nvme0n1p2 200M part vfat /boot/efi └─nvme0n1p3 9.8G part xfs / 2026-10-21 14:44:51,726 - cc_growpart.py[DEBUG]: '/' NOCHANGE: no change necessary (/dev/nvme0n1, 3) 0 05 4 * * * root /usr/sbin/aide --check- Disk layout. This is the standard (not LVM) layout of the official CentOS Stream 10 image. The root filesystem is XFS on partition 3 of the root volume, with
/booton the root filesystem. Partition 1 is the small BIOS boot partition that the boot loader uses. Partition 2 is an EFI system partition that the image carries but does not boot from, because the AMI boots in legacy BIOS mode. If you need separate filesystems for/var,/var/log,/tmpor/home, or want to grow storage by adding volumes, choose the CentOS Stream 10 LVM version of this listing instead. - Disk growth. On first boot, cloud-init grows the root partition and filesystem to the volume size. To grow them later, increase the EBS volume size in the console or with
aws ec2 modify-volume, then runsudo growpart /dev/nvme0n1 3 && sudo xfs_growfs /(or reboot). - Swap. The image has no swap. Add a swap file yourself if your workload needs one.
- AIDE. The file integrity database is built from the image's own files, and the CIS profile schedules
aide --checkdaily at 04:05 from/etc/crontab.
Install software and add users
The instance uses the standard CentOS Stream 10 repositories (BaseOS, AppStream and Extras). List them:
sudo dnf -q list --available nginxExpected output (the version changes over time):
Available Packages nginx.x86_64 2:1.26.3-15.el10 appstreamInstall and start software in the usual way, for example sudo dnf -y install nginx then sudo systemctl enable --now nginx. Then open its port in the security group and firewalld (Step 8).
The CRB repository (build and development dependencies) is installed but disabled. If a package needs it, enable it with sudo dnf config-manager --set-enabled crb. The AWS CLI is not on the image. If you need it, install the current version from AWS (the AWS CLI install guide).
To add another administrator, create the account, add it to the wheel group and give it an SSH key:
sudo useradd -m -G wheel alice
sudo install -d -m 700 -o alice -g alice /home/alice/.ssh echo "ssh-ed25519 AAAA... alice@laptop" | sudo tee /home/alice/.ssh/authorized_keys
sudo chown alice:alice /home/alice/.ssh/authorized_keys && sudo chmod 600 /home/alice/.ssh/authorized_keys
sudo restorecon -R /home/alice/.sshBecause SSH is key-only, a new account needs its key in authorized_keys. The restorecon command gives the file the SELinux label that sshd expects.
The new account has no password, so sudo cannot authenticate it until you give it one with sudo passwd alice. SSH stays key-only, and sudo uses the password. Only ec2-user, created by cloud-init, has password-free sudo.
Common use cases
- Developing and testing against what the next RHEL 10 minor release will contain, before it ships.
- Building and validating software, packages and automation for the RHEL 10 family on a free distribution.
- A base for workloads that must show CIS Level 1 alignment, with the evaluation report already on the machine.
- General-purpose servers and container hosts that want the distribution's own tuning (tuned) and the complete standard package set.
- Fleets managed through Systems Manager, with IMDSv2 required from the first boot.
- A starting point for your own golden image: add your software, re-run Step 6, and keep the report with your build.
Troubleshooting
SSH says "Too many authentication failures"
The SSH server allows four authentication attempts per connection. If your SSH agent holds several keys, it can use them all up before it offers the right one. Tell SSH to offer only the key you name:
ssh -o IdentitiesOnly=yes -i ~/.ssh/my-key-pair.pem ec2-user@<public-ip>Cannot connect via SSH
- Check that the instance is running and has passed its status checks.
- Check that the security group allows TCP 22 from your current public address.
- Use the user name
ec2-userand the key pair chosen at launch. Password login is disabled, so a wrong key never falls back to a password prompt. - If you changed firewalld, make sure the
sshservice is still allowed. Session Manager (Step 2) still works if SSH is blocked, provided the instance has a Systems Manager instance profile.
The instance does not boot on an older instance type
CentOS Stream 10 for x86_64 is built for the x86-64-v3 feature level. Very old instance families whose processors lack AVX2 cannot run it. Choose a current-generation type such as m5, m6i, m7i, c6i or t3.
My service is running but not reachable
Allow the port in both the security group and firewalld (Step 8). sudo firewall-cmd --list-all shows the firewalld rules. sudo ss -tlnp shows whether the service listens on all addresses or only on loopback.
If the service runs on a non-standard port, SELinux may also need to allow it. Install the SELinux management tools with sudo dnf -y install policycoreutils-python-utils. Then, for a web server on 8080, for example, run sudo semanage port -a -t http_port_t -p tcp 8080.
A tool that uses instance metadata fails
The image requires IMDSv2. Old scripts that call http://169.254.169.254/ without a token get HTTP 401. Update them to request a token first (Step 7), or use the AWS CLI or a current SDK.
An automatic update changed something
dnf-automatic applies every update daily (Step 10). See what changed and when with sudo dnf history list and sudo dnf history info <id>. sudo dnf history undo <id> reverses a transaction while the older packages are still in the repositories.
Package manager issues
Refresh the metadata first:
sudo dnf -q makecache --refresh && echo "repository metadata refreshed"If the repositories are unreachable, check that the instance has outbound internet access (a public IP or a NAT gateway) and that DNS resolves:
getent hosts mirrors.centos.orgImportant notes
CentOS Stream is free and open source software. It is a distribution of thousands of packages, each under its own licence (GPL, LGPL, MIT, BSD, Apache 2.0 and others). rpm -qi <package> shows each package's licence. No subscription or licence key is needed to run this image. The compliance tooling is OpenSCAP (LGPL 2.1 or later) and SCAP Security Guide content (BSD 3-Clause, licence text in /usr/share/doc/sac/scap-security-guide-LICENSE.txt).
CentOS Stream 10 is maintained by the CentOS Project for the life of Red Hat Enterprise Linux 10's full support phase; the CentOS Project publishes the end-of-life date. It is a continuously updated distribution that runs slightly ahead of RHEL 10, so it is not a drop-in replacement for a specific RHEL release.
The CIS Level 1 Server profile used here is the OpenSCAP profile published in SCAP Security Guide. These images are not CIS Hardened Images and are not certified by the Center for Internet Security. A pass rate measures this image as built. Your own changes affect it, which is why you can re-run the evaluation (Step 6).
CentOS is a trademark of Red Hat, Inc. Red Hat Enterprise Linux is a trademark of Red Hat, Inc. CIS is a trademark of the Center for Internet Security. These names are used only to identify the software, its compatibility and the profile. SecureAnyCloud is not affiliated with or endorsed by the CentOS Project, Red Hat or the Center for Internet Security.
Support
For help with this image, contact SecureAnyCloud support:
- Website: secureanycloud.com
- User guides: secureanycloud.com/guides
- CentOS Stream on AWS hub: secureanycloud.com/guides/centos-stream-aws
Deploy on AWS
Launch CentOS Stream 10 on AWS with 24/7 support from SecureAnyCloud.
View on Marketplace
Need Help?
Our support team is available 24/7.
sales@secureanycloud.com