With some hacking with systemd, now lxd image boots and GUI is available. Some refinements are needed. Known issues:
1. lxc tries to write client.srt to /root/.config/lxc, which should be read-only by default. Add --force-local to every lxc command invoked fixes this issue.
2. Currently I'm launching lxd container via `lxc launch -e ...`, but it would be nice if that's somehow covered by lxd daemon. Don't know if it's possible to create an ephemeral yet autostart container in a formal way.
3. wifi/bluetooth is not available at boot because urfkill starts before the container. Need a manual restart to urfkill.
With some hacking with systemd, now lxd image boots and GUI is available. Some refinements are needed. Known issues:
1. lxc tries to write client.srt to /root/.config/lxc, which should be read-only by default. Add --force-local to every lxc command invoked fixes this issue.
2. Currently I'm launching lxd container via `lxc launch -e ...`, but it would be nice if that's somehow covered by lxd daemon. Don't know if it's possible to create an ephemeral yet autostart container in a formal way.
3. wifi/bluetooth is not available at boot because urfkill starts before the container. Need a manual restart to urfkill.