[lxc-users] rename veth interfaces on the host

Spike spike at drba.org
Tue Mar 7 22:26:32 UTC 2017


ah, thanks, I had seen that help output from trying illegal commands but
somehow I missed the obvious - reading is hard at times.

good tip on abbreviating the names, love the insights of people who have
done it before, experience ftw.

thanks,

Spike

On Tue, Mar 7, 2017 at 1:57 PM Fajar A. Nugraha <list at fajar.net> wrote:

> On Tue, Mar 7, 2017 at 11:51 PM, Spike <spike at drba.org> wrote:
>
> thanks Fajar, that worked perfectly. That said, I'm still very new to
> lxd/lxc and the only way I could get that done was to run:
>
> lxc config edit <container>
>
> how would I have set the property for the device? I tried:
>
>
>
> Did you try "lxc help config"? It should print
>
> ...
> lxc config device set [<remote>:]<container> <device> <key> <value>
>     Set a device property.
> ...
>
>
>
> lxc config device set x1 eth0.host_name = veth_c1_eth0
>
> but that didn't work and I got back "The device doesn't exist". However
> this did list eth0 as a device:
>
>
> lxc config device set x1 eth0 host_name veth_c1_eth0
>
> One practical tip: since interface names are limited in length, I usually
> abbreviate them to something like "v_c1_0" to give more room to include
> container name.
>
> --
> Fajar
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20170307/a6fb3602/attachment.html>


More information about the lxc-users mailing list