10 ms·
Ubuntu Linux Jail on FreeBSD 12.2-Release
- drewg123 6y agoIn order for the linux compat to be generally useful, we really need to get electron apps working, which means getting chrome itself working. There are some commercial software packages that run which are useful in more limited scopes. For example, I run a linux PVR server (SageTV), and Intel's Vtune GUI. But getting chrome & electron working would enable tons of commercial linux apps.
- dddddaviddddd 6y agoRunning Linux Chrome in a FreeBSD Linux jail already works [1]. But, Chrome is already ported to FreeBSD [2]. Not sure why you'd need Linux Chrome specifically. In fact, there's already a port of Electron [3]. [1] https://forums.freebsd.org/threads/linuxulator-how-to-run-google-chrome-linux-binary-on-freebsd.77559/ https://forums.freebsd.org/threads/linuxulator-how-to-run-go... [2] https://www.freshports.org/www/chromium https://www.freshports.org/www/chromium [3] https://www.freshports.org/devel/electron5/ https://www.freshports.org/devel/electron5/
- drewg123 6y agoIts marked as broken in the LinuxApps page linked to from the article (https://wiki.freebsd.org/LinuxApps https://wiki.freebsd.org/LinuxApps). And its been broken every time I've tried it on -current. You need Linux electron working in order to be able to run things like Slack's Linux desktop app, and other electron apps which are compiled for Linux. And you need the Linux binary chrome from Google in order for DRM to work.
- codetrotter 6y agoWorth to make note of the fact that the forum post that was linked to by the parent comment to yours, about being able to run Linux Chrome on FreeBSD, was actually posted today. So it might be promising? But at the same time, the post also states that it relies on a few workarounds that are likely to interfere with other things on the system. So probably one should not get their hopes up too high just yet either.
- loeg 6y agoHave you tried it with --no-sandbox --no-zygote --test-type yet? I haven't, yet. Admittedly, I'd much rather run Chrome in its sandbox, but if this is a good starting point, great.
- hs86 6y agoIt does not look good for the Electron port [1]. These ports will be removed soon due to their Python 2 dependency, and the available versions are not supported anymore [2]. [1] https://www.freshports.org/search.php?query=electron&search=go&num=10&stype=name&method=match&deleted=excludedeleted&start=1&casesensitivity=caseinsensitive https://www.freshports.org/search.php?query=electron&search=... [2] https://www.electronjs.org/docs/tutorial/support https://www.electronjs.org/docs/tutorial/support
- loeg 6y agoAh, I think the key part from [1] is: "--no-sandbox --no-zygote", and possibly "--test-type". Cool, thanks.
- vermaden 6y agoYou can NOT use Netflix/Spotify/... on Chrome on FreeBSD. You CAN use Netflix/Spotify/... on Chrome under Ubuntu Linux Jail on FreeBSD. Reason: Widevine DRM
- dddddaviddddd 6y agoI'm hoping this will eventually allow running Linux video conferencing software, such as Zoom or Teams. I tried running Zoom the other day in this sort of jail but kept running into kernel panics.
- djsumdog 6y agoI wish there was a usable Docker Engine API implementation that could run containers in jails using zfs for image layering. There is a Docker for FreeBSD port, but last time I checked, it was super old. Having Docker as a first class citizen on FreeBSD would make it really incredibly as a server OS.
- zokula 6y ago> Having Docker as a first class citizen on FreeBSD would make it really incredibly as a server OS. Now if only if FreeBSD wasnt an slow, unstable, glued together example of an OS.
- jen20 6y ago> glued together example of an OS This is a strange assertion when the implication is that Linux is somehow not "glued together" despite requiring distributions to literally glue the pieces together.
- nickexyz 6y ago> Now if only if FreeBSD wasnt an slow, unstable, glued together example of an OS. I really don't see how this kind of comment adds to the conversation. As jen20 wrote, GNU/Linux really is glued together. Linux is great, but FreeBSD are in my opinion both more stable and less "glued together". Since you have a clear separation between the system and user installed packages, there usually are less things that breaks. In my experience of course. To be fair, I was kind of anti BSD as well before giving it a real chance. In any case, I really hope the BSD:s continue to grow. One OS is never a good thing, and Linux seems to eat up most of the market right now.
- centimeter 6y agoFreeBSD's point of distinction is that it's carefully designed and fitted together, compared to Linux's comparatively heavy use of glue. I also haven't heard credible reports of it being slow, except for things it's not really used for (like drivers for consumer wifi cards).
- jxy 6y agoThis wiki page does not tell you how to setup a jail for the linux OS, so the name is bogus.
- dddddaviddddd 6y agoYeah, I'm not sure what the exec.start command would be for systemd-based Ubuntu.
- trasz 6y agoDepends on what you want from the jail. If you want to be able to ssh into it, then make it start ssh ("service ssh start") and that's it.
- markstos 6y agoNice progress, but it notes that `systemd` doesn't work, which means all the things that depend on `systemd` won't work either.
- bee_rider 6y agoI've been generally OK with systemd, and think most of the complaints about it were over-dramatic, but this is exactly one of the things we were warned about, right?
- throw0101a 6y agosystemd-as-SysV-init replacement was fine. It's all the other stuff that many people think is overkill: udevd being pulled in, journald, time sync, file system mounting, network management, etc. And all are in one repo with tight coupling. For an "init system".
- m463 6y agosystemd is like that non-lazy guy we were warned about: I distinguish four types. There are clever, hardworking, stupid, and lazy officers. Usually two characteristics are combined. Some are clever and hardworking; their place is the General Staff. The next ones are stupid and lazy; they make up 90 percent of every army and are suited to routine duties. Anyone who is both clever and lazy is qualified for the highest leadership duties, because he possesses the mental clarity and strength of nerve necessary for difficult decisions. One must beware of anyone who is both stupid and hardworking; he must not be entrusted with any responsibility because he will always only cause damage. https://en.wikipedia.org/wiki/Kurt_von_Hammerstein-Equord https://en.wikipedia.org/wiki/Kurt_von_Hammerstein-Equord
- Arnavion 6y agoEven if you stripped systemd down to the "as-SysV-init replacement" part it still wouldn't run on FreeBSD, because systemd uses cgroups for that.
- etaioinshrdlu 6y ago
- yadco 6y agoBSD subsystem for Linux.
- loeg 6y agoPretty much. Long predates WSL1, though, and facing many of the same difficulties that prompted the Windows team to just run Linux in a hypervisor (WSL2).
- moonchild 6y ago> facing many of the same difficulties that prompted the Windows team to just run Linux in a hypervisor How's that? WSL had serious performance issues due to design differences between linux and NT. Linux and freebsd both being unices, there is no such impedance. Some features (like cgroups) remain unimplemented, true, but there haven't been any big difficulties afaik.
- andoriyu 6y agoNot just performance issues. WSL1 had so many limitations that it was silly. WSL2 gives you pretty much the whole linux environment. A truly future of Linux of desktop...
- tony 6y agoAlso interested in the response to the parent (loeg) > facing many of the same difficulties that prompted the Windows team to just run Linux in a hypervisor If by difficulties, you mean implementing system calls, this is being kept tabs on here: https://wiki.freebsd.org/Linuxulator https://wiki.freebsd.org/Linuxulator One that comes to mind is FreeBSD's kqueue, which opens a file descriptor for every file watched [1] So inotify, inotify_add_watch, inotify_rm_watch isn't started. Lots of applications need watching of changes on directories. Even plain old FreeBSD gets messed since a large webpack project is going to chew up way too much. If you're interested in this type of system call across operating systems check out https://github.com/emcrisostomo/fswatch https://github.com/emcrisostomo/fswatch On WSL1/2: Namely in WSL1, there were serious issues with package systems like npm, node_modules/ would have file descriptors get clogged, and it took a full system reboot to get WSL working again: https://github.com/microsoft/WSL/issues/1529 https://github.com/microsoft/WSL/issues/1529. WSL2 Fixes it. [1] https://emcrisostomo.github.io/fswatch/doc/1.8.0/fswatch.html/Monitors.html https://emcrisostomo.github.io/fswatch/doc/1.8.0/fswatch.htm... See Freebsd -> kqueue -> Peculiarities
- centimeter 6y agoAbout 6 months ago I tried running FreeBSD on a network appliance, when I usually run Debian. Wow! I'm never going back. Everything about it made me really happy, from the smooth install (Debian often has issues with serial console installs), to being able to boot ZFS, to the sheer simplicity of configuring the OS. One stark example of how clean the FreeBSD install is: there are something like 9 or 10 processes running after boot for a fresh FreeBSD install, compared to dozens for a fresh Debian or Ubuntu install. Using jails is also a lot more pleasant than using docker.
- nix23 6y agoTrue, there is a point that pfsense and OPNsense are the best free Firewall Appliaces.