Commit Graph

3097 Commits

Author SHA1 Message Date
dlezcano
0652697525 Fix function prototype
From: Daniel Lezcano <dlezcano@fr.ibm.com>

The lxc_start function prototype has been changed.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2008-11-13 15:23:44 +00:00
dlezcano
05f05512ed Replace lxc_execute by an intermediate lxc_init
From: Daniel Lezcano <dlezcano@fr.ibm.com>

The main difference between lxc_start and lxc_execute is the latter creates
an intermediate process to wait for all the childs. That allows to support
daemons or orphan process group for the pid namespace.

Having such difference makes the code to be duplicate between the two
functions. So instead of doing this, I create an intermediate <init> program
which is in charge to launch the specified command. This command is the
lxc-init program taking different options:
 --mount-procfs : mount the proc filesystem before exec'ing the command
 --mount-sysfs : mount the sys filesystem before exec'ing the command

A double dash indicates the end of the options of lxc-init and the beginning
of the command to be launched.

To summarize:
 * lxc_execute function is no more.
 * lxc-execute command uses the lxc_start function and launch the specified
command via lxc-init

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2008-11-13 15:21:55 +00:00
dlezcano
683c720b7e Fix typo.
From: Daniel Lezcano <dlezcano@fr.ibm.com>

Fix trivial typo

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2008-11-05 19:55:10 +00:00
dlezcano
752c0602f0 Add guidelines for contribution to the 'lxc' project
From: Daniel Lezcano <dlezcano@fr.ibm.com>

CONTRIBUTING file give the guidelines to submit patches to this project.
MAINTAINERS contains the maintainer name and mailing list to send the patches.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2008-11-05 19:51:21 +00:00
dlezcano
42ff343ddb From: Daniel Lezcano <dlezcano@fr.ibm.com>
Remove the CAP_SYS_BOOT capability from the bouding set, so we can poweroff,
halt, reboot the container safely without shutting down the real host.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2008-11-04 22:18:23 +00:00
dlezcano
96950ed0f4 From: Daniel Lezcano <dlezcano@fr.ibm.com>
To allow user to properly configure the location of lxcpath (/var/lxc),
it should be build based on variable 'localstatedir' instead of 'prefix'.

By default, localstatedir=$prefix/var
localstatedir can be set by the user during configure:

./configure --localstatedir=/var

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2008-11-04 22:16:21 +00:00
dlezcano
57545890fe From: Daniel Lezcano <dlezcano@fr.ibm.com>
Exit instead of returning in child process.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2008-11-04 21:52:48 +00:00
dlezcano
5f8dbb64c6 Redirect the Changelog diff to file instead of stdout 2008-10-28 22:38:23 +00:00
dlezcano
f04d36bf47 Generate a ChangeLog, if possible, and copy it to the dist directory in order
to be shipped with the release
2008-10-28 22:08:05 +00:00
dlezcano
732db53f60 Added a helper to generate the Changelog between two releases 2008-10-28 22:06:58 +00:00
dlezcano
693dcea5e4 Fixed different compilation scheme by making /var/lxc directory relative to
the installation prefix and by adding some extra path to search for the
'setcap' command.
2008-10-26 22:06:49 +00:00
dlezcano
65c46aeff2 Added automatic generation of packages and repository tagging 2008-10-24 22:08:25 +00:00
dlezcano
94253b66e4 Automatically generated now with cvs2cl command 2008-10-24 22:06:14 +00:00
dlezcano
3b164be6e7 Helper script to generate releases 2008-10-24 21:56:50 +00:00
dlezcano
6136d011de Version lxc-0.4.0 2008-10-24 21:33:51 +00:00
dlezcano
22ea48ce03 Added file capabilities to lxc-restart 2008-10-24 20:24:07 +00:00
dlezcano
805415fceb Give the ability to non-root user to play with the containers. This feature
relies on the file capabilities, when the lxc commands are installed, the
sys/net admin capabilities are given to these files. These capabilities are
not available for the application running inside the container.
2008-10-24 20:14:57 +00:00
dlezcano
96c9f969b6 Exit instead of returning in the child processes, otherwise the execution
path of the child will be wrong in case of error.
2008-10-24 20:11:25 +00:00
legoater
ae4c254760 removed opentty now useless and fixed pid of root process for restart 2008-10-23 13:09:01 +00:00
legoater
6c5084efa4 fix missing src/lxc/lxc-checkconfig 2008-10-23 07:21:49 +00:00
dlezcano
22e761af89 This new command is a helper to check if the needed functionalities are
compiled the kernel. It relies on /proc/config.gz, if it is not compiled,
the command will simply fail.
If a feature is missing but not mandatory, "disabled" keyword will appear
in yellow, if it is mandatory, it will appear in "red", otherwise the key
word "enabled" will appear in green.
2008-10-20 11:45:19 +00:00
dlezcano
80f412985e These modifications improve the monitoring support of the container. Now
several readers can attend the events from one or several containers.
The syntax of the command has been enhanced to interpret regular expressions.
If you want to monitor foo, lxc-monitor -n foo is the right command. If you
want to monitor foo and bar, you should specify lxc-monitor -n "foo|bar",
if you want to monitor all containers with the name beginning with 'foo',
you have to specify lxc-monitor -n "foo.*". More complex regexp can be specified
in accordance with the POSIX definitions, man regex (7).
2008-10-18 21:07:39 +00:00
dlezcano
848e89275f Updated with the cgroup section and fixed some typos 2008-10-15 07:30:09 +00:00
dlezcano
e704563b6a Updated changelog for version 0.3.0 2008-10-09 18:46:11 +00:00
dlezcano
477080842b Updated changelog 2008-10-09 18:39:34 +00:00
dlezcano
c3f0a28cec Removed useless readlink before chrooting 2008-10-08 14:15:58 +00:00
dlezcano
536b97f0c8 Removed useless opentty function and moved the sighandler restore to the right place 2008-10-08 14:15:17 +00:00
dlezcano
69437d52ec Changed indentation ... :) 2008-10-08 11:39:24 +00:00
dlezcano
86f7d054cd Fix configure error when checking the netlink headers 2008-10-08 11:24:31 +00:00
dlezcano
2ab8e9baa7 Add a command line to setup/retrieve value of cgroup subsystem, lxc-cgroup -n <container name> <subsystem> [value]. If the value is specified, the subsystem is modified, if it is not specified, the value of the subsystem is returned 2008-10-07 14:24:56 +00:00
dlezcano
218d4250a9 Create the cgroup proxy before trying to set it up. 2008-10-07 14:23:25 +00:00
dlezcano
8c6c947549 Fix missing container name, reorder subsystems component 2008-10-07 14:22:49 +00:00
dlezcano
7f118a6c74 Change version to 3.2.0 2008-10-06 18:49:02 +00:00
dlezcano
576f946d78 Add cgroup support, the configuration file should be specified with the format:
lxc.cgroup.xxx = yyy
where xxx is a cgroup subsystem (eg. cpu.shares) and the yyy is the value to
be set.
2008-10-06 18:47:19 +00:00
dlezcano
893c6f54ef Freeze/unfreeze when checkpointing, stop the container when specified with '-s' option 2008-10-06 18:45:20 +00:00
dlezcano
975878a9ea Add x86_64 syscall 2008-10-04 19:48:29 +00:00
dlezcano
22ebac194e Replace asprintf by snprintf 2008-10-04 19:47:17 +00:00
dlezcano
19df00c503 Change freezer to stick with the cgroup freezer fs API, replace "RUNNING" by "THAWED" 2008-09-25 21:20:51 +00:00
dlezcano
ab192b72b6 Changed 'chroot' by 'rootfs' 2008-09-24 16:42:38 +00:00
legoater
935ccedbf2 update restart and fix syscall numbers 2008-09-23 13:08:34 +00:00
legoater
faf67c2a59 fix syscall number 2008-09-23 13:07:57 +00:00
legoater
ba2aee2c1e fixed typo in logs 2008-09-23 13:07:02 +00:00
dlezcano
ab44835ca3 Fixed missing initialization variable 2008-09-19 19:17:50 +00:00
dlezcano
682d7e543c Display a warning when the architecture is not supported for checkpoint/restart. 2008-09-19 11:17:23 +00:00
legoater
925aaa3124 add experimental checkpoint and restart commands 2008-09-19 10:20:04 +00:00
dlezcano
7b40d70f6b If no configuration file is specified or the container was not created before.
The lxc-execute command will automatically create a new container and destroy
it when it dies. If a configuration file is specified and the container does
not exists, the container is created with the configuration file and destroyed
when it dies.
2008-09-19 09:29:58 +00:00
dlezcano
5e30dbead0 Fixed typos 2008-09-19 09:27:37 +00:00
dlezcano
681799f9b3 Added the function returning the version and the corresponding cli 2008-09-17 10:26:16 +00:00
dlezcano
70a591439b Fix using the right file name for the freezer 2008-09-17 10:24:12 +00:00
dlezcano
4345ad0d5f Notify the frozen / running states 2008-09-17 10:23:44 +00:00