Oriel — AI & technology worth noticing, every day.

FreeBSD bhyve Live Migration: Moving VMs Between Hosts

Web page · https://gyptazy.com/blog/freebsd-bhyve-live-migration-support-rfc

First seen by Oriel on .

AI summary

This WIP RFC presents a first working implementation of live migration for amd64 bhyve guests on FreeBSD 15.1, while identifying correctness, compatibility, security, and testing work needed before upstreaming.

  • Pre-copy sends guest memory and successive dirty-page sets, then pauses the guest for final dirty pages and snapshot state during stop-and-copy.
  • The destination validates VM geometry, restores memory and device state, and starts only after receiving the source’s GO commit message.
  • Repeated migrations and memory and disk workloads succeeded; slowly dirtying 512 MiB guests showed approximately 138–171 ms downtime.
  • The implementation is amd64-only, depends on experimental BHYVE_SNAPSHOT support, lacks transport authentication and encryption, and cannot migrate PCI passthrough.
  • Further work requires proving dirty-log correctness, defining compatibility and storage contracts, hardening the protocol, handling networking, and adding in-tree regression tests.

#freebsd #bhyve #live migration #virtualization

Generated by gpt-5.6-sol. Check the original for details.

Metric trends

Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained

Points

Score reported by the source.

  • Hacker News: 136, latest observation ; +123 over observed period since
  • Lobsters: 27, latest observation ; +26 over observed period since

Comments

Comment count reported by the source.

  • Hacker News: 47, latest observation ; +45 over observed period since
  • Lobsters: 0, latest observation ; 0 over observed period since

Aliases

SourceExternal IDURL
Hacker News50488835https://gyptazy.com/blog/freebsd-bhyve-live-migration-support-rfc/ Read discussion
Lobstershiayulhttps://gyptazy.com/blog/freebsd-bhyve-live-migration-support-rfc/ Read discussion