← Fri, Nov 13 digest

Live-migration support in FreeBSD and bhyve coming

read article ↗ hn thread ↗

FreeBSD's bhyve hypervisor has gained a working proof-of-concept live-migration implementation for amd64 guests, achieving sub-200ms downtime in initial tests.

read it Systems engineers working with FreeBSD or hypervisors will find the hypervisor architecture details and upstreaming hurdles valuable.

summary

A FreeBSD developer has published a work-in-progress RFC demonstrating live migration for bhyve guests on FreeBSD 15.1. The implementation uses dirty-page tracking in the vmm kernel module, a pre-copy memory transfer phase over TCP, and a stop-and-copy mechanism, achieving 138 to 171 ms downtime for a 512 MiB guest. This milestone addresses a major blocker for clustered FreeBSD virtualization platforms like Sylve and BoxyBSD. However, significant hardening is required around transport security, dirty-log correctness, and compatibility contracts before upstream merging.

key points

  1. The implementation tracks dirty pages in the vmm kernel module, using pre-copy over TCP followed by a brief stop-and-copy phase.
  2. Observed downtime for a slowly dirtying 512 MiB guest ranges between 138 and 171 milliseconds in a two-host test environment.
  3. The RFC details critical upstreaming blockers, including the lack of transport encryption, storage/network handoff, and concurrency hardening for dirty-log tracking.

who should read it

FreeBSD system administrators, hypervisor developers, and engineers interested in alternative virtualization stacks.

discussion warm

consensus

Commenters view live migration as a crucial missing piece that unlocks production clustering for tools like Sylve and alternative container hosting setups.

pushback

An Oxide engineer notes that illumos took a different path for bhyve device emulation by soft-forking the VMM component due to design disagreements with FreeBSD's approach.

best comment by pmooney ↗

Hi, Original propolis architect here, and primary engineer for much of the effort porting bhyve to illumos.

Quite a bit was changed between "illumos bhyve" and FreeBSD upstream. We in illumos decided to take a slightly different approach in how we approached the machinery for saving/restoring the state of devices emulated in-kernel, which is a necessary part of doing such a live migration. FreeBSD was first to add that functionality, but we (I) felt it exposed too much in the way of implementation details from that device emulation, rather than a more abstract model of the emulated hardware. …

The original Propolis architect explains why illumos forked the bhyve VMM kernel component over hardware abstraction differences.

Generated by an LLM from the article and thread. Check the sources before relying on it.