“Vincent Danen shows you how to create Linux Resource Containers
to run a full service or set of services, isolated from the host
operating system.“Last week I introduced you to LXC, or Linux Resource
Containers. We looked at the requirements to get LXC up and running
and looked at isolating individual processes using application
containers. In this tip, we go one step further, from isolating a
single application to creating a fully separate container that runs
a full service or set of services. This tip assumes that LXC has
been previously configured, as discussed last week.“The easiest way to set up an LXC-based container is to use an
existing base operating system, such as the templates provided by
the OpenVZ project. As an example, we’ll use a CentOS 5
template: centos-5-x86.tar.gz. Once you download it, the LXC system
container can be created. LXC also provides two tools to assist in
creating Fedora or Debian containers: lxc-fedora and lxc-debian.
Each of these will download a minimal install and interactively set
up the container; pass the “install” option to either
script to use them to install a new container.”
How to create LXC system containers to isolate services
By
Get the Free Newsletter!
Subscribe to Developer Insider for top news, trends, & analysis