[lxc-devel] Q: general lxc architecture
Daniel Lezcano
daniel.lezcano at free.fr
Tue Nov 10 20:40:46 UTC 2009
Andrian Nord wrote:
> On Tue, Nov 10, 2009 at 11:35:48AM +0100, Daniel Lezcano wrote:
>
>> Hi Michael,
>>
>> (cc'ed lxc-devel@)
>>
>> Your analysis is correct :)
>> This is something we are enhancing. The different files in
>> /var/lib/lxc/* were removed and only the config file is stored now.
>>
>> You can check the repository:
>> http://lxc.git.sourceforge.net/git/gitweb.cgi?p=lxc/lxc;a=shortlog
>>
>>
>
> Heh, about that: what about new release anytime soon? Current stable
> version, IMO, rather unusable, but our distro maintainers refuses to add
> any live packages into tree (Gentoo).
>
There are a set of things I would like to finish before releasing a new
version:
* finish with the /var/lxc/* cleanup and maybe change lxc-create and
lxc-destroy to a simple wrapper script doing roughly cp and rm.
* launch containers without creating it (not persistent in the system).
* check and fix the lxc-debian and lxc-sshd to match the recent
modifications around the /var/lxc/*
* update the man pages
* and do some more testing ...
> And yes, maybe it will be more logical to keep configs into /etc/lxc/?
>
Yes, that makes sense with the cleanup of /var/lxc. But there are some
clarifications to do around the owner of a container.
eg. shall we let only root to create the containers and assign
permissions to it so a non-root user can use it ?
> Or, maybe, just use --with-config-path=/some/path switch into configure,
> which could be overridden as user wants to? Something like this one (in
> assumption, that this is up to user to create corresponding directory):
>
> (I should write this anytime when I want to post patch?)
>
> Signed-off-by: Andrian Nord <NightNord at gmail.com>
>
I am fine with this patch, is it tested ? Shall I take it ?
> diff --git a/configure.ac b/configure.ac
> index a9ca211..5e4ac46 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -33,9 +33,15 @@ AS_AC_EXPAND(LIBEXECDIR, $libexecdir)
> AS_AC_EXPAND(SYSCONFDIR, $sysconfdir)
> AS_AC_EXPAND(DATADIR, $datadir)
> AS_AC_EXPAND(LOCALSTATEDIR, $localstatedir)
> -AS_AC_EXPAND(LXCPATH, "${localstatedir}/lib/lxc")
> -AS_AC_EXPAND(LXC_GENERATE_DATE, "$(date)")
>
> +AC_ARG_WITH([config-path],
> + [AC_HELP_STRING(
> + [--with-config-path=dir],
> + [lxc configuration repository]
> + )], [], [with_config_path="${localstatedir}/lib/lxc"])
> +
> +AS_AC_EXPAND(LXC_GENERATE_DATE, "$(date)")
> +AS_AC_EXPAND(LXCPATH, "${with_config_path}")
> AH_TEMPLATE([LXCPATH], [lxc configuration repository])
> AH_TEMPLATE([LXCLIBEXECDIR], [lxc executable library path])
> AC_DEFINE_UNQUOTED(LXCPATH, "$LXCPATH")
>
More information about the lxc-devel
mailing list