Static IP via DHCP reservations for LXD managed dnsmasq seems to be
manageable:

lxc network create networkname ipv4.address="10.0.1.1/24" ipv4.nat=true
ipv6.address=none
lxc network attach-profile networkname default eth0
lxc init xenial containername
lxc network attach networkname containername eth0
lxc config device set containername eth0 ipv4.address 10.0.1.10
lxc start containername

On Thu, Mar 2, 2017 at 11:32 AM, Yuri Kanivetsky <[email protected]>
wrote:

> Hi,
>
> From what I can see
>
> https://github.com/lxc/lxc/blob/lxc-2.0.7/templates/lxc-ubuntu.in#L104
>
> LXC container by default expects to find DHCP server somewhere on the
> network. Which makes me think if I should set up one, which might be
> not easy. Or switch container to static ip after creation.
>
> What do you say?
>
> Regards,
> Yuri
> _______________________________________________
> lxc-users mailing list
> [email protected]
> http://lists.linuxcontainers.org/listinfo/lxc-users
_______________________________________________
lxc-users mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to