[lxc-users] rename veth interfaces on the host

Guido Jäkel G.Jaekel at DNB.DE
Tue Mar 7 16:31:58 UTC 2017


On 07.03.2017 17:11, Fajar A. Nugraha wrote:
> On Tue, Mar 7, 2017 at 10:32 PM, Spike <spike at drba.org> wrote:
> 
>> Dear all,
>>
>> I'm using bridged mode for networking and would love to be able to tell
>> which veth is which on the host by using more meaningful names. This would
>> also very useful for monitoring and debugging.
>>
>> I found some docs suggesting that it can be done, but only for privileged
>> containers. Is that the case? Is it not possible at all for unprivileged
>> ones?
>>
>>
> Short version: use lxd, set 'host_name' on the container interface config.
> 
> You could probably do the same for root-owned, unpriv plain-lxc containers
> (haven't test this though).

And in terms of LXC, use the  lxc.network.veth.pair  config parameter.


More information about the lxc-users mailing list