hn.today

Live-migration support in FreeBSD and bhyve coming

gyptazy.com122 points29 comments
Screenshot of Live-migration support in FreeBSD and bhyve coming

A work-in-progress proposal describes live migration for running amd64 virtual machines on FreeBSD 15.1 using bhyve. It aims to make host maintenance, load balancing, and clustered FreeBSD virtualization less disruptive, with practical relevance to the Sylve platform and BoxyBSD VPS service. The implementation combines bhyve’s experimental snapshot support with kernel-level dirty-page tracking and a migration protocol in bhyve and bhyvectl. It first copies populated guest memory, then repeatedly transfers pages changed during earlier rounds. When the remaining work meets configured limits, the guest and devices pause while the final memory changes and snapshot state are sent. The destination restores the VM and signals readiness; the source commits only afterward, allowing it to resume the guest if migration fails before that point. A warm stop-and-copy mode is also available.

Tests on two hosts report successful repeated migrations, memory-integrity checks, and disk workloads that write and verify files. A slowly changing 512 MiB guest had observed downtime of about 138-171 milliseconds, while a rapidly changing workload could fail to converge during pre-copy and require a longer pause. The prototype is limited to amd64, snapshot-capable devices, and currently excludes PCI passthrough; multi-vCPU testing also remains incomplete. Before upstream evaluation, the work needs stronger proof of dirty-page correctness, compatibility checks, secure and robust transport, clarified storage and network handoff, automated tests, and independently reviewable patches. The immediate priority is correctness and repeatability, not performance enhancements.

Read on gyptazy.com29 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Hardware

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.