I am trying to set the proper settings for LXD, hence I assume I need to configure the host OS.
Am I assuming correctly or these need to be changed in the containers too?
If on the host, are the automatically raised values found somewhere else?
I usually apply these settings at host level, the ulimits configurations and also the sysctl ones. They are probably raised inside the snap filesystem (not visible on host due to snap mount namespacing)
Regarding those values for containers, you don’t need to apply them for your containers automatically (and you won’t be able to do it from the inside of your containers), but you can tweak them on a per-container basis depending on your use-cases using LXD command-line.
Thank you @stgraber. Is there any command we can use to verify LXD is successfully setting those parameters the way we like them and/or to modify the settings?