[lxc-devel] Get rid of lxc-create and lxc-destroy?

Andrian Nord nightnord at gmail.com
Thu Jan 7 15:44:50 UTC 2010


On Thu, Jan 07, 2010 at 03:04:59PM +0100, Michael Holzt wrote:
> Can we get rid of lxc-create and lxc-destroy? Currently the only thing
> lxc-create does is create /var/lib/lxc/<containername> and copy the config
> file into it. This seems like a unnecessary step.
> 
> I propose to remove both binaries. Instead lxc-start (and lxc-execute) will
> search for the config in /etc/lxc/<containername>.conf or could be provided
> with the path to the config file on command line.
> 
> It seems that /var/lib/lxc/<containername> currently only holds the config
> and nothing else, so we can probably get rid of that directory as well.

There was a talk about this already... You may specify desired
configuration directory whatever you whats to via configure switch.

And about where to look for config, there was a few ideas how to handle
this, starting from your idea (LXCPATH/<container-name>.conf) and ending
with handling any possible variants. But Daniel decided to just keep
this case, for simplicity reasons, and as there could be more uses for
LXCCONF/<container-name> directory, just than keeping config (i.e.
keeping fstab file, for those who like it more than lxc.mount.entry, or
other auxillary files created by upper-level scripts).




More information about the lxc-devel mailing list