[SOLVED] Quota issues on Privileged LXC Containers with Quota Enabled

Louis T

New Member
Oct 14, 2024
2
1
3
Germany
Hey,
i installed Proxmox on a KVM Root Server, and since my hoster doesn't allow nested-virtualization, i am limited with using LXC Containers.

I want to install Keyhelp on one of the lxc containers, and Keyhelp requires quota to be enabled and to work, in order for Keyhelp to work properly.

I made it a privileged container and enabled quota. But i cannot get the fstab configuration and quota service to run.

In fstab i configure /dev/loop0 to mount to / since loop0 is my device with my correct storage size configured.

I always get this issue:

Code:
root@keyhelp:~# systemctl start quota
Job for quota.service failed because the control process exited with error code.
See "systemctl status quota.service" and "journalctl -xeu quota.service" for details.


Code:
Oct 14 14:26:23 keyhelp systemd[1]: Starting quota.service - Initial Check File System Quotas...
-- Subject: A start job for unit quota.service has begun execution
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit quota.service has begun execution.
--
-- The job identifier is 143.
Oct 14 14:26:23 keyhelp quota-initial-check.sh[1341]: Checking quotas...
Oct 14 14:26:23 keyhelp quota-initial-check.sh[1347]: quotacheck: error (1) while opening /dev/loop0
Oct 14 14:26:23 keyhelp systemd[1]: quota.service: Main process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- An ExecStart= process belonging to unit quota.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 1.
Oct 14 14:26:23 keyhelp systemd[1]: quota.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit quota.service has entered the 'failed' state with result 'exit-code'.
Oct 14 14:26:23 keyhelp systemd[1]: Failed to start quota.service - Initial Check File System Quotas.
-- Subject: A start job for unit quota.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit quota.service has finished with a failure.
--
-- The job identifier is 143 and the job result is failed.


/etc/fstab
Code:
/dev/loop0 / ext4 defaults,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 0 1



Thanks
 
  • Like
Reactions: Louis T
That was indeed missing.

I tried everything i found online, but that was the last missing piece of the puzzle. Thanks a lot!
Perfect . Please mark your thread as "solved". You can do this by editing your first post and setting the flag.
 
  • Like
Reactions: Louis T