Shell script to setup an LXD (Linux Containers) VM lab for testing purpose

Originally published at: http://bash.cyberciti.biz/virtualization/shell-script-to-setup-an-lxd-linux-containers-vm-lab-for-testing-purpose/

A sample shell script to build an LXD (Linux Containers) VM lab on Ubuntu Linux 16.04 LTS server.