en:ressources:dossiers:lxc
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:
$ ./configure --enable-doc --enable-capabilities --enable-bash $ make $ sudo make install
The installer will deploy libraries in /usr/local/lib. Make sure to have your LD_LIBRARY_PATH correctly set:
$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
You can then verify the function enabled on your system using lxc-checkconfig:
$ 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
en/ressources/dossiers/lxc.txt · Last modified: 2024/04/17 10:19 by 127.0.0.1