Diff for "LXC"


Differences between revisions 9 and 25 (spanning 16 versions)
Revision 9 as of 2010-07-09 10:29:10
Size: 3899
Editor: aolclient-67-9-194-73
Comment:
Revision 25 as of 2014-07-29 22:20:53
Size: 1455
Editor: 192
Comment: Fixing broken link
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## BodhiZazen - I added external links to my blog.
## Sorry about that, but it is the best I can do at the moment ...
## stlsaint-making plans to transcribe blog instructions here!
## As I get a little more experience under my belt,
## and assuming the feedback goes well I plan to transcribe the blog pages here.
##
## If anyone with more experience would like to add to or comment on this information - feel free
##
## If anyone wishes to help transcribe / organize the information from my blog, again - feel free
##
## I am going to suggest breaking this documentation effort into 4 pages :
## 1. LXC Overview page.
## 2. LXC - Host configuration.
## 3. LXC - Container configuration.
## 4. LXC - Running a single process - This is more difficult then a container.

||<tablestyle="float:right; font-size: 0.9em; width:40%; background:#F1F1ED; margin: 0 0 1em 1em;" style="padding:0.5em;"><<TableOfContents(2)>>||

Line 23: Line 4:
===== Notes =====
Line 25: Line 5:
 * Upstream libvirt support LXC.
 * KVM + LXC can function properly on same host.
 * LXC inside KVM works properly on same host.
 * LXC take advantage of KMS feature of new Kernels.
 * 64bit OS using a 32bit container.
 * LXC works well with btrfs.
 * No special hardware required.
 * No patch is required to the kernel, since LXC is already integrated into the Kernel.
 * OpenVZ Containers run on LXC, only Config modification required.

== User case examples ==

 1. Isolate single processes, (I.E. a webserver).
 1. VPS
 1. LTSP
 1. Software build, testing, upgrading (think sandboxing)

[[http://blog.bodhizazen.net/linux/lxc-configure-ubuntu-lucid-containers/|External link - How to Ubuntu 10.04 LXC containers]]

= Host configuration =

[[http://blog.bodhizazen.net/linux/lxc-linux-containers/|External link - Ubuntu and Fedora Hosts]]

== kernel requirements ==

The Linux container capabilities are part of the main stream linux kernel and require kernel version >= 2.6.27 (well working as of 2.6.31).

There are no requirements to compile a kernel or apply patches.
Ubuntu ships with the latest version of LXC and is very active in the upstream development of LXC and the containers capabilities in the kernel.
Line 55: Line 8:
== User space tools (lxc) == The best documentation available at the moment for LXC can be found in the Server Guide:
https://help.ubuntu.com/14.04/serverguide/lxc.html
Line 57: Line 11:
The user space tools, or lxc, are a set of scripts that manage linux containers.

You may install the lxc user space tools from the Ubuntu repositories.

{{{
sudo apt-get install lxc
}}}

Or download the latest stable package from sourceforge and compile them yourself.
The lxc project maintains a git repository for a bleeding edge set of tools.

== Networking ==

There are several networking options available, the consensus appears to be that bridging your network card is the best option. As such I will cover bridging your network card here, hopefully this information can be expanded.

= Container configuration =
options/examples for config files
chroot/debootstrap/febootstrap
lxc-debian / lxc-fedora
lxc-console / ssh into containers

== Migrate OpenVZ containers ==

= Application configuration =
A good getting started guide can be found at:
https://www.stgraber.org/2012/05/04/lxc-in-ubuntu-12-04-lts/
Line 84: Line 16:
 * [[http://lxc.sourceforge.net/lxc.html|LXC overview (Sourceforge)]]
Line 92: Line 23:
 * [[https://help.ubuntu.com/12.04/serverguide/lxc.html|LXC Chapter in the Ubuntu Server Guide for Ubuntu 12.04]]

----
CategoryInstallation CategorySystem

Overview

LinuX Containers (LXC) provide lightweight virtualization that lets you isolate processes and resources without the need to provide instruction interpretation mechanisms and other complexities of full virtualization.

Ubuntu ships with the latest version of LXC and is very active in the upstream development of LXC and the containers capabilities in the kernel.

The best documentation available at the moment for LXC can be found in the Server Guide: https://help.ubuntu.com/14.04/serverguide/lxc.html

A good getting started guide can be found at: https://www.stgraber.org/2012/05/04/lxc-in-ubuntu-12-04-lts/

See also


CategoryInstallation CategorySystem

LXC (last edited 2014-07-29 22:20:53 by 192)