Second-Level Quotas for an OpenVZ Container
Been playing lately with Proxmox , a pretty awesome bare-metal virtualization environment sitting on a custom build of Debian that allows the creation of OpenVZ and/or KVM virtual machines.
Anyway, I copied an OpenVZ VM from my VPS provider to a Proxmox OpenVZ Container, and kept running into problems when trying to create users, email accounts, or essentially do almost anything in Webmin (my control panel of choice – free and highly capable):
[setquota: Mountpoint (or device) / not found. setquota: Not all specified mountpoints are using quota.]
Fought with it all evening, but the solution was quite simple. From the HOST (Proxmox system), you just need to enable second-level quotas for the “new” OpenVZ container:
vzctl set 101 --quotaugidlimit 100 --save
vzctl restart 101
Upon restart, presto chango, no more problems with User/Group quotas in the new Proxmox OpenVZ container.
Lots more information here.
The big problem for me was that every search turned up info on DISK quotas, which wasn’t the problem. The search should have been on “second-level quotas” and/or “user and group quotas.” Once I got smart and used either one of those search strings, the answer was pretty quick in coming.
Hope this helps someone else, have an awesome day!
- Paul Rupp