One of the most interesting aspects of FreeBSD to me was the virtualization features. There are two main ones: jails and bhyve. I haven’t looked at bhyve in detail yet, but jails are very interesting.

Jails are akin to LXD/LXD as they are both ways to improve on chroot. They are both more about system virtualization rather than the application virtualization approach of Docker.

On a first comparison, creating a jail seems more involved than creating a container on LXD. For LXD/LXC, you can just do lxc launch ubuntu:24:04 test after you install and init LXD.

A jail seems a bit more involved with a few more knobs and dials. A simple introduction on creating a jail is here.

Particularly appealing is the powerful networking setup that can be done with jails and the integration with ZFS also seems pretty cool. I’m going to do some experimentation with this to create a small network inside my FreeBSD server.

bsd  lxd