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.
See the codeLightweight MicroVM engine with dual hypervisor backends: Cloud Hypervisor (default) and Firecracker.
Documentation: cocoonstack.github.io/cocoon (source in docs/).
create, run, start, stop, list, inspect, console, exec, rm, clone, status--pci VMs; a private copy of a snapshot's COW disk on CH--fc for ~125ms boots and <5 MiB per-VM overhead (OCI images only)cocoon daemon optionally adopts running VMs to converge crashes as they happen; modular lock-safe GC with snapshot LRU evictioncocoon meta convert)# Install the binary (Linux amd64; arm64: cocoon_0.7.2_Linux_arm64.tar.gz)
curl -fsSL -o cocoon.tar.gz https://github.com/cocoonstack/cocoon/releases/download/v0.7.2/cocoon_0.7.2_Linux_x86_64.tar.gz
tar -xzf cocoon.tar.gz && install -m 0755 cocoon /usr/local/bin/
# One-time environment setup (installs CH, firmware, CNI plugins)
curl -fsSL -o cocoon-check https://raw.githubusercontent.com/cocoonstack/cocoon/refs/tags/v0.7.2/doctor/check.sh
install -m 0755 cocoon-check /usr/local/bin/ && sudo cocoon-check --upgrade
# Pull an image and run a VM
cocoon image pull ghcr.io/cocoonstack/cocoon/ubuntu:24.04
cocoon vm run --name my-vm --cpu 2 --memory 1G ghcr.io/cocoonstack/cocoon/ubuntu:24.04
# Interact
cocoon vm console my-vm
cocoon vm exec my-vm -- uname -a
# Snapshot and clone
cocoon snapshot save --name base my-vm
cocoon vm clone base --name fresh
# Clean up
cocoon vm rm --force my-vm fresh
make build # Build cocoon binary (CGO_ENABLED=0)
make test # Run tests with race detector and coverage
make lint # Run golangci-lint (GOOS=linux + darwin)
make fmt # Format code with gofumpt + goimports
make all # Full pipeline: deps + fmt + lint + test + build
This project is licensed under the MIT License. See LICENSE.
4,629 followers · starred Apr 2026
181 followers · starred Jul 2026
1,435 followers · starred Jul 2026
1,683 followers · starred Oct 2026
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.
See the codeLightweight MicroVM engine with dual hypervisor backends: Cloud Hypervisor (default) and Firecracker.
Documentation: cocoonstack.github.io/cocoon (source in docs/).
create, run, start, stop, list, inspect, console, exec, rm, clone, status--pci VMs; a private copy of a snapshot's COW disk on CH--fc for ~125ms boots and <5 MiB per-VM overhead (OCI images only)cocoon daemon optionally adopts running VMs to converge crashes as they happen; modular lock-safe GC with snapshot LRU evictioncocoon meta convert)# Install the binary (Linux amd64; arm64: cocoon_0.7.2_Linux_arm64.tar.gz)
curl -fsSL -o cocoon.tar.gz https://github.com/cocoonstack/cocoon/releases/download/v0.7.2/cocoon_0.7.2_Linux_x86_64.tar.gz
tar -xzf cocoon.tar.gz && install -m 0755 cocoon /usr/local/bin/
# One-time environment setup (installs CH, firmware, CNI plugins)
curl -fsSL -o cocoon-check https://raw.githubusercontent.com/cocoonstack/cocoon/refs/tags/v0.7.2/doctor/check.sh
install -m 0755 cocoon-check /usr/local/bin/ && sudo cocoon-check --upgrade
# Pull an image and run a VM
cocoon image pull ghcr.io/cocoonstack/cocoon/ubuntu:24.04
cocoon vm run --name my-vm --cpu 2 --memory 1G ghcr.io/cocoonstack/cocoon/ubuntu:24.04
# Interact
cocoon vm console my-vm
cocoon vm exec my-vm -- uname -a
# Snapshot and clone
cocoon snapshot save --name base my-vm
cocoon vm clone base --name fresh
# Clean up
cocoon vm rm --force my-vm fresh
make build # Build cocoon binary (CGO_ENABLED=0)
make test # Run tests with race detector and coverage
make lint # Run golangci-lint (GOOS=linux + darwin)
make fmt # Format code with gofumpt + goimports
make all # Full pipeline: deps + fmt + lint + test + build
This project is licensed under the MIT License. See LICENSE.
4,629 followers · starred Apr 2026
181 followers · starred Jul 2026
1,435 followers · starred Jul 2026
1,683 followers · starred Oct 2026