rcarmo/pve-microvm
关于
适用于 Proxmox VE 的 Firecracker 类微型虚拟机——采用 KVM 隔离,启动时间低于 200 毫秒。
安全与隐私可以做什么
- 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
实测星标增长
- 24小时
- +4
- 7天
- +7
- 15天
- +11
- 1个月
- +19
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文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-serverinternals 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
- Installation — install, verify, uninstall
- Quick Start — templates, cloning, basic usage
- Guest OS — all supported distributions and specialist OS
- Networking & Storage — virtiofs, 9p, vsock, SSH agent
- Web UI — Create µVM dialog, console, icons, panel hiding
- Configuration — supported/unsupported options
- Docker — kernel requirements, AppArmor/SELinux selection, verification
- Architecture — how it works, QEMU command line
- Firecracker Compatibility — importing rootfs images
- High Availability — migration, HA relocate
- Test Matrix — distros, features, hardware
- Tested Hardware Profiles — boundary and reference profiles
- Known Issues — workarounds and fixes
- Limitations — what doesn't work (yet)
- Troubleshooting — common problems
- FAQ — frequently asked questions
- Development — repo structure, building
- Changelog — full feature list and release history
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
探索相关项目
加载中…