Sosreport is a tool used by support teams from multiple companies (Canonical, Red Hat, more) as the first pass to get enough information to help support a customer problem. Ideally we want it to capture all the info we will need in 90%+ of cases.
You can view the current plugin here: but I’ll break it out as well: https://github.com/sosreport/sos/blob/master/sos/plugins/lxd.py
More for DEB-based LXD 3.0 - Is DEB based LXD deprecated at this point?
/var/lib/lxd/database/global/* - is this actually helpful or can we be more selective? See 1921
For snap based we don’t have a current list, so help definitely needed, but maybe:
lxc image list
lxc network list
lxc profile list
lxc storage list
And we also do a “find /var/lib/lxd -maxdepth 2 -type d -ls” which we may change to just a recursive ls for all lxd related directories. Are we missing anything key, or can we reduce anything? Thanks!