Booting Linux
Boot unmodified Alpine, Debian and Arch Linux ARM, from a kernel and initrd or through U-Boot and EFI.
Warm64 boots stock, unmodified arm64 Linux distributions. There are two ways to boot one:
- Directly: give it a kernel with
-kerneland, usually, an initramfs with-initrd. This is the fastest way to a shell. - Through firmware: give it U-Boot with
-biosand a disk with an EFI system partition. U-Boot findsEFI/BOOT/BOOTAA64.EFIand starts it, the way a real Arm board boots.
Alpine Linux
Alpine's netboot kernel and initramfs boot to a shell on their own.
curl -LO https://dl-cdn.alpinelinux.org/alpine/v3.22/releases/aarch64/netboot/vmlinuz-virt
curl -LO https://dl-cdn.alpinelinux.org/alpine/v3.22/releases/aarch64/netboot/initramfs-virt
warm-system-aarch64 -m 1G -cpu cortex-a76 -kernel vmlinuz-virt -initrd initramfs-virt -append console=ttyAMA0 -nographicThe kernel's messages scroll past and a ~ # prompt appears. Press Ctrl+A then x to quit.
-m 1G: the default is QEMU's 128 MiB, which is too little for Alpine's initramfs.-cpu cortex-a76: QEMU's default CPU forvirtis a 32-bit one, so always name the CPU.console=ttyAMA0: the board's first serial port, which-nographicputs on your terminal.- The compressed kernel:
vmlinuz-virtis an EFI zboot image. Warm64 unpacks it for you, just as it unpacks a gzipped initramfs.
With a root disk
To boot an installed system, add its disk and point the kernel at it:
warm-system-aarch64 -m 1G -cpu cortex-a76 -kernel vmlinuz-virt -initrd initramfs-virt \
-drive file=rootfs.img,if=virtio,format=raw \
-append "console=ttyAMA0 root=/dev/vda rw rootfstype=ext4 modules=virtio_pci,virtio_blk,ext4" \
-nographicThe disk is opened in place, so the guest's writes go to rootfs.img as they happen. Add -snapshot to keep the image unchanged. See Disks and images.
Debian
Debian publishes ready-to-boot arm64 images. The nocloud image has a root account with no password.
- Download the image. It's a qcow2 file, which Warm64 opens directly:
curl -LO https://cloud.debian.org/images/cloud/trixie/latest/debian-13-nocloud-arm64.qcow2- Get U-Boot for QEMU's virt board (see U-Boot below).
- Boot it:
warm-system-aarch64 -m 1G -cpu cortex-a76 -bios u-boot.bin -drive file=debian-13-nocloud-arm64.qcow2,if=virtio -nographicU-Boot finds the image's EFI partition, GRUB starts the kernel, and systemd brings the system up to a login prompt. Log in as root. The guest's writes go into the qcow2 file; add -snapshot to leave it unchanged.
Tip If /boot/efi fails to mount while the system starts, add systemd.default_device_timeout_sec=600 to the kernel's command line (in GRUB, press e). Emulated disks can take longer to appear than systemd's default allows.
Arch Linux ARM
Arch Linux ARM publishes a root filesystem, ArchLinuxARM-aarch64-latest.tar.gz, rather than a disk image. To boot it:
- Make a raw disk image with an ext4 filesystem and unpack the tarball into it.
- Take the kernel (
boot/Image) and initramfs from it. The initramfs must include the virtio drivers (virtio_mmioorvirtio_pci, andvirtio_blk); add them withmkinitcpioif they're missing. - Boot:
warm-system-aarch64 -m 1G -cpu cortex-a76 -kernel Image -initrd initramfs-linux.img \
-drive file=arch.img,if=virtio,format=raw \
-append "console=ttyAMA0 root=/dev/vda rw" -nographicThe default login is root with the password root.
Firmware
U-Boot
The U-Boot build for QEMU's virt board boots every system on these pages. Debian packages it as u-boot-qemu, and the file you need inside the package is usr/lib/u-boot/qemu_arm64/u-boot.bin:
curl -LO https://deb.debian.org/debian/pool/main/u/u-boot/u-boot-qemu_2025.01-3+deb13u1_all.deb
ar x u-boot-qemu_*_all.deb
tar xf data.tar.xz ./usr/lib/u-boot/qemu_arm64/u-boot.bin
cp usr/lib/u-boot/qemu_arm64/u-boot.bin .U-Boot runs from flash at the reset vector. It finds the device tree at the start of RAM, scans the virtio disks, and boots EFI/BOOT/BOOTAA64.EFI from the first EFI system partition.
To give U-Boot somewhere to keep its environment, pass the board's two flash banks as images instead of -bios, as with QEMU. Each image must be exactly 64 MiB. U-Boot's saveenv then keeps its settings across reboots:
cp u-boot.bin flash0.img && warm-img resize -f raw flash0.img 64M
warm-img create -f raw flash1.img 64M
warm-system-aarch64 -m 1G -cpu cortex-a76 \
-drive if=pflash,format=raw,file=flash0.img,readonly=on -drive if=pflash,format=raw,file=flash1.img ...UEFI (EDK2)
QEMU's EDK2 firmware works too, as it does on QEMU. -bios edk2-aarch64-code.fd finds the file in an installed QEMU's data directory (-L help lists where Warm64 looks), or you can give its path. With EDK2, the guest also gets QEMU's ACPI tables.
What the guest sees
- CPU: the model
-cpunames, presented as QEMU presents it:cortex-a76is an Armv8.2 Cortex-A76 with the features QEMU gives it. Use-cpu maxfor every feature the core has, including pointer authentication and SVE. See CPU. - Boot level: EL1, as in QEMU.
-M virt,virtualization=onboots it at EL2, with the Virtualization Host Extensions. - Interrupts: a GICv2, as in QEMU.
-M virt,gic-version=3gives it a GICv3, which is faster; see Performance. - Firmware tables: a device tree, plus QEMU's ACPI tables under UEFI firmware. PSCI starts the other cores.
- Devices: QEMU's virt layout. See The virt machine.
Troubleshooting
| Symptom | Cause |
|---|---|
| No output at all | Name a 64-bit CPU. Without -cpu, the machine gets QEMU's default, the 32-bit cortex-a15, which can't run an arm64 kernel and prints nothing. |
| Still no output | Add console=ttyAMA0 to -append, and use -nographic (or read vm.serial[0]). |
| Nothing happens, and no error | The command line has nothing to boot. Give it -kernel, -bios or -pflash. As in QEMU, the machine starts anyway. |
| Out of memory, or the initramfs stops unpacking | Raise -m; the default is 128 MiB. |