How to preconfigure LXD containers with cloud-init

The original post here is now obsolete and it has been replaced by the following: Simos Xenitellis