The --fc backend: trade features for boot speed and density.
# Run with Firecracker (--fc only needed for create/run/debug)
cocoon vm run --fc --name fast-vm ghcr.io/cocoonstack/cocoon/ubuntu:24.04
# Other commands auto-detect the backend — no --fc needed
cocoon vm list # shows both CH and FC VMs
cocoon vm console fast-vm
cocoon vm stop fast-vm
# Clone infers backend from the snapshot
cocoon snapshot save fast-vm --name my-snap
cocoon vm clone my-snap --name clone-vm
| Feature | Cloud Hypervisor | Firecracker |
|---|---|---|
| OCI images (direct boot) | Y | Y |
| Cloud images (UEFI boot) | Y | N |
| Windows guests | Y | N |
| Snapshot / Clone / Restore | Y | Y |
| Multi-queue networking | Y | N |
| Memory balloon | Y | Y |
Runtime balloon target (vm balloon) |
Y | Y (MiB granularity, no actual) |
| qcow2 storage | Y | N |
| Interactive console | Y | Y |
| HugePages | Y (opt-in --hugepages) |
N (would break snapshot restore) |
| Disk hot-plug and NIC resize | Y | Only with --pci |
Vhost-user-fs, VFIO and snapshot-disk (--from-snapshot) attach |
Y | N |
Live migration (vm migrate) |
Y | N |
| Boot time (indicative, not measured here) | ~200-500ms | ~125ms |
| Memory overhead (indicative, not measured here) | ~10-20 MiB/VM | <5 MiB/VM |
--fc is mutually exclusive with --windows, --shared-memory, --hugepages, --mergeable and --no-watchdog, and rejects cloudimg (UEFI boot) images--pci (fixed for the VM lifetime, inherited by snapshots) disk attach/detach, NIC resize and clone-time --data-disk/--nics are refused--pci VM gets 8 PCIe root ports, and a Firecracker build that places hot-plugged devices behind root ports refuses a 9th device. The guest kernel needs PCIe hot-plug (CONFIG_HOTPLUG_PCI_PCIE), or every detach waits 30s and fails. A snapshot keeps the root ports of its VM, so clones of a snapshot made before cocoon set root ports cannot hot-plug on such a build; create the base againPUT /drives/{id} as pre-boot only and omits the DELETE verbs, while the router implements post-boot PUT and DELETE for drives and network interfaces; --pci hot-plug relies on the router, not the specAsync engine with no opt-out, so a restrictive seccomp profile (Docker’s default) breaks them; --no-direct-io is ignoredvm stop waits out stop_timeout_seconds before escalating/dev/vdX)root_dir/run_dir and OCI image; see known issuesconsole.sockOCI images must include a resolve_disk() init script that supports device paths (e.g., /dev/vda) in addition to virtio serial names. Every current os-image/ family supports both forms.