In this video we discussed errors that you may encounter with LXD both on QNAP NAS and even on other LXD hosts. The problem is a lack of properly allocated resources.
On your QNAP NAS or other LXD host, ssh to the system. On a QNAP NAS, be sure to use the admin account for privileged settings.
To see the values of current “inotify” variables:
sysctl fs.inotify
My recommendations are these settings:
The commands to make these new settings are:
sysctl -w fs.inotify.max_queued_events=32768
sysctl -w fs.inotify.max_user_instances=512
sysctl -w fs.inotify.max_user_watches=524288
In the second part of the video, I described how to solve a problem whereby some LXD containers were not showing in container station. To fix this, you will want to set the image OS type and release version from the command line:
lxc config set Fileportal image.os=ubuntu
lxc config set Fileportal image.release=focal
In the above example, I am setting the OS type and release for a container named “Fileportal”. Once this was completed, the container that was not showing in Container Station became visible.