LXD

Install
https://raw.githubusercontent.com/panticz/installit/master/install.lxd.sh

# Add user to group
sudo usermod -a -G lxd ${USER}

Create VM
lxc launch ubuntu:trusty trusty
lxc launch ubuntu:16.04 xenial
lxc launch images:centos/7 centos7
lxc exec xenial bash
lxc delete xenial -f

CLI
lxc list
lxc storage list
lxc image list
lxc image list images: ubuntu

Rootfs
/var/lib/lxd/containers//rootfs

Ansible module
http://docs.ansible.com/ansible/latest/lxd_container_module.html

Configuration
/etc/default/lxd-bridge
/var/lib/lxd/containers//rootfs/config

Containers
https://uk.images.linuxcontainers.org/

Network
lxc config device add container1 eth1 nic name=eth1 nictype=bridged parent=br0

# Fixed IP ?
echo "dhcp-host=xenial,10.135.253.200" >> /etc/lxd/dnsmasq.conf
sed -i 's|LXD_CONFILE=""|LXD_CONFILE="/etc/lxd/dnsmasq.conf"|' /etc/default/lxd-bridge

lxc network show lxdbr0

# cat /etc/dnsmasq.d/lxd
server=/lxd/10.135.253.1
bind-interfaces
except-interface=lxdbr0

Storage
lxc profile device add default root disk path=/ pool=default

Snap
snap install lxd && lxd.migrate

apt install -t -backports lxd lxd-client

Links
https://insights.ubuntu.com/2016/03/22/lxd-2-0-your-first-lxd-container/
https://www.cyberciti.biz/faq/how-to-install-lxd-container-hypervisor-on-ubuntu-16-04-lts-server/
https://lxd.readthedocs.io/en/latest/
https://linuxcontainers.org/lxd/getting-started-cli/
https://help.ubuntu.com/lts/serverguide/lxd.html
https://cloud-images.ubuntu.com/releases/
https://stgraber.org/2016/03/30/lxd-2-0-image-management-512/
https://insights.ubuntu.com/2017/02/14/network-management-with-lxd-2-3/