Size: 2318
Comment:
|
Size: 3366
Comment:
|
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 ... ## ## 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. LCX - Host configuration. ## 3. LXC - Container configuration. ## 4. LXC - Running a single process - This is more difficult then a container. |
|
Line 5: | Line 21: |
Line 16: | Line 33: |
[[http://blog.bodhizazen.net/linux/lxc-configure-ubuntu-lucid-containers/|External link - How to Ubuntu 10.04 LXC containers] |
|
Line 17: | Line 36: |
[[http://blog.bodhizazen.net/linux/lxc-linux-containers/|External link - Ubuntu and Fedora Hosts]] |
|
Line 55: | Line 76: |
* [[http://lxc.teegra.net/|How to LXC - this is one of the best documents available]] |
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.
Notes
- Upstream libvirt should support LXC.
- KVM + LXC can function properly on same host.
- 64bit OS using a 32bit container.
User case examples
- Isolate single processes, (I.E. a webserver).
- VPS
- LTSP
- 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
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.
User space tools (lxc)
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