I continue my activities on improving libvirt FreeBSD support and I have some good news. Recent libvirt release, 1.2.2, is the first version to include the bhyve support!
Currently it's in its early stage and doesn't support some of the features and doesn't provide good flexibility, it's just a basic stuff at this point. I'll not provide a detailed description and instead will point you to the document: Libvirt: Bhyve driver. You'll find a sample domain XML which covers all the features currently supported by the driver.
While there are lots and lots of things to be done, there are some specific ones I'm focusing on:
- Console support through nmdm(4). This is very important feature for debugging and checking what's going on in the guest.
- Domains autostart support. There's a patch already kindly provided by David Shane Holden that just needs review and testing.
- A little more flexible slot ids allocation / device configuration.
As a side note, I'll give an update what's changed since my previous blog post about qemu libvirt driver on FreeBSD. So, here's what's new:
- Proper TAP interfaces cleanup
- CPU affinity configuration support, check http://libvirt.org/formatdomain.html#elementsCPUAllocation for details
- virsh console should now work if you run it from freebsd host and connect to libvirtd on Linux
- Node status support (such as virsh nodecpustats, virsh nodememstats)
Some of these are available in already released versions, some are only in git version.