[lxc-users] lxc 2.0 adding a nic to a container on another vlan (was: access to snapshots from within the containers)

Fajar A. Nugraha list at fajar.net
Fri Jun 16 15:23:30 UTC 2017


On Fri, Jun 16, 2017 at 8:45 PM, Michel Jansens <michel.jansens at ulb.ac.be>
wrote:

> Thanks a lot Fajar,
>
> I did :
>  lxc config device add welcome-lemur eth1 nic nictype=bridged
> parent=brvlan3904 name=eth1
> And ‘brctl show' shows the interface ‘veth41aa07e1’ was added to the
> brvlan3904 bridge.
>
> What I don’t get is where to find the documentation for this. I thought I
> had to look to in “man lxc.container.conf”
>


lxc.container.conf is for old lxc1 configuration.



> but I don’t find any reference to network type ‘bridge' (found macvlan,
> veth,…) …
>
>

Best doc I found is from github:
https://github.com/lxc/lxd/blob/master/doc/configuration.md -> newer lxd
version (e.g. one from xenial-backports)
https://github.com/lxc/lxd/blob/stable-2.0/doc/configuration.md -> 2.0.x
(e.g. default version in ubuntu xenial)

-- 
Fajar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20170616/2c72bd1c/attachment.html>


More information about the lxc-users mailing list