LXD within LXD
From OSM Public Wiki
If you wish to install OSM Release One from inside a LXD container, you will need to enable nesting:
lxc launch ubuntu:16.04 osmr1 -c security.nesting=true -c security.privileged=true lxc exec osmr1 bash
Inside the LXD host container, reconfigure the lxd package in order to setup a network bridge so that nested containers have network access. When prompted, choose the default options.
root@osmr1:~# sudo dpkg-reconfigure -p medium lxd