4 ms·
Most of those are supported by "containers", which are after all just a chroot and a process tree with restricted visibility into certain kernel objects. Assign
by jmillikin 3y ago
Most of those are supported by "containers", which are after all just a chroot and a process tree with restricted visibility into certain kernel objects. Assigning individual NICs or running a browser with extra isolation is one of the classic Linux namespace tutorials.
> You can setup Linux in a jail.
I don't see how this can be possible. Could you explain more how to boot a Linux kernel within a FreeBSD jail?
edit: I'm not talking about running binaries compiled for Linux under FreeBSD. The parent said it's possible to set up Linux within a jail, so I want to see instructions to boot an actual Linux kernel as a FreeBSD process.
- rwaksmunski 3y agoYou use FreeBSD kernel and Linux userland. FreeBSD can emulate Linux system calls.
- School-Cotton 3y agoThere is no such thing as “Linux userland”. Obviously you can port most GNU utilities and other things that are typically run on Linux on FreeBSD but that’s a far cry from “running Linux”.
- deleted 3y ago[deleted]
- NexRebular 3y agoUsing the linuxulator. https://wiki.freebsd.org/LinuxJails https://wiki.freebsd.org/LinuxJails
- throw0101c 3y ago> Assigning individual NICs or running a browser with extra isolation is one of the classic Linux namespace tutorials. With FreeBSD you can set up a standalone virtualized network stack: * https://klarasystems.com/articles/virtualize-your-network-on-freebsd-with-vnet/ https://klarasystems.com/articles/virtualize-your-network-on... * https://man.freebsd.org/cgi/man.cgi?vnet https://man.freebsd.org/cgi/man.cgi?vnet * https://wiki.freebsd.org/Jails/VNET https://wiki.freebsd.org/Jails/VNET
- the8472 3y agoI read the quote you're replying to as "you can also do this under linux", i.e. it didn't dispute that freebsd jails can do it. But it's not a distinguishing feature of jails.
- chungy 3y agoYou could maybe build and run User-Mode Linux on FreeBSD, and run that in a jail. That's pretty close to your own interpretation of "Linux kernel in a jail" But to be real: that's obviously not what was meant. If someone wants to install and run Ubuntu inside a FreeBSD jail, it is well possible to do that. Nobody really cares if it's running kernel.org code, just that the binaries are running as expected.