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

Caleb Everett caleb at calebeverett.io
Tue May 3 23:29:28 UTC 2016


Hi not sure how far up the learning curve you're starting, but if you're
looking for something that helped me from baby steps, I found these videos
- they are from the prior lxc- implementation, but the concepts were
similar.

https://www.youtube.com/watch?v=2EwFkOrZ7I8

Here also is a bash script I put together to start a container with nodejs
installed, with a host folder mounted and a static ip address for local
development.  There is undoubtedly a more elegant way to do this (I was
curious about doing some of this in the seeding files, but hadn't figured
that out and this worked), but you can see how the interfaces.d and
resolv.conf files are updated.

https://gist.github.com/CalebEverett/aef682acf6988bbc44d9d8196f222355

Also, after you do the initial init, you have to explicitly tell LXD that
you want it to listen over the network. There are a couple of keys that
make that happen:

Check out "networking configuration" under "More Daemon Configuration" in
this post:

https://www.stgraber.org/2016/03/15/lxd-2-0-installing-and-configuring-lxd-212/




On Tue, May 3, 2016 at 4:12 PM, Dan Kegel <dank at kegel.com> wrote:

> What's the best overview of lxd networking?  is it still
> https://insights.ubuntu.com/2016/04/07/lxd-networking-lxdbr0-explained/
> ?
>
> I would expect
> https://www.stgraber.org/2016/03/11/lxd-2-0-blog-post-series-012/
> to have an lxd networking page, but it doesn't so far.
>
> I haven't had much luck using lxd-init to set up working networking;
> the containers I create do get IP addresses, but end up with empty
> /etc/resolv.conf files
> and can't ping.  Nor can I ssh into them, even though openssh-server
> is installed.
>
> Sigh.  It's like lxd is a book by Nabokov, and the jokes are all going
> over my head.
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20160503/c9e3e172/attachment.html>


More information about the lxc-users mailing list