3 ms·
The main drawback I saw on jails is that they are FreeBSD. The owner doesn’t mention, and I have not researched it, but can you run any Linux distribution in a
by davidcollantes 6mo ago
The main drawback I saw on jails is that they are FreeBSD. The owner doesn’t mention, and I have not researched it, but can you run any Linux distribution in a FreeBSD jail?
- assimpleaspossi 6mo agoI believe you are asking about bhyve for running Linux on FreeBSD. Jails are for software isolation.
- dgl 6mo agoFreeBSD has supported Linux emulation for a long time (https://docs.freebsd.org/en/books/handbook/linuxemu/ https://docs.freebsd.org/en/books/handbook/linuxemu/). The emulation is at the syscall level but enough to run most apps.
- deleted 6mo ago[deleted]
- ggm 6mo agoThere is a significant investment in a linux compatible system call layer, and a linux compatible runtime link library suite. It isn't a complete answer, but the position as I understand it (haven't had to care for a long time) is that a LOT of linux binaries can work.
- ssl-3 6mo agoIf I understand the question correctly: You want to run a Linux distribution like (say) Debian in a FreeBSD jail? With the Linux kernel and all?
- bandrami 6mo ago> can you run any Linux distribution in a FreeBSD jail -ish. There's a compatibility layer that works at the libc level but not the syscall level. In practice anything open source that works in emulation almost certainly has a FreeBSD version and anything proprietary that actually needs Linux will work better in a VM.
- olavgg 6mo agoI would not worry about running a distro. Most things are similar, there are some minor differences between the GNU applications and the FreeBSD alternatives. But for most people there is nothing to worry about. Most applications runs fine on BSD. Bind, PowerDNS, Java Applications, PostgreSQL, Python, rsync and many more. Getting PyTorch to work with Nvidia and Cuda is most likely another story. My main culprit with FreeBSD is that upgrading the kernel is not a simple dnf update command. But its still easier than upgrading RHEL from 9 to 10.
- sunshine-o 6mo agoYes what is confusing is it might be simpler than one might think. To run a Linux distribution in jail you need 2 things: - Enable "Linux Binary Compatibility" - copy your Linux distribution base filesystem in the chroot or just pick on that is packaged in FreeBSD and do 'pkg install' (Rocky and Ubuntu if I remember correctly) But you might not even need to "Run a Linux distribution". Just enabling "Linux Binary Compatibility" and executing the binary often works fine if it doesn't depends on a bunch of libraries. It is really that simple.
- volkadav 6mo agoIf you mean an isolated linux instance _including a linux kernel_, that would be provided by a virtual machine running under the bhyve hypervisor on freebsd (https://docs.freebsd.org/en/books/handbook/virtualization/#virtualization-host-bhyve https://docs.freebsd.org/en/books/handbook/virtualization/#v...). You probably could frankenkludge something like linux-userland-on-a-frebsd-kernel using jails but that certainly seems like the path less traveled, haha. :)