<div dir="ltr">Static IP via DHCP reservations for LXD managed dnsmasq seems to be manageable:<div><br></div><div><div>lxc network create networkname ipv4.address="<a href="http://10.0.1.1/24">10.0.1.1/24</a>" ipv4.nat=true ipv6.address=none</div><div>lxc network attach-profile networkname default eth0</div><div>lxc init xenial containername</div><div>lxc network attach networkname containername eth0</div><div>lxc config device set containername eth0 ipv4.address 10.0.1.10</div></div><div>lxc start containername</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 2, 2017 at 11:32 AM, Yuri Kanivetsky <span dir="ltr"><<a href="mailto:yuri.kanivetsky@gmail.com" target="_blank">yuri.kanivetsky@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
>From what I can see<br>
<br>
<a href="https://github.com/lxc/lxc/blob/lxc-2.0.7/templates/lxc-ubuntu.in#L104" rel="noreferrer" target="_blank">https://github.com/lxc/lxc/<wbr>blob/lxc-2.0.7/templates/lxc-<wbr>ubuntu.in#L104</a><br>
<br>
LXC container by default expects to find DHCP server somewhere on the<br>
network. Which makes me think if I should set up one, which might be<br>
not easy. Or switch container to static ip after creation.<br>
<br>
What do you say?<br>
<br>
Regards,<br>
Yuri<br>
______________________________<wbr>_________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.<wbr>linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.<wbr>org/listinfo/lxc-users</a></blockquote></div><br></div></div>