How to auto start LXD containers VM at boot time in Linux

Originally published at: https://www.cyberciti.biz/faq/how-to-auto-start-lxd-containers-at-boot-time-in-linux/

I am using LXD (“Linux container”) based VM. How do I set an LXD container to start on boot in Linux operating system?