Skip to content

About

Firecracker microVMs meet SwarmKit orchestration

Resources

Code of conduct

Contributing

Security policy

Stars

6 stars

Watchers

0 watching

Forks

Latest commit

 

History

548 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

SwarmCracker

Firecracker microVMs for SwarmKit orchestration and agent sandboxes

Go Report Card Coverage License Release

Status: actively developed (pre-1.0, v0.13.0).

SwarmCracker is under active development. Flags, configuration keys, on-disk formats and internal APIs may change between minor releases, and some rough edges remain. It is not yet recommended for production workloads that need a stability guarantee — run it in a lab, kick the tyres, and open an issue (or a pull request) with what you find. The roadmap epic #40 tracks what is next, and every release is tagged from main.


Imagine running containers, but with actual VMs instead. That's SwarmCracker — SwarmKit tasks become Firecracker microVMs, each with its own kernel and hardware-level isolation, connected across nodes over VXLAN and replaced in place by rolling updates. A second path is taking shape beside it: ephemeral agent sandboxes — microVMs that can be checkpointed and restored, launched under the jailer (chroot, dropped uid, network namespace), each with its own disk and snapshot, and reported ready only once the guest agent actually answers hello rather than once the load returns. The sandbox control plane that would drive all that is still being built; what is on main today is its foundation.

Why You'll Like It

Feature What it means for you
Per-VM kernel Real isolation — not just namespace walls
SwarmKit compatible Everything you know from Docker Swarm just works
Hardware virtualization KVM gives you actual VM security
Fast boot MicroVMs boot in ~100ms
Cross-node networking VXLAN connects your VMs across the whole cluster
Rolling updates Deploy without taking anything offline

Architecture

SwarmCracker Architecture

Piece What it does
Manager Runs SwarmKit, schedules tasks, manages cluster state
Worker Launches Firecracker VMs via swarmd-firecracker
Consul VXLAN peer discovery across nodes
swarm-br0 Local bridge for VM networking
VXLAN (ID 100) Cross-node overlay on UDP 4789
MicroVMs Workloads with per-VM kernel isolation

Quick Start

Prerequisites

  • Linux with KVM (ls /dev/kvm)
  • root access (bridge + Firecracker setup)

One-Line Install

The installer downloads the latest release binary and verifies its checksum — nothing else. Node setup goes through swarmcracker setup (ADR-005 blessed path):

# 1. Install the binary (download + checksum verify)
curl -fsSL https://raw.githubusercontent.com/restuhaqza/SwarmCracker/main/install.sh | sudo bash

# 2. Verify prerequisites (KVM, kernel modules, tools)
sudo swarmcracker setup check

# 3. Install Firecracker, jailer, kernel, and rootfs
sudo swarmcracker setup install --download-kernel --download-rootfs

# 4. Create the VM bridge + enable NAT
sudo swarmcracker setup network

# 5. Generate the config
sudo swarmcracker setup config --non-interactive

Initialize a Cluster

# On the manager node
sudo swarmcracker cluster init --advertise-addr 192.168.1.10:4242

# Get join token
sudo swarmcracker cluster token worker

# On each worker
sudo swarmcracker cluster join 192.168.1.10:4242 --token SWMTKN-1-xxx

Deploy Your First Service

# Deploy nginx across the cluster
swarmcracker service create --name web --image nginx:alpine --replicas 3

# Verify
swarmcracker service ls
swarmcracker service ps web

Building From Source

git clone https://github.com/restuhaqza/swarmcracker.git
cd swarmcracker
make all

Documentation

🌐 Landing page: swarmcracker.com

📖 Full docs: docs.swarmcracker.com

Guide What's inside
Getting Started Setup walkthrough, step by step
Architecture Component overview and data flow
CLI Reference Every command, every flag
Configuration All config keys and defaults
Networking VXLAN, bridges, how VMs communicate
Operations Monitoring, backup, troubleshooting
Security Hardening, jailer, seccomp

The docs site is built with Astro Starlight; its source lives in docs-site/ and is deployed to Cloudflare Pages by .github/workflows/docs.yml.

Engineering Checks

Quality gates on main today — a snapshot of test hygiene and feature completeness, not a production-stability guarantee (see the status note at the top):

  • ✅ 87.6% test coverage (19 packages)
  • ✅ E2E test suite in test/e2e (41 top-level Go tests)
  • ✅ All 47 security/code review items addressed
  • ✅ Go 1.26, 11 linters, go vet clean
  • ✅ Hardened builds (PIE, stripped symbols, trimmed paths)

Security

SwarmCracker takes security seriously. Every workload runs in a hardware-isolated Firecracker microVM with:

  • KVM isolation — separate kernel per VM
  • Jailer sandbox — chroot + UID/GID drop + network namespace
  • Seccomp filtering — Firecracker's built-in seccomp-bpf policy protects the VMM process (no guest seccomp config)
  • Path traversal prevention — validated task IDs, secrets, mounts
  • Command injection prevention — PID-file signaling, no shell interpolation
  • Hardened builds — PIE binaries with stripped symbols

Read our Security Policy and Security Guide.

Releases

curl -LO https://github.com/restuhaqza/SwarmCracker/releases/download/v0.13.0/swarmcracker-v0.13.0-linux-amd64.tar.gz
tar xzf swarmcracker-v0.13.0-linux-amd64.tar.gz

All releases

Contributing

Check out CONTRIBUTING.md — we'd love your help!

License

Apache 2.0

About

Firecracker microVMs meet SwarmKit orchestration

Resources

Code of conduct

Contributing

Security policy

Stars

6 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages