Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:ressources:dossiers:lxc [2014/04/12 18:08] (current)
Line 1: Line 1:
 +====== Linux Containers ======
  
 +Some notes around building and managing Linux Containers.
 +
 +===== Building LXC on Debian Wheezy =====
 +
 +Get the latest from https://​linuxcontainers.org/​downloads/​ and configure it:
 +<​code>​
 +$ ./configure --enable-doc --enable-capabilities --enable-bash
 +
 +$ make
 +
 +$ sudo make install
 +</​code>​
 +
 +The installer will deploy libraries in /​usr/​local/​lib. Make sure to have your LD_LIBRARY_PATH correctly set:
 +
 +<​code>​
 +$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/​usr/​local/​lib
 +</​code>​
 +
 +You can then verify the function enabled on your system using lxc-checkconfig:​
 +
 +<​code>​
 +$ sudo lxc-checkconfig
 +Kernel configuration not found at /​proc/​config.gz;​ searching...
 +Kernel configuration found at /​boot/​config-3.2.0-4-amd64
 +--- Namespaces ---
 +Namespaces: enabled
 +Utsname namespace: enabled
 +Ipc namespace: enabled
 +Pid namespace: enabled
 +User namespace: enabled
 +Network namespace: enabled
 +Multiple /dev/pts instances: enabled
 +
 +--- Control groups ---
 +Cgroup: enabled
 +Cgroup clone_children flag: enabled
 +Cgroup device: enabled
 +Cgroup sched: enabled
 +Cgroup cpu account: enabled
 +Cgroup memory controller: enabled
 +Cgroup cpuset: enabled
 +
 +--- Misc ---
 +Veth pair device: enabled
 +Macvlan: enabled
 +Vlan: enabled
 +File capabilities:​ enabled
 +
 +Note : Before booting a new kernel, you can check its configuration
 +usage : CONFIG=/​path/​to/​config /​usr/​local/​bin/​lxc-checkconfig
 +</​code>​
en/ressources/dossiers/lxc.txt ยท Last modified: 2014/04/12 18:08 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0