# Ubuntu 26.04

Prepared on 2026-11-22 from Canonical's Ubuntu 26.04.1 LTS cloud image.

## Artifact

- Canonical source: https://cloud-images.ubuntu.com/releases/resolute/release/ubuntu-26.04-server-cloudimg-amd64.img
- Source release: `20261108`, manifest published 2026-11-14.
- Source SHA-256: `7b90593f5532b49b7e3fe3d2743f0d1f0d822e5b07cebcd8e00c0df8069ecab9`.
- Mirror URL: https://cloud-mirrors.noc.sh/ubuntu-26.04/ubuntu-26.04.qcow2
- Image SHA-256: `8e17175acd1139cd57c6aa1b661ab071b5f1709777ae5af9da6c74a0f72a7edd`.
- File size: 2,395,406,336 bytes; virtual disk: 30 GiB.
- Sparse, uncompressed, standalone QCOW2; x86_64.
- Kernel: `7.0.0-43-generic`; cloud-init: `26.2-0ubuntu1~26.04.1`.
- Fixed 1 GiB swap, root SSH, QEMU guest agent, VGA and serial consoles.

## Preparation

`static-network/prepare-ubuntu26.py` verifies the pinned official source, copies
it into a separate 30 GiB image, configures ConfigDrive and installs the existing
Apache ConfigDrive password script/unit. It enables the existing root-user and
SSH settings and normal initramfs/VGA boot. No CloudStack backend changes or
cloud-init downgrade are required.

Boot a private overlay with ConfigDrive static networking and bootstrap user data
that installs `qemu-guest-agent` from Ubuntu's signed repositories and creates
`/swap.img` at 1073741824 bytes. Let cloud-init expand the root partition. Do not
perform a general package upgrade. After a verified clean shutdown, seal offline:
clean cloud-init logs, machine ID and seed; lock root with an unusable password;
remove SSH host keys, authorized keys, cloud-init network/instance state,
password checksum and random seed; clear logs and package cache. Trim and export
the overlay as a standalone, uncompressed QCOW2. Verify its checksum and
`qemu-img check` before publication.

The build and private acceptance scripts/evidence are retained under
`/vms/ubuntu26-20261122` on SE-1 and
`.secrets/production-20261122/ubuntu26/` locally. Disposable credentials and
acceptance overlays are removed after validation.

## Acceptance

The final sealed image passed a fresh isolated KVM boot using `qemu64`, two vCPUs,
2 GiB RAM, VirtIO disk/network and a CloudStack-compatible ConfigDrive:

- Static IPv4, gateway, DNS and outbound HTTPS.
- Root password and SSH-key authentication.
- Visible tty1 login, serial console and QEMU guest agent.
- Root filesystem expansion and active 1 GiB swap.
- Guest-changed password preserved across reboot with unchanged ConfigDrive.
- New ConfigDrive password applied after reboot and authenticated over SSH.
- cloud-init `done`, no errors/recoverable warnings, systemd `running`.

This is isolated image acceptance, not a fresh CloudStack-deployed VM test.
An empty `#cloud-config` document caused a warning in the first test fixture;
using empty user data for the no-user-data case resolved it without an image
change. The QGA shutdown command intentionally has no response; the test waits
for the new boot ID rather than a command reply.

## Registration

Use the exact name and description `Ubuntu 26.04`, All Zones, Public, KVM,
QCOW2, x86_64, password enabled, HVM, default root controller, and resource tag
`templateType=template`. CloudStack 4.23 currently has no Ubuntu 26.04 OS entry;
use the existing `Other Ubuntu (64-bit)` type. Preserve existing OS templates.
