Skip to content
Projetos

Sobre

Firecracker-like microVMs for Proxmox VE — KVM isolation, under 200 ms boot.

Segurança e privacidade

Como estes números são medidos

O que você pode fazer

  • 50 features shipped — templates, cloning, networking, HA, web UI, backups
  • 21 guest OS — 13 Linux distros + SmolBSD, OpenWrt, OPNsense, 9Front, OSv, gokrazy, Firecracker
  • Measured boot profiles — scoped results and limits in the test matrix
  • Create µVM button in PVE web UI with OCI image picker

Crescimento medido de estrelas

em 24 h
+4
em 7 dias
+7
em 15 dias
+11
em 1 mês
+19

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original

pve-microvm

pve-microvm

A Debian package that adds QEMU microvm machine type support to Proxmox VE. Runs OCI container images, Firecracker rootfs images, unikernels, and alternative OS as lightweight hardware-isolated VMs.

⚠️ Highly experimental. This project patches qemu-server internals and has not been tested in production. Use at your own risk. The patches are removals and upgrades depend on verified patch manifests; rollback fails closed if upstream files or backups have changed.

📝 Blog post with some background · ❓ FAQ


Why

We needed something between LXC containers and full QEMU VMs for running coding agents and other semi-trusted workloads.

LXC microvm Standard VM
Isolation Namespace (shared kernel) KVM (own kernel) KVM (own kernel)
Boot time ~50 ms < 300 ms 2–10 s
Overhead Minimal Minimal Moderate
Attack surface Broad (host kernel) Minimal (virtio-pcie) Broad (emulated PC)
Guest runtime isolation Shared host kernel KVM VM boundary KVM VM boundary

Hardware-isolated VMs with container-like speed, managed through the same Proxmox tools you already use. No new runtime — QEMU's microvm machine type is already on every PVE node.


Highlights

  • 50 features shipped — templates, cloning, networking, HA, web UI, backups
  • 21 guest OS — 13 Linux distros + SmolBSD, OpenWrt, OPNsense, 9Front, OSv, gokrazy, Firecracker
  • Measured boot profiles — scoped results and limits in the test matrix
  • Create µVM button in PVE web UI with OCI image picker
  • Tested storage types — LVM-thin, ZFS, local directory, SMB/CIFS and Ceph/RBD
  • HA + migration — offline migration and ha-manager relocate on shared storage
  • Tested hardware profiles — Atom x5-Z8350 with 2 GB and Core i7-12700 reference hardware

Quick start

# Install (always fetches the latest release)
curl -sLO $(curl -s https://api.github.com/repos/rcarmo/pve-microvm/releases/latest | grep browser_download_url | grep '.deb' | cut -d'"' -f4)
dpkg -i pve-microvm_*.deb

# Create a template from a base image you trust to run as host root
pve-microvm-template --trust-image --image debian:trixie-slim

# Clone and boot
qm clone 9000 901 --name my-sandbox --full
qm start 901
qm terminal 901

Or use the Create µVM button in the PVE web UI. The standard and full OCI template profiles run image code in a host-root chroot before KVM starts. Only opt in for a trusted base image. The minimal profile skips chroot package setup; it still unpacks the image on the host. There is no isolated untrusted-image build mode.


Supported guests

Category Images
Linux (apt) Debian, Ubuntu
Linux (apk) Alpine
Linux (dnf/tdnf) Fedora, Rocky, Alma, Amazon, Oracle, UBI, Photon, Azure Linux
Router/Firewall OpenWrt, OPNsense
BSD SmolBSD (NetBSD, 31ms boot)
Plan 9 9Front
Unikernel OSv, gokrazy
Compatible Any Firecracker rootfs (ext4 import)

What's included

Component Description
pve-microvm-template Create PVE templates from OCI images or specialist OS
pve-oci-import Convert supported OCI images to a bootable microvm disk
pve-microvm-share Share host directories via virtiofs
pve-microvm-9p Share host directories via 9p (no daemon)
pve-microvm-ssh-agent Forward SSH agent via vsock
pve-microvm-run Ephemeral microvms (run and destroy)
pve-microvm-bench Boot time and overhead benchmarking
Web UI Create µVM dialog, ⚡ icon, xterm.js console, panel hiding
Kernel Pre-built 6.12.113 with PCIe virtio + vsock + virtiofs

Tested on

Tests use a low-power boundary profile with an Intel Atom x5-Z8350 and 2 GB RAM, plus an Intel Core i7-12700 reference profile. Storage validation covers LVM-thin, ZFS, local directory, SMB/CIFS and Ceph/RBD at the scopes recorded in the test matrix. See Tested Hardware Profiles.


Documentation


Roadmap

Feature Priority
Network off by default Medium
Egress allow-list (nftables) Medium
Memory management (free-page-reporting, deflate-on-oom, auto-ballooning, virtio-mem) Done v0.3.12
Declarative VM config (TOML) Low
GPU passthrough Low
AArch64 guest support Low
Upstream RFC for pve-devel Low

License

Apache-2.0

Explore projetos relacionados

Carregando…