<div dir="ltr">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:<div><br></div><div>lxc config edit <container></div><div><br></div><div>how would I have set the property for the device? I tried:</div><div><br></div><div>lxc config device set x1 eth0.host_name = veth_c1_eth0</div><div><br></div><div>but that didn't work and I got back "The device doesn't exist". However this did list eth0 as a device:</div><div><br></div><div>lxc config device list c1<br><div>eth0: nic</div><div>eth1: nic</div><div><br></div><div>thanks,</div><div><br></div><div>Spike</div><div><br></div><div class="gmail_quote"><div dir="ltr">On Tue, Mar 7, 2017 at 8:11 AM Fajar A. Nugraha <<a href="mailto:list@fajar.net">list@fajar.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg"><div class="gmail_extra gmail_msg"><div class="gmail_quote gmail_msg">On Tue, Mar 7, 2017 at 10:32 PM, Spike <span dir="ltr" class="gmail_msg"><<a href="mailto:spike@drba.org" class="gmail_msg" target="_blank">spike@drba.org</a>></span> wrote:<br class="gmail_msg"><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg">Dear all,<div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">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.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">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?</div><div class="gmail_msg"><br class="gmail_msg"></div></div></blockquote><div class="gmail_msg"><br class="gmail_msg"></div></div></div></div><div dir="ltr" class="gmail_msg"><div class="gmail_extra gmail_msg"><div class="gmail_quote gmail_msg"><div class="gmail_msg">Short version: use lxd, set 'host_name' on the container interface config.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">You could probably do the same for root-owned, unpriv plain-lxc containers (haven't test this though).</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">-- </div><div class="gmail_msg">Fajar</div></div></div></div>
_______________________________________________<br class="gmail_msg">
lxc-users mailing list<br class="gmail_msg">
<a href="mailto:lxc-users@lists.linuxcontainers.org" class="gmail_msg" target="_blank">lxc-users@lists.linuxcontainers.org</a><br class="gmail_msg">
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a></blockquote></div></div></div>