3 ms·
I am a fan of FreeBSD, and use it for a few tasks.. But I'm not at all clear why someone would want to do this? Does anyone have any idea what this gives you ov
by cyberpunk 6y ago
I am a fan of FreeBSD, and use it for a few tasks.. But I'm not at all clear why someone would want to do this? Does anyone have any idea what this gives you over just running a Bhyve VM outside of a jail?
Is it more secure somehow?
- doublerabbit 6y agoBefore FreeBSD 12, you couldn't expose the bhyve components in a jail so you were forced to use the host as the bHyve hypervisor and/or jails. The new feature of the latest FreeBSD was a network stack within an jail. 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.
- UI_at_80x24 6y agoIt can be MUCH more secure to run it in a jail; but IMHO that's not the point, but it could be. 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.
- Datagenerator 6y agoInterested. Now using LXD for the same setup more or less, but that needs the help of the host firewall with NAT forwards. Can you share or point to tutorials on having full network stacks in each jailed VM, that would be great.
- nix23 6y agoI recommend using iocage for handling jails. Here's a start for VNET/VIMAGE and jails: https://iocage.readthedocs.io/en/latest/networking.html https://iocage.readthedocs.io/en/latest/networking.html BTW: VNET worked pretty stable but is "officially" declared stable for FB13.