Chapter 2. Installing and Running LXC on Linux Systems

LXC takes advantage of the kernel namespaces and cgroups to create process isolation we call containers, as we saw in the previous chapter. As such, LXC is not a separate software component in the Linux kernel, but rather a set of userspace tools, the liblxc library, and various language bindings.

In this chapter, we'll cover the following topics:

  • Installing LXC on Ubuntu and CentOS using distribution packages
  • Compiling and installing LXC from source code
  • Building and starting containers using the provided templates and configuration files
  • Manually building the root filesystem and configuration files using tools such as debootstrap and yum

Installing LXC

At the time of writing this book, there are ...

Get Containerization with LXC now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.