ulimits doesn't work in KVM

WolFree

New Member
Sep 5, 2016
2
0
1
37
Hi Guys,

we are using Proxmox Virtual Environment 4.2-17/e1400248 and we have a problem with our KVM guest. We want to raise the nofile limit but we cannot make it work.

We already have:

- edited the limits.conf in the /etc/security folder on the guest (for root and *)
- edited the limits.conf in the /etc/security folder on the host (for root and *)
- raise sysctl fs.inotify limits
- edited the guest.conf file in pve folder and added max_files=32768

ulimit still give me 1024. It's the first time that I am trying to raise this limits on a KVM machine - and I cannot figure it out.

Anyone have a solution? Temporary raising in my shell is working, but I need it when I boot the VM.
 
Hi manu,

thanks for your reply. I already did every step in the thread you posted before posting here :-) Still no changing.