[lxc-devel] Configuration question?

Daniel Lezcano daniel.lezcano at free.fr
Tue Jan 26 20:18:35 UTC 2010


Michael H. Warfield wrote:
> I'm working on some scripts and I have a configuration question.  Yes I
> could probably read the code and figure out the answers for myself or
> just blindly try it but I figure if I ask here someone could say "no
> don't do that" or "hey that's not a bad idea" before I go charging
> ahead.
> 
> Put simply...  Is is possible / permissible to add configuration
> variables to the config file?  I've been converting containers over from
> OpenVZ and there's some odd flags and values I would like to stuff in
> there.  Things like "ONBOOT" and "DESCRIPTION" from the OpenVZ file.  Is
> lxc-start and friends just going to ignore extraneous (to them)
> configuration options or are they going to complain or blow chunks?

It will complain.

> If it's possible, is there a convention you would like followed.  I'm
> thinking along this lines of this for those two examples:
> 
> lxc.onboot = yes|no [default no]
> lxc.description = "Arbitrary String"
> 
> Yes?  No?  Maybe?  Hell no?

I am not sure to understand. Can you elaborate a bit ?
Do you want to define some environment variables for the container via 
the lxc configuration file ? Or are these configuration variables 
specific (I don't know OpenVZ except by its name) ?






More information about the lxc-devel mailing list