bhyve Live Migration on FreeBSD 15.1: A Work-in-Progress RFC
This project presents a first working state of live migration for bhyve guests on FreeBSD 15.1. A running amd64 guest can move between two hosts over TCP and keeps running; it is paused only for the final stop-and-copy[1] phase. The work builds on bhyve's experimental snapshot support and adds dirty-page tracking[2] in the vmm kernel module, along with a migration protocol in bhyve and bhyvectl.
The source starts with a pre-copy[3] phase, which sends guest memory and then repeatedly sends only the pages changed since the previous scan. When the remaining dirty set fits the downtime target, stops shrinking, or reaches the round limit, the guest and its devices are paused and the final pages and state are sent. The destination restores the state and reports that it is ready; only then does the source send GO, the commit point, so a failed migration before that can resume the source guest.
In a two-host test environment, a slowly dirtying 512 MiB guest showed downtime of roughly 138–171 ms. The code is published as a WIP RFC and is not a production support promise. The implementation is amd64-only, depends on the experimental BHYVE_SNAPSHOT support, and PCI passthrough is not migratable yet. The TCP transport has no authentication or encryption, and multi-vCPU testing has so far mainly used a one-vCPU guest.
Read the original gyptazy.comDiscussion
Discussion
Commenters mostly welcome the work: one says it could make Sylve usable for production clusters, and another calls it a possible game changer for bhyve users. Others pointed to Propolis from Oxide as related live-migration work, asked whether FreeBSD can offer high availability for jails, and raised Docker support, which one commenter cited as the reason for moving to Ubuntu Server.
Links from the post and discussion
Sources
-
gyptazy.com
FreeBSD bhyve Live Migration: Moving VMs Between Hosts



