Is it possible to name/rename veth interface names?


(Peter Gloor) #1

Is there a way to name/rename veth network device names like it was possible for privileged containers in LXC with I would rather prefer to use something like veth-c-001 instead of those cryptic names like vethV9NWGM.

If it's not possible, just let me know, so I don't have to do further research. I can live without it, but in case it's possible it would be nice to know.

(Stéphane Graber) #2

lxc config device add c1 eth0 nic nictype=bridged parent=lxdbr0 name=eth0 host_name=veth-c1

(Andreas Cordes) #3

Hi, so this per container, right?
Is it also possible to use variables in the default profile to avoid specific “per container” configs?

kind regards