[lxc-users] set "lxc.aa_allow_incomplete = 1" - where do I add it for lxd?

Serge Hallyn serge.hallyn at ubuntu.com
Tue Oct 27 14:36:44 UTC 2015


Quoting Tomasz Chmielewski (mangoo at wpkg.org):
> Thanks, it worked.
> 
> How do I set other "lxc-style" values in lxd, like for example:
> 
> lxc.network.ipv4 = 10.0.12.2/24
> lxc.network.ipv4.gateway = 10.0.12.1
> lxc.network.ipv6 = 1111:2222:3333:4444::55
> lxc.network.ipv6.gateway = 1111:2345:6789:aaaa::2

You need to set a single lxc.raw to the whole multi-line value.

> Same "lxc config set containername", i.e.:
> 
> lxc config set x1 raw.lxc "lxc.network.ipv4 = 10.0.12.2/24"
> lxc config set x1 raw.lxc "lxc.network.ipv4.gateway = 10.0.12.1"
> lxc config set x1 raw.lxc "lxc.network.ipv6 = 1111:2222:3333:4444::55"
> lxc config set x1 raw.lxc "lxc.network.ipv6.gateway =
> 1111:2345:6789:aaaa::2"
> 
> 
> Or is there some other, more recommended way?

Can you show fully what you want to do?  Are you aiming for a
routed config, or are you moidfying a bridged nic device?

for the simple case you'd do

lxc config device add eth1 nic nictype=bridged hwaddr=...

but the things you want to set are not implemented.  They ought to
be, though.  Would you mind opening an issue at
	github.com/lxc/lxd/issues
listing all the things you need?  (I'd like to first have stgraber
specify detailed configuration to make sure I don't come up with bad
keys that later become ambiguous or something)

> Tomasz


More information about the lxc-users mailing list