Go to file
Stéphane Graber fade719ed9 lxc-ubuntu: Guess a list of langpacks to install
In addition to creating the current locale in the container, also
try to scan the host and extra the list of langpacks installed there,
then pass that list to debootstrap as additional packages to install.

On distros that don't have dpkg, only language-pack-en will be installed.
The code will always ensure that language-pack-en is ALWAYS installed in the
target, similar to what Ubuntu does with its various media.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
2012-11-29 10:26:23 -05:00
config Remove all trailing whitespaces. 2012-11-26 12:08:13 -05:00
doc Remove all trailing whitespaces. 2012-11-26 12:08:13 -05:00
src revert inadvertent un-doing of lxc-clone fix 2012-11-28 09:57:59 -06:00
templates lxc-ubuntu: Guess a list of langpacks to install 2012-11-29 10:26:23 -05:00
.gitignore gitignore: Ignore python cache 2012-11-26 12:32:56 -05:00
AUTHORS Initial revision 2008-08-06 14:32:29 +00:00
autogen.sh lxc: kill libtool 2009-10-22 15:33:40 +02:00
configure.ac Detect which name to use for docbook2x-man 2012-11-12 15:38:50 -05:00
CONTRIBUTING CONTRIBUTING: specify where one can send patches 2009-03-19 16:11:11 +01:00
COPYING Remove all trailing whitespaces. 2012-11-26 12:08:13 -05:00
INSTALL Updated README and INSTALL. autogen.sh command should be run before configure. 2012-11-12 14:56:02 -05:00
lxc.pc.in fixes for rpmbuild 2011-09-13 15:08:04 +02:00
lxc.spec.in Fix package name needed for building docs with RPM 2012-11-14 10:55:06 -05:00
MAINTAINERS fix git location 2012-11-11 03:32:51 +01:00
Makefile.am Add distro config file /etc/lxc/lxc.conf 2012-11-12 13:18:32 -05:00
NEWS Initial revision 2008-08-06 14:32:29 +00:00
README Updated README and INSTALL. autogen.sh command should be run before configure. 2012-11-12 14:56:02 -05:00
RELEASE-NOTES Initial revision 2008-08-06 14:32:29 +00:00
runapitests.sh Prefix the test binaries by lxc-test- 2012-11-12 13:17:54 -05:00
TODO Remove all trailing whitespaces. 2012-11-26 12:08:13 -05:00

Please see the COPYING file for details on copying and usage.
Please refer to the INSTALL file for instructions on how to build.

What is lxc:

  The container technology is actively being pushed into the mainstream linux
  kernel. It provides the resource management through the control groups  aka
  process containers and resource isolation through the namespaces.

  The  linux  containers, lxc, aims to use these new functionalities to pro-
  vide an userspace container object which provides full  resource  isolation
  and resource control for an applications or a system.

  The first objective of this project is to make the life easier for the ker-
  nel developers involved in the containers project and  especially  to  con-
  tinue  working  on  the  Checkpoint/Restart  new features. The lxc is small
  enough to easily manage a container with simple command lines and  complete
  enough to be used for other purposes.

Using lxc:

  Refer the lxc* man pages (generated from doc/* files)

Downloading the current source code:

  Source for the latest released version can always be downloaded from
  http://lxc.sourceforge.net/download/lxc

  You can browse the up to the minute source code and change history online.
  http://lxc.git.sourceforge.net

  For detailed build instruction refer to INSTALL and man lxc man page
  but a short command line should work:
  ./autogen.sh && ./configure && make && sudo make install && sudo lxc-setcap
  preceded by ./autogen.sh if configure do not exist yet.

Getting help:

  when you find you need help, you can check out one of the two
  lxc mailing list archives and register if interested:
  https://lists.sourceforge.net/lists/listinfo/lxc-devel
  https://lists.sourceforge.net/lists/listinfo/lxc-users

Portability:

  lxc  is  still  in  development, so the command syntax and the API can
  change. The version 1.0.0 will be the frozen version.

  lxc is developed and tested on Linux since kernel mainline version 2.6.27
  (without network) and 2.6.29 with network isolation.
  is compiled with gcc, and supports i686, x86_64, ppc, ppc64, S390 archi.

AUTHOR
       Daniel Lezcano <daniel.lezcano@free.fr>

Seccomp with LXC
----------------

To restrict a container with seccomp, you must specify a profile which is
basically a whitelist of system calls it may execute.  In the container
config file, add a line like

lxc.seccomp = /var/lib/lxc/q1/seccomp.full

I created a usable (but basically worthless) seccomp.full file using

cat > seccomp.full << EOF
1
whitelist
EOF
for i in `seq 0 300`; do
	echo $i >> secomp.full
done
for i in `seq 1024 1079`; do
	echo $i >> seccomp.full
done

 -- Serge Hallyn <serge.hallyn@ubuntu.com>  Fri, 27 Jul 2012 15:47:02 +0600