On Mon, Jun 27, 2016 at 10:05 PM, ronkaluta <[email protected]> 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
_______________________________________________
lxc-users mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-users