Run Bhyve in FreeBSD jails – The view from inside the forest (2020)
neirac.byteswizards.com
neirac.byteswizards.com
might be fun to give it a try though.
Is it more secure somehow?
With this stack, you can now assign an IP addresses to a jail. No longer requiring you to maintain a rule-set via the firewall while enabling you to operate as if the jail was the bare-metal FreeBSD host.
Knowing that the bHyve VMs are isolated within their own jails you can then hand those off to client as their own hypervisor space. With that they can run their own network, appliances, virtual machines while being isolated from anyone else with confined limits without knowledge of the host they run on.
This enhances public security as at any time I can axe the jail and everything is disabled; nor do I have to worry that the rule-set created will brick anything else. The client also has shell access in case of. And if a hacker breaks in to the bHyve VM, exploits out, the hacker are isolated to jail and not the hypervisor host.
Plus with the added bonus of ZFS, I can make snapshots or backups of clients jails with ease.
There's also multiple types of security.
Running it in a jail allows you to do cool things, especially when coupled with ZFS. This is about running & managing VM's.
Imagine you wanted to 'restore from day X', or restart each day with the same config (i.e. testing Windows boxes for exploits), or you wanted solid A/B tests and MS keeps installing updates and moving your goalposts, or some funky abandoned software only works if you have the calendar set to 1993, etc....)
You can do all of these things easily with JAILS + ZFS.
But IMHO the best reason to run something in a jail is to isolate services.
On my file-server right now I have the following running in different jails:
Plex
Windows10
WindowsXP
my Git server
my SAMBA server
DHCP
DNS/PiHole/ad-blocking
IRC server
Mumble server
4 different FAMP servers for friends & family
I like to isolate each jail into the task it'll be handling. That how it stays organized in my mind.
ZFS send & receive + jails makes backups and restoring painless.
Here's a start for VNET/VIMAGE and jails:
https://iocage.readthedocs.io/en/latest/networking.html
BTW: VNET worked pretty stable but is "officially" declared stable for FB13.
https://jira.ixsystems.com/plugins/servlet/mobile#issue/NAS-...
You notice the problem was fixed, right?
Also, the more worry thing is that the project don’t appear to have any QA testing for linux guests. How is it that a bug which caused ubuntu and redhat guests to deadlock on boot got through the release cycle?
If there was any sort of QA testing for linux guests the bug would have been caught.
So my problem wasn’t necessarily the bug, but the apparent lack of QA processes.
My main issue with Bhyve is the lackluster networking performance, getting only ~1.5Gbps from VM guest to VM host (tested with iperf3) on fairly beefy machine. This really limits the usefulness of NFS shares.