[lxc-users] Configuring interfaces with unprivileged containers

Heena Sirwani heenasirwani at gmail.com
Fri Jun 3 12:50:48 UTC 2016


Hi,
I was trying to configure a container to behave as a router by connecting
one of its interfaces to a bridge that connects it to the internet and
another interface bridged to provide a private network to devices. I was
able to do this in a privileged container. In an unprivileged container, it
says unable to configure network. I would like to ask, how will I be able
to configure interfaces for a privileged container?

The error logs are something like this:
            lxc 1464950278.448 ERROR    lxc_start - start.c:lxc_spawn:1047
- failed to create the configured network
            lxc 1464950278.448 ERROR    lxc_start -
start.c:__lxc_start:1213 - failed to spawn 'test1'

And my configs are something like these:
lxc.network.type = veth
lxc.network.link = br0
lxc.network.flags = up
lxc.network.hwaddr = 00:16:3e:xx:xx:xx

lxc.network.type = veth
lxc.network.link = br5
lxc.network.flags = up
lxc.network.hwaddr = 00:16:3e:xx:xx:xx

Am I missing something?

Thanks,
Heena
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20160603/8bde33fa/attachment.html>


More information about the lxc-users mailing list