[lxc-users] LXD containers lose outbound network -- addendum

Fajar A. Nugraha list at fajar.net
Tue Jun 28 02:52:25 UTC 2016


On Mon, Jun 27, 2016 at 10:05 PM, ronkaluta <rkaluta at gmail.com> wrote:

>
> As a follow up to my last post
> #-----------------------------
> # The network interfaces sometimes get mixed up.
> #-----------------------------
> lxc config edit ${CONTAINER}
> # example
> #--------
> name: x2go1248
> profiles:
> - bridge
> config:
>   volatile.base_image:
> 89715de6a3e329ecb10af529cb81c33c157a5124980dcfab7ecaa5063f4e3a5c
>   volatile.eth0.hwaddr: 00:16:3e:6d:1f:63
>   volatile.eth0.name: eth2                       ##### THIS IS WRONG !!!
> ... eth0 should show twice
>

It's not wrong. You simply don't understand how it works.


volatile.eth0 -> the "eth0" part there should be just a label. Taken from

devices:
>   eth0:
>

... that one.

If you want that label to point to device named "eth0" inside the
container, see
https://github.com/lxc/lxd/blob/master/doc/configuration.md#type-nic

devices:
  eth0:
     name: eth0

You should also be able to use something like this to make it more
informative

devices:
  net_1:
     name: eth0
     host_name: veth-c1-eth0

-- 
Fajar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20160628/684a55c4/attachment-0001.html>


More information about the lxc-users mailing list