hvpatch: kernel live patching for Proxmox VE
Hi all,
I'm Christopher from Prepaid-Host, a hoster running Proxmox VE 9 for customer VMs. We built an open-source tool that applies kernel security fixes to running PVE hosts without a reboot, and we'd like your feedback before taking it further.
GitHub: https://github.com/prepaid-host/hvpatch · GPL-2.0 · early release
Why
- Each one means drain, reboot, refill. Passthrough VMs and single nodes get real downtime.
- Until the reboot, hosts with customer VMs stay exposed to guest-to-host bugs.
- KernelCare doesn't support PVE 9, and Proxmox will "re-evaluate" livepatching, without promises.
How it works
- Build: the kernel's own
klp-build(mainline since 6.19), against the exact Proxmox source, config and toolchain. Any mismatch stops the build. - Checks: every module is verified against the shipped kernel and booted in QEMU before it is signed.
- Catalog: one reviewed entry per CVE, saying clearly "fixed live" or "reboot required".
- Agent: a small Rust binary (.deb). It verifies signature, kernel build-id and hash, loads the patch, reverses instead of forcing when something goes wrong, and reloads it after a reboot before the guests start.
- No central server: a static HTTPS repo, nodes pull, your Ansible decides the order. Bring your own keys.
Tested so far
Nested PVE 9.2 on a real host, kernels 7.3.4-1 and 7.3.5-1:| Test | Result |
|---|---|
| 3 real CVE fixes (mm/gup.c, overlayfs) as livepatch | Exploit blocked, works again after revert |
| 20 apply/revert cycles, guests under load (memory with checksums, 15 Gbit/s) | No errors, no kernel warnings, ~1.6 s per transition |
| Transition blocked by a sleeping task | Reversed after timeout, no force |
| Secure Boot with MOK, legacy BIOS, reload after reboot | OK |
| Module rebuild | Bit-identical |
Not yet: bare metal and a multi-node rollout. That's next.
Limits
- A bridge to your next maintenance window, not a replacement for kernel updates.
- Opt-in 7.3 kernels only for now. The 7.0 tree lacks the objtool support klp-build needs.
- Data structure changes, ZFS and QEMU fixes still need a reboot;
hvpatch statustells you which. - No prebuilt modules yet: you build your own (~2 h and ~60 GB per kernel).
- Independent project, not affiliated with Proxmox.
Try it (test hosts only)
Bash:
wget https://github.com/prepaid-host/hvpatch/releases/latest/download/hvpatch_amd64.deb
apt install ./hvpatch_amd64.deb
hvpatch setup --repository https://your.repo --key manifest.pub
hvpatch check
Questions to you
- Is the opt-in 7.3 kernel fine for you, or is 7.0 support a must?
- Own builds with your own keys, or signed modules built by the project?
- Anyone up for reviewing catalog entries? Each needs two reviewers.
Thanks for reading, happy to answer questions!
Christopher
Last edited: