How to create LXC system containers to isolate services | Linux Today

How to create LXC system containers to isolate services

Written By
Web Webster
Web Webster
Mar 3, 2010

“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.”

Complete
Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.