keelOS public beta: a bhyve-based hypervisor where the host can reboot/upgrade while VMs (incl. passthrough) pause and resume

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

istqian

New Member
Jun 9, 2016
15
16
3
Fukuoka, Japan
Hi all – long-time reader here. I've been building a hypervisor OS called keelOS
since September, and it just went into public beta. I'd like feedback from people
with real server hardware.

THE IDEA
Upgrading the host kernel on most hypervisors means shutting down or migrating
every VM. keelOS splits bhyve's vmm out of the FreeBSD kernel into a small
hypervisor (hyp.efi, ~100 KB) that UEFI loads first. It puts all CPUs into VMX
non-root and keeps guest memory and vCPU state in its own memory pool. FreeBSD
becomes a restartable "root" that only does drivers, storage, networking and
the device models (unmodified bhyve userland, talking to hyp via hypercalls).

When root reboots – including into a new kernel, without going back through
firmware POST – the VMs pause for about 25 s and continue: no guest reboot,
TCP connections stay up, clocks are corrected. That also works for VMs with a
whole NVMe drive, a SATA controller or SR-IOV VFs passed through.

TESTED HARDWARE
- Supermicro SYS-6029U-E1CR4T (X11DPU, 2x Xeon Gold 6144, 192 GB):
host restarts with 17 VMs running; whole-NVMe passthrough across host
restarts under load; SR-IOV VFs of the onboard X710; onboard SATA controller
passed through; Windows, Linux, FreeBSD and router guests
- Supermicro SYS-5019P-WTR (X11SPW, Xeon Gold 5122, 16 GB): SR-IOV on I350-T2
- Lenovo ThinkStation P340 Tiny (i5-10500T): install from USB, upgrade from
the web UI with host restart
Full list: Hardware · keelOS

PERFORMANCE VS PROXMOX VE 9.2 (same Linux VM, same server)
- CPU: 7-Zip 95%, sysbench 97%, Redis build 94% of KVM
- Memory: 102%
- Storage (virtio-blk): 4K random read QD32 102%, QD1 101%;
4K random write QD32 77%, 1M sequential 70-74% – still being tuned
- Cross-vCPU wake-ups (perf sched pipe) 74% – the hypervisor split costs here
Every number, including the bad ones: keelOS next to KVM · keelOS

ALSO IN THE BOX
Web UI / CLI / API with scoped tokens and audit log, RDP straight to each VM's
console (mstsc works, plus a Windows client with USB redirection), Windows 11
with vTPM, ZFS underneath.

LICENCE, UP FRONT
keelOS itself is not open source. It's free for personal use and free for
commercial use with permission. No telemetry, no account, no update check.
No lock-in: VM disks are plain zvols in an ordinary pool and configs are JSON,
so `zpool import` on any OpenZFS box gets everything back.

WHAT I'D LOVE FROM STH
Hardware reports, especially other Supermicro / Dell / HPE boards, AMD Epyc,
other NICs for SR-IOV, HBAs for passthrough. Also: what would you need to see
before trusting this with a homelab NAS VM?

Download: keelOS: restart the host, your VMs carry on
Issues: Issues · keelos-dev/keelOS-releases
Guide: keelOS: The public beta is here! From installing keelOS to your first Windows 10 VM

Happy to go deep on the design.
 
Last edited:
  • Like
Reactions: Skinny Skeeve