-
Notifications
You must be signed in to change notification settings - Fork 181
default.conf isn't used if container config supplied on lxc >= 1.0.0-alpha3 #222
Comments
Damn... I need to think a bit more about it but regarding the use of I'm not sure if that will play / merge well with other configs defined on the Would you be able to give that a spin? Thanks! |
One more thing I forgot to mention, which you probably already thought of, but which is important to stress: The default version of lxc in current Ubuntu versions also uses The solution with |
New base boxes won't have that I'll provide more information on the PR about those new boxes before merging it in, so let's close this issue for now. Please LMK if you are feeling adventurous and want to try that branch out so I can provide you more information ;-) |
Yup, the new base boxes fix this problem! Also, I like the new base box building scripts. Awesome work, thanks! Much appreciated! 👍 If you ever find yourself in Munich, come by and drink some beer with us at @mayflower. 🍻 |
Thanks for the feedback! I'm hoping that they will also make things easier and less "ubuntu specific" so we can have a broader distro support 😄 🍻 |
is there a chance to bypass /etc/lxc/default.conf and assign a special one, maybe by an environment variable or specific setting in vagrantfile? we need a special network configuration only for vagrant lxc guests, e.g. setting multiple ethernet addresses and so we have to create the whole network configuration in Vagrantfile, which isn't possible if default values from /etc/lxc/default.conf are read in |
@hamann The only way I can think of skipping the default configs would be to pass in a blank file to the If that doesn't work, please create a new issue so we can discuss that! |
We're using
/etc/lxc/default.conf
on our host machines to provision the network setup for eachvagrant-lxc
container. In newervagrant-lxc
versions, the template container config from the basebox is supplied tolxc-create
with-f
.In lxc versions
>= 1.0.0-alpha3
due to commit lxc/lxc@6c6892b instead of usingsave_config()
which would seed the containers lxc.config withdefault.conf
, lxc will now just load the supplied config file.I'm not sure how to resolve this. Was it the intention of
vagrant-lxc
to use/etc/lxc/default.conf
at all and should this behaviour be maintained on thevagrant-lxc
side? Or should this actually be a bug in lxc itself because looking the commit message the behaviour was probably changed unintentionally?We could use
lxc.customize
to add the network interface settings, but the config could differ depending on the host machine because we're not using the standardlxcbr0
interface. We would like to keep machine-dependent settings outside theVagrantfile
.I've come up with a solution in fpletz@3b20795 that would append the template config in
vagrant-lxc
code, but it's not very pretty because root privileges are needed and I just wanted to get it working to find other issues with current lxc versions, hence no PR for now. 😄The text was updated successfully, but these errors were encountered: