Issue with lxc-net
by chris.willing from LinuxQuestions.org on (#53X8P)
For a long time I've been using my own mechanism for creating a bridge & running dnsmasq to enable networking for my LXC containers. I had seen lxc-net mentioned by others but never bothered with it because I had a system that worked well without it.
Recently I've had some time to finally look at lxc-net. It works quite well except that it specifies a strange place for dnsmasq's lease directory, namely /var/lib/misc/ which does not exist in a stock Slackware 14.2 (nor -current) - resulting in lxc-net failure. I can just create this directory beforehand and then lxc-net works but it somehow seems wrong. Instead, I've modified lxc-net to use the default leases directory specified in /etc/dnsmasq.conf i.e. /var/state/dnsmasq/
What are other lxc-net users doing about this?
chris


Recently I've had some time to finally look at lxc-net. It works quite well except that it specifies a strange place for dnsmasq's lease directory, namely /var/lib/misc/ which does not exist in a stock Slackware 14.2 (nor -current) - resulting in lxc-net failure. I can just create this directory beforehand and then lxc-net works but it somehow seems wrong. Instead, I've modified lxc-net to use the default leases directory specified in /etc/dnsmasq.conf i.e. /var/state/dnsmasq/
What are other lxc-net users doing about this?
chris