Kagex/Guides
Windows 10/11Platforms & Hypervisors · 5 min read

Windows 10 & 11 Local Firecracker MicroVMs via Non-Admin WSL2 KVM

Full parity on Windows without needing Hyper-V Pro or Docker Desktop: one PowerShell script builds Windows & WSL2 binaries, configures Firecracker/nftables inside WSL2, and registers HKCU startup.

One-shot installer
scripts\setup-windows.ps1
Control API
127.0.0.1:17070 + Bearer token
Privilege needed
Non-Admin (HKCU per-user startup)
Provision Windows 10/11 + WSL2 KVM in one script
wsl --install -d Ubuntu-24.04   # Once if no WSL2 distro exists yet
git clone https://github.com/CodewithEvilxd/kagex.git; cd kagex
powershell -NoProfile -ExecutionPolicy Bypass -File .\scripts\setup-windows.ps1

Key Engineering Points · MicroVM Kernel & Compute Isolation

All 10 key points →
  • 1Every Kagex sandbox boots a dedicated single-tenant Ubuntu 24.04 Linux kernel rather than sharing the host OS kernel.
  • 2macOS 14+ (Apple Silicon) runs natively via Apple Virtualization.framework (Code-Hex/vz/v3) with rootless ad-hoc entitlements in infra/vz.entitlements.
  • 3Linux amd64 and arm64 hosts run Firecracker v1.12.1 over /dev/kvm with per-VM Linux network namespaces and nftables packet filters.
  • 4Windows 10 (19041+) and Windows 11 (x64/arm64, Home/Pro/Enterprise) supervise Firecracker KVM inside WSL2 without requiring Hyper-V Pro or Admin privileges.
  • 5Guest base kernels are sha256-verified via infra/scripts/fetch-kernel.sh before registration into _out/images/vmlinux-<arch>.
  • 6Every microVM boots from an immutable Ubuntu 24.04 ext4 rootfs built reproducibly with Docker or native debootstrap.

Seamless Windows <-> Linux Path Translation

internal/winwsl automatically converts Windows workspace paths (including paths with spaces) into WSL2 paths, manages physical VHDX headroom checks, and forwards commands seamlessly over authenticated loopback TCP.

100% Feature Parity Across All 11 MCP Tools

Checkpoints, parallel forks, --auto-pull, bidirectional sandboxctl cp, nested dockerd inside guests, and IDE integrations work identically on Windows 10/11 Home & Pro.

Inspect this architecture live in 3D

Step through MCP ingress, Ghost Secrets, CoW blades, and run sandboxctl commands interactively in your browser.

Frequently Asked Questions

No. Kagex runs cleanly on Windows 10/11 Home, Pro, and Enterprise via WSL2 KVM and registers a per-user HKCU startup entry.