cocoon
Lightweight MicroVM engine built on Cloud Hypervisor. Features include OCI and cloud image support, instant snapshot and clone via reflink, Windows 11 guest sup
What is cocoon?
Lightweight MicroVM engine built on Cloud Hypervisor. Features include OCI and cloud image support, instant snapshot and clone via reflink, Windows 11 guest support, CNI networking with TC redirect, memory balloon, hugepages, and a Docker-like CLI. Designed for AI sandboxing, cloud desktops, and ephemeral dev environments.
Overview of cocoon
What it is
Cocoon is a lightweight MicroVM engine with dual hypervisor backends: Cloud Hypervisor (default) and Firecracker. It is designed for AI sandboxing, cloud desktops, and ephemeral dev environments. The project is licensed under MIT and is open source.
Key features
- OCI VM images: pull container-registry images with kernel + rootfs layers, content-addressed EROFS blob cache; cloud images from HTTP(S) URLs with automatic qcow2 conversion; local file/stdin import - Docker-like CLI: commands include
create,run,start,stop,list,inspect,console,exec,rm,clone,status - Snapshot & clone: capture a running VM (memory, disks, config) and clone it into new VMs with fresh network identity; clones restore memory copy-on-write by default; portable export/import between hosts - CNI networking: multi-queue virtio-net TAPs wired via TC redirect (no bridge in the data path), multi-NIC, bridge mode, NIC hot-resize - Data disks & runtime attach: extra virtio-blk disks at create/clone time; hot-plug vhost-user-fs shares and VFIO PCI devices (CH); external raw disks and NIC resize on CH or Firecracker
--pciVMs - Windows guests: UEFI + Hyper-V enlightenments via the cocoonstack CH/firmware forks - Firecracker backend:--fcfor ~125ms boots
Use cases
AI sandboxing, cloud desktops, ephemeral dev environments.
Getting started
See the repository README for installation and quick-start instructions.
License and pricing
The project is licensed under MIT and is open source (pricing type: open_source).
Based on the project's public README and repository metadata.