- 24 Jul, 2009 6 commits
-
-
Daniel Lezcano authored
Remove the comment about sharing /dev and fix the lxc-ps option format. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Michel Normand authored
This is a complement of previous patches d983b93c and af795875 about inherited fd. Here this is required for the lxc-execute that have a specific lxc-init procress. Signed-off-by:
Michel Normand <normand@fr.ibm.com> Signed-off-by:
Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
"netlink headers not found" implicitely means we have to install the kernel headers. Make this explicit. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
Add some traces in the code, so we are able to follow the execution of the start command with the logger. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
The trace is displayed either if the setting fails, change that by displaying the trace when the setting is successful. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
Increment to the 0.6.3 version. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
- 22 Jul, 2009 3 commits
-
-
Daniel Lezcano authored
Allow the user to specify an extra fstab file to be added in the debian configuration. So some optimisations can be done for sharing objects. eg: /var/cache/apt/archives mounted in <rootfs>/var/cache/apt/archives Signed-of-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
Added clone2 for container creation on ia64. Not tested as I don't have such architecture. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
Now we have a logging facility, let's use it and add some traces in the code. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
- 20 Jul, 2009 2 commits
-
-
Daniel Lezcano authored
The /dev/shm is not isolated for application container, so mount it in the container. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
This patch fix a problem with the commit d983b93c When the lxc daemonize, it closes fd 0, 1 and 2. But these ones are coming from inherited fd and they are already in the inherited list of fd. When lxc creates some file descriptors, they have the number of the previous inherited file descriptor, so they are closed when we close all the inherited file descriptors. In order to fix that, the lxc_close_inherited_fd function has been implemented to close an inherited fd and remove it from the list. Signed-off-by:
Daniel Lezcano <dlezcano@fr.ibm.com>
-
- 16 Jul, 2009 3 commits
-
-
Daniel Lezcano authored
As a previous run may have created a cgroup but died unexpectedly, the cgroup can be still there when we try to launch the container again with the same name. This patch removes the directory if it is present, if this one is not owned by caller or it is in use (that should not happen), the rmdir will fail with the corresponding errno. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
Move the lxc_handler structure definition in the body file and dynamically allocate it. lxc_handler becomes an opaque structure for the user. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
The structure is cleared by the lxc_init function. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
- 15 Jul, 2009 4 commits
-
-
Michel Normand authored
This patch makes the intermediate lxc processes to close the inherited file descriptor. The child process will inherit these fd in any case and that will be up to it to handle them. Signed-off-by:Michel Normand <normand@fr.ibm.com>
-
Daniel Lezcano authored
Now we have a helper to dup the arguments, let's use it. The code gains in clarity. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
Add a helper to dup the lxc_arguments, so the code making the copy of the arguments will be more clear. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
Make some cleanup around the parameters of lxc-init. The option mount procfs is not needed as we want to do that all the time. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
- 13 Jul, 2009 2 commits
-
-
Daniel Lezcano authored
This patch makes lxc to detect a specific cgroup dedicated to lxc which is mounted with the lxc name. That allows to mount different cgroup in different places with different options (aka subsystems) and assign one to be used by lxc. If no such mount point is found, the first cgroup mount point is used. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Michel Normand authored
Before this patch a container was able to be started without mounted cgroup. (only a warning was logged) But the lxc-ps is using the /proc/<pid>/cgroup to identify the lxc container in which pid is running. So to be consistent between all lxc command I force an error if cgroup is not mounted at time of lxc-execute or lxc-start. Signed-off-by:
Michel Normand <normand@fr.ibm.com> Signed-off-by:
Daniel Lezcano <dlezcano@fr.ibm.com>
-
- 10 Jul, 2009 3 commits
-
-
Daniel Lezcano authored
There are several cases: * we run the lxc-create as root, the @path@/var/lib/lxc will be created * we run the lxc-create as non-root, the creation of the directory will fail with "permission denied", so we should call lxc-setcap before * we run lxc-setcap (always as root), we create the directory and set the permission for everyone. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
Don't create the directory when we install the lxc package. This is handled by lxc-create. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Ryousei Takano authored
Hi Daniel and all, I am trying to run LXC on the CentOS 5.3 and the Linux kernel 2.6.30. I found a problem with running the rpmbuild command. The error message is shown below: $ rpmbuild -bb lxc.spec <snip> /usr/bin/install -c 'lxc-setcap' '/var/tmp/lxc-0.6.2-build/usr/bin/lxc-setcap' /usr/bin/install -c 'lxc-version' '/var/tmp/lxc-0.6.2-build/usr/bin/lxc-version' mkdir: cannot create directory `/var/lib/lxc': Permission denied make[3]: *** [install-exec-local] Error 1 make[3]: Leaving directory `/home/ryousei/rpm/BUILD/lxc-0.6.2/src/lxc' make[2]: *** [install-am] Error 2 make[2]: Leaving directory `/home/ryousei/rpm/BUILD/lxc-0.6.2/src/lxc' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/home/ryousei/rpm/BUILD/lxc-0.6.2/src' make: *** [install-recursive] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.26914 (%install) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.26914 (%install) This patch removes 'install-exec-local' rule in Makefile. It is not necessary, and it causes rpmbuild failure on the CentOS 5.3. Signed-off-by:Ryousei Takano <takano-ryousei@aist.go.jp> Signed-off-by:
Daniel Lezcano <dlezcano@fr.ibm.com>
-
- 07 Jul, 2009 3 commits
-
-
Daniel Lezcano authored
This code is no longer used, remove it. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
Make use of the lxc_clone function and do no longer use the fork_ns function. The lxc-unshare utility has been changed to always do a fork. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
This patch replaces the clone syscall by the glibc clone making the code not tied with the syscalls number declaration. The unshare syscall has been removed as it is not interesting. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
- 03 Jul, 2009 1 commit
-
-
Daniel Lezcano authored
This file may be without any permission Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
- 02 Jul, 2009 6 commits
-
-
Filippo Giunchedi authored
Point users in documentation to also enable POSIX capability for dropping CAP_BOOT. Signed-off-by:
Filippo Giunchedi <filippo@esaurito.net> Signed-off-by:
Daniel Lezcano <dlezcano@fr.ibm.com>
-
Filippo Giunchedi authored
This might result in more evident lack of support for POSIX capabilities enabled as pointed in documentation Signed-off-by:
Filippo Giunchedi <filippo@esaurito.net> Signed-off-by:
Daniel Lezcano <dlezcano@fr.ibm.com>
-
Filippo Giunchedi authored
Probably a mention to libcap-2 is worth keeping, though it might be clearer to point to setcap binary directly. Signed-off-by:
Filippo Giunchedi <filippo@esaurito.net> Signed-off-by:
Daniel Lezcano <dlezcano@fr.ibm.com>
-
Filippo Giunchedi authored
Rationale: some distributions don't include /sbin in PATH for regular users, thus setcap might not be found during configure Signed-off-by:
Filippo Giunchedi <filippo@esaurito.net> Signed-off-by:
Daniel Lezcano <dlezcano@fr.ibm.com>
-
Filippo Giunchedi authored
These options appear in 2.6.29 in different locations, update the sgml accordingly Signed-off-by:
Filippo Giunchedi <filippo@esaurito.net> Signed-off-by:
Daniel Lezcano <dlezcano@fr.ibm.com>
-
christophe.quintard@fr.ibm.com authored
I think this explanation is better. Signed-off-by:
Christophe Quintard <christophe.quintard@fr.ibm.com> Signed-off-by:
Daniel Lezcano <dlezcano@fr.ibm.com>
-
- 01 Jul, 2009 2 commits
-
-
Michel Normand authored
this is the man page update following the previous git commit 7cbfc4e4Signed-off-by:
Michel Normand <normand@fr.ibm.com> Signed-off-by:
Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
Add missing include stdlib.h Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
- 25 Jun, 2009 5 commits
-
-
Michel Normand authored
lxc-execute has to return the exit code of it's child not others as today's code would return the exit code of the last child. We need to track the first process we launched and store its exit status when it exits. In order to avoid to detect the exit of this pid several time if the pids number wrap, we put an extra flag saying the process group is orhpan. Signed-off-by:
Michel Normand <normand@fr.ibm.com> Signed-off-by:
Daniel Lezcano <dlezcano@fr.ibm.com>
-
Michel Normand authored
Implement the lxc-ps script with perl script. Signed-off-by:
Michel Normand <normand@fr.ibm.com> Signed-off-by:
Daniel Lezcano <dlezcano@fr.ibm.com>
-
Michel Normand authored
I did this one change by reading the code but did not tried to run it. Signed-off-by:
Michel Normand <normand@fr.ibm.com> Signed-off-by:
Daniel Lezcano <dlezcano@fr.ibm.com>
-
Michel Normand authored
the lxc_unlink_nsgroup may fail on ppc where the stack is not zeroed by default and because the readlink function do not add trailing null character. Signed-off-by:
Michel Normand <normand@fr.ibm.com> Signed-off-by:
Daniel Lezcano <dlezcano@fr.ibm.com>
-
Michel Normand authored
Update the checkpoint and restart regarding the statefile parameter. Signed-off-by:
Michel Normand <normand@fr.ibm.com> Signed-off-by:
Daniel Lezcano <dlezcano@fr.ibm.com>
-