Getting started

Introduction

What Warm64 is, what it can run, and how you control it.

Warm64 is a complete 64-bit Arm computer that runs anywhere WebAssembly does: in a browser tab, in a web worker, or in Node. It boots the same unmodified operating systems a real Arm server runs, from the same kernels and disk images you'd give QEMU.

The System-on-a-Chip

The System-on-a-Chip is the whole machine: the Arm64 cores, the memory and the devices of the virt board, plus 3D graphics through Wision. Linux boots in seconds, and compute-heavy code runs at roughly half native speed.

Driven like QEMU

Warm64 speaks QEMU 11.1.1's interface, under the name WARM. If you've used qemu-system-aarch64, you already know how to use it:

  • The command line builds the machine: -M virt -cpu cortex-a76 -m 1G -kernel … -drive … -netdev …. You write the same line in a shell (warm-system-aarch64) and in JavaScript (WARM.launch()).
  • QMP, QEMU's JSON protocol, controls the running machine: query-status, stop, cont, screendump, input-send-event, migrate.
  • The human monitor takes commands such as info block, savevm and x /8xg $sp.
  • warm-img creates and converts disk images, like qemu-img.

The only names that change are the ones a program uses for itself: warm-system-aarch64, warm-img, and the monitor's (warm) prompt. If you ask for something a browser or Node can't provide, such as a hypervisor, you get the same error QEMU gives on a computer without one. QEMU's documentation covers every option, command and device, and warm-system-aarch64 lists the few differences.

import { WARM } from "@warm-virtual/warm64";
import { nodeWARMHost } from "@warm-virtual/warm64/warm-node";

const vm = await WARM.launch("-m 1G -cpu cortex-a76 -kernel vmlinuz-virt -initrd initramfs-virt -append console=ttyAMA0 -display none -S", nodeWARMHost());
vm.serial[0].onData((bytes) => process.stdout.write(bytes));
await vm.qmp("cont");

The machine

  • CPU: the CPU models QEMU offers for the virt machine, and they behave as they do in QEMU. That means 64-bit models such as cortex-a76, the 32-bit cortex-a7 and cortex-a15, and max, with every feature: Advanced SIMD, the cryptographic extension, pointer authentication, BTI, MTE, SVE and SME. Every exception level from EL0 to EL3 is there. Linux boots at EL1, or at EL2 with -M virt,virtualization=on. See CPU.
  • Board: QEMU's virt machine, every version from virt-5.2 to virt-11.1.
  • Devices: more than 350 of QEMU's devices for the virt machine. You get virtio, NVMe, SCSI and USB disks; virtio, e1000 and other network cards; the virtio GPU (2D, and 3D with Warm64's own guest driver), VGA and ramfb displays; virtio, HDA, AC97 and ES1370 sound; USB controllers, keyboards, tablets and mice; a TPM; and shared folders.
  • Cores and memory: up to 512 cores, as QEMU's virt machine allows, and more than 16 GB of guest RAM.

What it boots

Stock, unmodified images of Alpine Linux, Debian, Arch Linux ARM, FreeBSD and OpenBSD. The Linux distributions can boot from a kernel and initrd, or through U-Boot and EFI the way the BSDs and real hardware do. See Booting Linux and Booting BSD.

Where it runs

PlatformNotes
Node 24 or laterFiles, disks opened in place, and real sockets. Comes with the warm-system-aarch64 and warm-img commands.
BrowsersRuns in a page or, better, in a web worker. More than one core needs a cross-origin-isolated page. With -accel wapi, 3D graphics use WebGPU or WebGL2. Sound plays through Web Audio.

Licensing

Warm64 is free to evaluate. It's also free in production for projects whose complete source is public under a strong copyleft license, such as the GPL or AGPL, under the Conditional Free License. The free build shows a notice for three seconds when it starts. Anything else in production needs a commercial license, and prices are on the pricing page.

You can copy and use the code blocks in these docs however you like, with no conditions, under the BSD Zero Clause License. Running them still needs Warm64 itself, under the Conditional Free License or a commercial license where you need one. The grant covers the code blocks, not Warm64.

Next steps