[lxc-users] Setting lxc.network.veth.pair

Peter Steele pwsteele at gmail.com
Sun Aug 30 20:51:58 UTC 2015


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.



More information about the lxc-users mailing list