I’m new to LXC and I keep having trouble with lxc-net. When I boot the host machine, somtimes (but not always!) the lxc-net.service fails to start up, it seems. Starting a container then the network connection fails after a few seconds on both, host and container. When I do “sudo systemctl restart lxc-net.service” everythin works fine then.
I set up a bridge device on my host ‘lxcbr0’ with fixed ip host os ist debian stretch.
I found an interesting output of ip r
When start-up fails, the fist line of ip r reads “default dev vethNF59YH scope link” and on succes it’s “default via 172.16.240.5 dev enp0s25”
Any ideas? If you need any config files, just tell me which.
Thanks, and greetings from Essen, Germany
Edit says: LXC version is 2.0.7