Unattended LXD setup

LXD requires an interactive tty by default. For non-interactive setup, something like this should be executed:

Then, apt-get install lxd and you’ll have a configured lxd just as if you had interactively configured it !