Re: [lxc-users] Looking for LXD-2.4.1 Static IP Setup Documentation

2016-10-19 Thread Matt Green
I've been effectively building a network interfaces file and pushing it to the container. I posted my script here: https://www.reddit.com/r/homelab/comments/50s7jz/lxd_automation_script/ I'm in the process of moving my build scripts to python, but that shell script worked. Matt On 19 October 201

Re: [lxc-users] Looking for LXD-2.4.1 Static IP Setup Documentation

2016-10-19 Thread Caleb Everett
https://github.com/lxc/lxd/issues/2050 On Wed, Oct 19, 2016 at 4:37 AM, Nicola Volpini wrote: > Hello > > ATM what I do is either use dnsmasq to provide DHCP or stop the > > container and push a preconfigured interfaces file... > > > > lxc file push interfaces.tmp CONTAINER/etc/network/interface

Re: [lxc-users] Looking for LXD-2.4.1 Static IP Setup Documentation

2016-10-19 Thread Nicola Volpini
Hello > ATM what I do is either use dnsmasq to provide DHCP or stop the > container and push a preconfigured interfaces file... > > lxc file push interfaces.tmp CONTAINER/etc/network/interfaces Same approach we are using, but with Ansible as our "bootstrapper/configurer". I've been successfully ab

Re: [lxc-users] Looking for LXD-2.4.1 Static IP Setup Documentation

2016-10-18 Thread Mark Constable
On 19/10/16 07:10, David Favor wrote: > I'd prefer the "tweak each container config" approach. > Be great if someone could provide a URL for an example. Very hard to impossible to find examples of using lxc config to set the IP of each container and I'm still not sure it's even possible. Can anyo

Re: [lxc-users] Looking for LXD-2.4.1 Static IP Setup Documentation

2016-10-18 Thread David Favor
Mark Constable wrote: On 19/10/16 05:02, David Favor wrote: Looking for best way to change 10.87.167.115 to 144.217.33.224 (static/public IP). Prefer doing this in a way where communication between host/container + container/container works without adding iptables rules, which become complex to

Re: [lxc-users] Looking for LXD-2.4.1 Static IP Setup Documentation

2016-10-18 Thread Mark Constable
On 19/10/16 05:02, David Favor wrote: > Looking for best way to change 10.87.167.115 to 144.217.33.224 > (static/public IP). Prefer doing this in a way where communication > between host/container + container/container works without adding > iptables rules, which become complex to manage with many

[lxc-users] Looking for LXD-2.4.1 Static IP Setup Documentation

2016-10-18 Thread David Favor
Many conflicting suggestions. Looking for documentation for how to accomplish the following. My project consists of migrating 100s of LXC containers to LXD, where each container has a static/public IP. ___ Environment + example test container... net12 # lsb_release -a No LSB modules are ava