Hi Peter, lxc.network.type = veth lxc.network.veth.pair = veth0
Should be enough in your container configuration file (config) Also, you can make sure there is no related entries in lxc.conf and default.conf . lxc.network.veth.pair cannot be set when using Unprivileged container But you can assign your own mac address by using : lxc.network.hwaddr = <MAC_ADDRESS> Cordialement, De: "Peter Steele" <[email protected]> À: "lxc-users" <[email protected]> Envoyé: Dimanche 30 Août 2015 16:51:58 Objet: [lxc-users] Setting lxc.network.veth.pair I want to pick my own naming convention for the veth interfaces created by LXC rather than using the auto-generated names. I tried adding the entry lxc.network.veth.pair = veth0 in one of my privileged containers but it still get a random name of 'veth6HIE0A' instead of eth0. Am I mistaken as to how this is supposed to work. Ideally I would like to see something like 'veth0-<container-name>' but 'vethN' when N either is assigned automatically when containers are started or alternatively where I set N myself in the container's config. What's possible and what's not? Thanks. _______________________________________________ lxc-users mailing list [email protected] http://lists.linuxcontainers.org/listinfo/lxc-users
_______________________________________________ lxc-users mailing list [email protected] http://lists.linuxcontainers.org/listinfo/lxc-users
