Skip to content
0:00 / 0:00

#solariszones#freebsdjails#chroot

Bryan Cantrill on Jails and Solaris Zones

PapersWeLove

23K subscribers • 34 videos on Hallway • Community channel

YouTube
  • Recommended by 6 people: 6 on Hacker News.
  • A classic. People kept recommending it from 2016 to 2024.
  • Presented by Bryan Cantrill

Intermediate. Assumes working knowledge.

34K views10 years ago6 recommendations

Systems programmingSecurityOperating systemsDocker and containers

Bryan Cantrill traces the history of OS-level virtualization, comparing FreeBSD Jails and Solaris Zones and their evolution from chroot.

Meetup: bit.ly/24BICms Papers: bit.ly/1OQu5YB & bit.ly/21HNDYf Slides: bit.ly/1QmCSWr Audio: bit.ly/1T8uYUb ----------------------------------------------------------------------------------------------------------- Sponsored by Two Sigma (@twosigma) and Enigma (@enigma_io) ----------------------------------------------------------------------------------------------------------- Description ------------------ Jails: Confining the omnipotent root. ============================== The traditional UNIX security model is simple but inexpressive. Adding fine-grained access control improves the expressiveness, but often dramatically increases both the cost of system management and implementation complexity. In environments with a more complex management model, with delegation of some management functions to parties under varying degrees of trust, the base UNIX model and most natural extensions are inappropriate at best. Where multiple mutually untrusting parties are introduced, "inappropriate" rapidly transitions to"nightmarish", especially with regards to data integrity and privacy protection. The FreeBSD "Jail" facility provides the ability to partition the operating system environment, while maintaining the simplicity of the UNIX "root" model. In Jail, users with privilege find that the scope of their requests is limited to the jail, allowing system administrators to delegate management capabilities for each virtual machine environment. Creating virtual machines in this manner has many potential uses; the most popular thus far has been for providing virtual machine services in Internet Service Provider environments. Solaris Zones: Operating System Support for Consolidating Commercial Workloads ================================================ Server consolidation, which allows multiple workloads to run on the same system, has become increasingly important as a way to improve the utilization of computing resources and reduce costs. Consolidation is common in mainframe environments, where technology to support running multiple workloads and even multiple operating systems on the same hardware has been evolving since the late 1960’s. This technology is now becoming an important differentiator in the UNIX and Linux server market as well, both at the low end (virtual web hosting) and high end(traditional data center server consolidation).This paper introduces Solaris Zones (zones), a fully realized solution for server consolidation projects in a commercial UNIX operating system. By creating virtualized application execution environments within a single instance of the operating system, the facility strikes a unique balance between competing requirements. On the one hand, a system with multiple workloads needs to run those workloads in isolation, to ensure that applications can neither observe data from other applications nor affect their operation. It must also prevent applications from over-consuming system resour

Why it's here

6 people recommend this

What people say. Highly recommended for its entertaining and informative history of OS-level virtualization and container technology.

ketralnison Hacker News • Recommends

On “Running I3 Window Manager on Ubuntu for Windows”

Bryan Cantrill has a wonderful talk about exactly this in Illumos that I recommend at every opportunity link to this video

panick21_on Hacker News • Recommends

On “"Doors" in Solaris: Lightweight RPC Using File Descriptors (1996)”

I highly recommend this talk, talking about Jails and Zones. Jails was first, but Zones took a lot of lessens from it and went further. link to this video

eternalbanon Hacker News • Recommends

On “Memory Deduplication: The Curse that Keeps on Giving [video]”

I am watching it now but he's talking about VMs ("KVM") and not "containers". As to why we're in this mess, this rather amusing talk by B. Cantrill discusses the history: link to this video (Linux) Containers are not VMs: link

jsiepkeson Hacker News • Recommends

On “Comprehensive and biased comparison of OpenBSD and FreeBSD [pdf]”

Bryan Cantrill has a nice talk which starts with a bit of history on containers (chroot, FreeBSD jails, Solaris zones, etc.). link to this video

kohtatsuon Hacker News • Recommends

On “Gocker: Docker implemented in 1.3k lines of Go”

This talk by Bryan Cantrill on the history of OS-level virtualization is great. link to this video Apparently the first version of Jails was a few hundred lines of code.

yakubinon Hacker News • Recommends

On “Sun: The Network Is the Computer”

…e buggy for a long time, but went through extensive testing and are enabled by default since FreeBSD 12.0 (quite recently). Solaris Zones went a step further than the original design, and run a separate network stack for each zone from the start, years before FreeBSD did. BTW, recommended talk about those topics: Papers We Love: Jails and Zones: < link to this video >…

Annataron Hacker News • Mentions

On “Docker Storage: An Introduction”

.. no? Because many of the grsecurity+pax improvements apply to any kernel that runs on a CPU (it provides active protections against certain forms of kernel vulnerabilities caused by bugs). This includes illumos, thus the question is valid. grsecurity is a set of patches for the GNU/Linux kernel. illumos is based on Solaris, so the entire argument about grsecurity is nonsense. illumos uses red zones to prevent buffer overflows, which grsecurity is attempting to address. grsecurity is a commercial product by the way. A single license costs $19,000 USD. Enhanced auditing and process control which grsecurity provides have been part of Solaris, and therefore illumos, since Solaris 10, some even…

bcantrillon Hacker News • Mentions

On “Haiku Project”

I love Haiku -- and their inspiration in BeOS brings back my memories of deciding not to work for Be in 1996, and then later hitting jackpot at the Be Inc. bankruptcy auction.1 1 link to this video

TZubirion Hacker News • Mentions

On “Kubernetes Home – what do you do if your ISP changes your IP addresses?”

1st of all yes, many people consider not only chroot to be virtualization (of the file system). Yes it is arguable as it is the birth of lightweight virtualization. But you were wrong in saying no one does. link link to this video 2nd containers go farther and virtualize network, and other resources.