Quoting Shidan ([email protected]):
> In the ubuntu docs (https://help.ubuntu.com/lts/serverguide/lxc.html), it
> says that to set a persistant IP address for containers you can add the
> following to /etc/lxc/dnsmasq.conf
> 
> dhcp-host=lxcmail,10.0.3.100
> dhcp-host=ttrss,10.0.3.101
> 
> I created the dnsmasq.conf file and added the container names I have
> created and nothing happens.
> 
> What would be the proper way to do this. I am using lxc-autostart to start
> the containers.

Hi,

you also need to set

LXC_DHCP_CONFILE=/etc/lxc/dnsmasq.conf

in your /etc/default/lxc-net.  I think that used to be (commented out)
in the shipped file...

-serge
_______________________________________________
lxc-users mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to