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 <l...@fajar.net> wrote:

> On Tue, Mar 7, 2017 at 11:51 PM, Spike <sp...@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@lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
_______________________________________________
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to