Increase open file limit in LXC

Grasmachien

New Member
Mar 21, 2025
1
0
1
Hi all,

I am running a qbittorrent LXC with 2281 torrents and started getting issues with specific torrents going into error mode.
Rechecking the files sometimes works, sometimes not.
The files are there and they are not corrupted.
Restarting the LXC fixes the issue.

After some searching I found out it might be because the ulimit in my LXC is set to 1024.
I added the following line in the config of the LXC:
Code:
lxc.prlimit.nofile: 60000
Then I rebooted the LXC, but it did not change anything because ulimit -a still returns 1024 for open files.

Lots of other people seem to have asked this question but I either do not completely understand what the fix is or it is not compatibel with Proxmox 9 where there is no /etc/sysctl.conf file.

Could someone help me on the right path?