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

Dan Kegel dank at kegel.com
Tue May 3 23:27:53 UTC 2016

This worked for me:

sudo apt-get install -y lxd
sudo lxd init    #and let it set up ipv4 bridging
REAL_ETHERNET=`ip link | grep UP | egrep -v 'lo:|lxd|lxc|docker|veth'
| awk '{print $2}' | sed 's/://'`
lxc profile device set default eth0 parent $REAL_ETHERNET
lxc profile device set default eth0 nictype macvlan
lxc launch ubuntu: demo
while ! lxc exec demo -- ping -c 1
    sleep 1

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.

More information about the lxc-users mailing list