...
Create a dnsmasq.conf file where you may reserve IP Addresses based on server names,
... refer to the LXC instructions until incorporated here...
...
Code Block | ||
---|---|---|
| ||
sudo cp /etc/default/lxd-bridge /etc/default/lxd-bridge.ori # This line does not work yet, I need lookup how to escape the /. # EDIT: should work now - samir sudo sed -i 's/LXD_CONFILE=""/LXD_CONFILE="\/opt\/lxd\/dnsmasq.conf"/' /etc/default/lxd-bridge |
Restart the services to make sure things went well,
Code Block | ||
---|---|---|
| ||
sudo service lxd-bridge stop sudo service lxd-bridge start |
Reference
http://jason.trickett.us/2016/08/lxd-containers-static-ip-addresses-heres/ - Source article for this but missing some details on changing the default range otherwise you'll end up with collisions.