Error when setting cpulimit to 0 on web interface

grobs

Active Member
Apr 1, 2016
56
0
26
38
France
Hi,

I'm running Proxmox 4 and would like to set cpu limit to 0 for all my guests in order to let guests use all physical CPU cores.

But, when I go to the web interface, select a VM, go to Ressources > CPU Limit, set CPU Limit to 0 and then apply, I obtain this error message:

Code:
closing file '/sys/fs/cgroup/cpu/lxc/102/cpu.cfs_quota_us' failed - Argument invalide (500)
OK

Sounds like a bug, is'nt it? What could I do to set cpulimit to 0? I'm wondering if setting it by pct command line will work because the man says "-cpulimit number (0 - 128) (default=0)"...

Regards
 
yep, that's a bug. the correct value to set in this case (internally) is -1 . I'll send a bugfix tomorrow. it's only broken for running containers though, so if possible, you can shut them down, set it to 0, and then start them again.