Declarative mkosi-based build pipeline for CachyOS Server Edition cloud VM images (.qcow2, .raw.zst) and container rootfs tarballs (-rootfs.tar.zst).
Prebuilt images are published on GitHub Releases for four x86-64 microarchitecture tiers:
| Tier | Filenames | Recommended For |
|---|---|---|
x86_64 |
cachyos-server-x86-64.{qcow2,raw.zst}cachyos-server-x86-64-rootfs.tar.zst |
Generic baseline; safest default for shared-vCPU cloud fleets where AVX2 may be masked |
x86_64_v3 |
cachyos-server-x86-64-v3.{qcow2,raw.zst}cachyos-server-x86-64-v3-rootfs.tar.zst |
AVX2 / BMI2 optimized (cachyos-v3); recommended for modern cloud, KVM, and Proxmox VMs |
x86_64_v4 |
cachyos-server-x86-64-v4.{qcow2,raw.zst}cachyos-server-x86-64-v4-rootfs.tar.zst |
AVX-512 optimized (cachyos-v4) for dedicated hosts with AVX-512 passthrough |
znver4 |
cachyos-server-znver4.{qcow2,raw.zst}cachyos-server-znver4-rootfs.tar.zst |
AMD Zen 4/5 optimized (cachyos-znver4) for EPYC Genoa/Bergamo/Turin and Ryzen 7000/9000 |
| Format | Approx. Size | Target Platforms |
|---|---|---|
.qcow2 |
~520–535 MiB | Proxmox VE, KVM/libvirt, OpenStack, Vultr, DigitalOcean |
.raw.zst |
~390–400 MiB | Hetzner Cloud (hcloud-upload-image), AWS AMI, GCP, raw disk imaging |
-rootfs.tar.zst |
~190–200 MiB | Proxmox LXC, Incus/LXC, Docker/Podman base images, chroots (no kernel) |
Releases are signed offline with the CachyOS release key (F3B607488DB35A47):
# Import the CachyOS release key (once)
gpg --keyserver keyserver.ubuntu.com --recv-keys F3B607488DB35A47
# Download checksums, signature, and your chosen image
BASE="https://github.com/CachyOS/Server-Edition/releases/latest/download"
curl -fLO "${BASE}/SHA256SUMS"
curl -fLO "${BASE}/SHA256SUMS.sig"
curl -fLO "${BASE}/cachyos-server-x86-64-v3.qcow2"
# Verify GPG signature and SHA-256 checksum
gpg --verify SHA256SUMS.sig SHA256SUMS
sha256sum --ignore-missing -c SHA256SUMS- Kernel & Boot:
linux-cachyos-serverwith hybrid BIOS + UEFI GRUB (1 MiBBIOS boot +512 MiBFAT32/bootESP +ext4root), booting out-of-the-box on both Legacy BIOS (Hetzner, DigitalOcean, SeaBIOS) and UEFI (OVMF, AWS Nitro, modern bare metal) hosts. Minimalmkinitcpioinitramfs (nokmshook, virtio/NVMe/SCSI/Hyper-V/Xen storage modules built in). - Server Tuning:
cachyos-server-settings(bbr3+fq, 32 MiB TCP autotuning,nf_conntrackmodprobe hook, THPdefer+madvise+ shrinker with LXC-safew-!tmpfiles, server I/O schedulers, persistent cappedjournald,Storage=nonecoredumps,timesyncdNTP pools,multi-user.targetdefault). Opt-in SSH andnftableshardening templates live in/usr/share/cachyos-server-settings/. - Networking:
systemd-networkd+systemd-resolved, managed bycloud-initwith a non-blocking DHCP fallback (20-ethernet.network) so extra unconfigured NICs do not stall boot. - Access & Security: Default user
cachyos(wheel+ passwordlesssudo), locked root account (RootPassword=hashed:!), and SSH password authentication disabled (cloud-initinjects SSH keys from hoster metadata). - Auto-Resize:
growpart+resize_rootfsexpand/automatically to fill the provisioned disk on first boot. - Guest Integration:
qemu-guest-agentenabled; serial console (ttyS0,115200n8) +tty0configured. - First-Boot Hygiene:
/etc/machine-idis leftuninitialized, SSH host keys and pacman caches are stripped, andcachyos-pacman-init.serviceinitializes a fresh local pacman keyring on first boot beforecloud-init-network.
curl -fLO https://github.com/CachyOS/Server-Edition/releases/latest/download/cachyos-server-x86-64-v3.qcow2
qm create 9000 --name cachyos-server --memory 2048 --cores 2 --cpu host \
--net0 virtio,bridge=vmbr0 --bios ovmf --machine q35 --agent enabled=1
qm set 9000 --efidisk0 local-lvm:1,efitype=4m,pre-enrolled-keys=0
qm importdisk 9000 cachyos-server-x86-64-v3.qcow2 local-lvm
qm set 9000 --scsihw virtio-scsi-pci --scsi0 local-lvm:vm-9000-disk-0
qm set 9000 --ide2 local-lvm:cloudinit --boot order=scsi0 --serial0 socket --vga serial0
qm set 9000 --ciuser cachyos --ipconfig0 ip=dhcp --sshkeys ~/.ssh/id_ed25519.pub
qm template 9000(For Legacy BIOS VMs, omit --bios ovmf and --efidisk0 — the image boots in SeaBIOS mode automatically.)
curl -fLo /var/lib/vz/template/cache/cachyos-server-x86-64-v3-rootfs.tar.zst \
https://github.com/CachyOS/Server-Edition/releases/latest/download/cachyos-server-x86-64-v3-rootfs.tar.zst
pct create 9100 local:vztmpl/cachyos-server-x86-64-v3-rootfs.tar.zst \
--hostname cachyos-ct --ostype archlinux --unprivileged 1 --features nesting=1 \
--cores 2 --memory 1024 --rootfs local-lvm:8 \
--net0 name=eth0,bridge=vmbr0,ip=dhcp --ssh-public-keys ~/.ssh/id_ed25519.pub
pct start 9100hcloud-upload-image upload \
--image-url https://github.com/CachyOS/Server-Edition/releases/latest/download/cachyos-server-x86-64-v3.raw.zst \
--architecture x86 \
--compression zstd \
--description "CachyOS Server x86-64-v3"(Use cachyos-server-x86-64.raw.zst if you need maximum compatibility across older shared-vCPU servers without AVX2.)
curl -fsSL https://github.com/CachyOS/Server-Edition/releases/latest/download/cachyos-server-x86-64-v3-rootfs.tar.zst \
| zstd -dc | docker import - cachyos-server:v3
docker run --rm -it cachyos-server:v3 bash# Create a 10 GiB copy-on-write overlay so the base image stays untouched
qemu-img create -f qcow2 -b cachyos-server-x86-64-v3.qcow2 -F qcow2 test-vm.qcow2 10G
# Build a NoCloud seed ISO with your SSH key
cat > meta-data <<'EOF'
instance-id: cachyos-local-001
local-hostname: cachyos-test
EOF
cat > user-data <<EOF
#cloud-config
ssh_authorized_keys:
- $(cat ~/.ssh/id_ed25519.pub)
EOF
mkisofs -output seed.iso -volid cidata -joliet -rock user-data meta-data
# Boot with UEFI (OVMF) and forward guest SSH to localhost:2222
cp /usr/share/edk2/x64/OVMF_VARS.4m.fd ./OVMF_VARS.fd
qemu-system-x86_64 -enable-kvm -cpu host -m 2048 -smp 2 -machine q35 \
-drive if=pflash,format=raw,readonly=on,file=/usr/share/edk2/x64/OVMF_CODE.4m.fd \
-drive if=pflash,format=raw,file=./OVMF_VARS.fd \
-drive file=test-vm.qcow2,if=virtio \
-drive file=seed.iso,format=raw,readonly=on,if=virtio \
-netdev user,id=net0,hostfwd=tcp:127.0.0.1:2222-:22 -device virtio-net-pci,netdev=net0 \
-nographic
# Connect in another terminal:
# ssh -p 2222 cachyos@127.0.0.1Install the build and smoke-test dependencies on Arch/CachyOS:
sudo pacman -S mkosi grub qemu-img qemu-system-x86 edk2-ovmf cdrtools openssh python zstd dosfstools mtools e2fsprogs cpio systemd-ukifyBuild artifacts into dist/:
# Syntax: ./build.sh [cloud|rootfs|all] [x86_64|x86_64_v3|x86_64_v4|znver4] [--local-pkg-dir PATH]
./build.sh all x86_64_v3Run the automated UEFI + Legacy BIOS QEMU smoke test suite:
./tests/smoke-test.sh dist/cachyos-server-x86-64-v3.qcow2 x86_64_v3Trigger the Build CachyOS Server Images workflow via workflow_dispatch with publish: true (images upload directly to a draft GitHub Release without using Actions Artifact storage), then sign SHA256SUMS locally with the offline CachyOS release key:
TAG="2026.11.29"
gh release download "$TAG" -R CachyOS/Server-Edition -p SHA256SUMS --clobber
gpg --detach-sign --local-user F3B607488DB35A47 -o SHA256SUMS.sig SHA256SUMS
gpg --verify SHA256SUMS.sig SHA256SUMS
gh release upload "$TAG" -R CachyOS/Server-Edition SHA256SUMS.sig --clobber
gh release edit "$TAG" -R CachyOS/Server-Edition --draft=false
rm -f SHA256SUMS SHA256SUMS.sig