How to install and setup LXD on Fedora Linux server

Originally published at: https://www.cyberciti.biz/faq/how-to-install-setup-lxd-on-fedora-linux/

I set up a brand new Fedora Linux server in the cloud. How can I install and setup LXD on Fedora Linux? How do I create my first VM using LXD?