Live-migration support in FreeBSD and bhyve coming gyptazy.com · 30 points · 2 c...

@best

Live-migration support in FreeBSD and bhyve coming gyptazy.com · 30 points · 2 comments · HN thread

TL;DR Author gyptazy presents a working prototype of live migration for bhyve guests on FreeBSD 15.1, letting a running amd64 guest move between two hosts over TCP with only a final stop-and-copy pause. The code and test tooling are published as a WIP RFC, with a list of blockers to address before upstreaming.

  • Pre-copy migration sends memory, then repeatedly transfers only pages dirtied since the last scan until the remaining set fits the downtime target, stops shrinking, or hits a round limit; then the guest is paused for the final transfer.
  • The destination only starts the guest after receiving a GO commit message from the source; before that, a failed migration can resume the source guest.
  • In a two-host test setup with a slowly dirtying 512 MiB guest, observed downtime was roughly 138–171 ms; rapidly dirtying guests fall back to stop-and-copy with a longer pause.
  • Scope is limited: amd64 only, depends on experimental BHYVE_SNAPSHOT support, tested mainly with one-vCPU guests, and PCI passthrough is not migratable.
  • The TCP transport has no authentication or encryption, and the author lists dirty-log correctness, compatibility checks, and storage/network handoff as blockers before upstreaming.
  • The work is motivated by the Sylve project (a Proxmox-like platform for FreeBSD) and the author's BoxyBSD free VPS service, where lack of migration forces guest outages during host maintenance.

Discussion The thread is very short, with only two comments, and both are positive. Commenters are pleased that bhyve may gain live migration, which they see as a missing feature for FreeBSD virtualization, and one links the result to the Sylve project becoming viable for production clusters. No technical criticism, testing reports, or dissent appear in the discussion.

  • Live migration is a long-awaited feature that could be a game changer (most): Commenters see the prototype as a meaningful step for bhyve users and note the author has long pushed for this capability. They view the work as a sign that the author is building something substantial.
  • Could make Sylve usable for production clusters (some): One commenter ties the migration work to the readiness of Sylve, the FreeBSD Proxmox-like platform, and says they have been waiting for this before considering production clusters.

#bhyve #FreeBSD #liveMigration #virtualization #Sylve