[lxc-users] lxd networking - how to rid containers of lxcbr0

jjs - mainphrame jake at mainphrame.com
Wed Mar 23 03:41:42 UTC 2016


Thanks for the feedback - Editing /etc/default/lxc-net in the ct solved the
problem. That's one I won't forget.

Regards,

Jake

On Tue, Mar 22, 2016 at 8:30 PM, Stéphane Graber <stgraber at ubuntu.com>
wrote:

> On Tue, Mar 22, 2016 at 08:08:53PM -0700, jjs - mainphrame wrote:
> > I'm starting to do some testing with servers under lxd, and am confounded
> > by the inability to configure networking as desired. Obviously I'm
> missing
> > some elementary step here.
> >
> > For all my lxc servers, I could edit /var/lib/lxc/<ct name>/config and
> > voila - full control over the network modes and devices per container, or
> > edit /etc/lxc/default.conf for defaults.
> >
> > With lxd, I can't seem to get rid of lxcbr0 -
> >
> > "lxc profile edit default" - set nictype to "bridged" & got rid of
> lxcbr0,
> > setting parent to "br0"
> >
> > Saved the following configuration:
> >
> > name: default
> > config: {}
> > description: Default LXD profile
> > devices:
> >   eth0:
> >     name: eth0
> >     nictype: bridged
> >     parent: br0
> >     type: nic
> >
> > I create a container: "lxc launch ubuntu:618ab2ddf554 first"
> >
> > and "lxc list" shows this:
> >
> >
> +-------+---------+--------------------------------+------+------------+-----------+
> > | NAME  |  STATE  |              IPV4              | IPV6 |    TYPE    |
> > SNAPSHOTS |
> >
> +-------+---------+--------------------------------+------+------------+-----------+
> > | first | RUNNING | 192.168.111.247 (eth0)         |      | PERSISTENT |
> 0
> >         |
> > |       |         | 10.0.3.1 (lxcbr0)              |      |            |
> >         |
> >
> +-------+---------+--------------------------------+------+------------+-----------+
> >
> > Why is lxcbr0 there? Is it possible to get rid of it?
>
> That lxcbr0 is INSIDE the container, not on the host.
>
> >
> > Puzzled,
> >
> > Jake
>
> > _______________________________________________
> > lxc-users mailing list
> > lxc-users at lists.linuxcontainers.org
> > http://lists.linuxcontainers.org/listinfo/lxc-users
>
>
> --
> Stéphane Graber
> Ubuntu developer
> http://www.ubuntu.com
>
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20160322/4b07843c/attachment.html>


More information about the lxc-users mailing list