[lxc-users] lxd "hello, network"?

Dan Kegel dank at kegel.com
Wed May 4 15:18:05 UTC 2016


On Tue, May 3, 2016 at 10:08 PM, Fajar A. Nugraha <list at fajar.net> wrote:
>> I haven't had much luck using lxd-init to set up working networking...
>
> dpkg-reconfigure -p medium lxd

That's about the same as lxd-init, isn't it?

> Note that it does not perform verification, so for example, if you put
> 10.0.3.1 as bridge IP address but use 192.168.0.100 as DHCP start IP,
> dnsmasq would simply won't start. Which might explain the problem you
> experienced.

I'm pretty sure my problem is I was trying to fully script everything
from zero, and didn't know how to script "sudo lxd init".  I used its --auto
flag, and all the options it provides, but didn't realize that meant I
had to set up the bridge manually.  None of the doc I've seen
actually shows the exact commands to script what lxd init does,
or at least shows them in a way that's easy for an idiot to recognise.
(I'm sure somebody who is fluent in linux bridges would say "not needed,
it's obvious" :-)
- Dan


More information about the lxc-users mailing list