[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!
 
  • Like
Reactions: fireon
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

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!