Comments on How to setup virtual containers with LXC and quota support on Debian 8
Quota support is an often requested feature in lxc. Linux filesystem quota is required when you want to give multiple users access to a container and want to control that one user is not using all the disk space. Quota is also required for web hosting servers, e.g. with ISPConfig 3, for the same reason: one website shall not be able to fill up the whole disk. This howto shows you, how you can use lxc with hard disk quota using qemu nbd with a qcow image file on Debian 8.
4 Comment(s)
Comments
Argh! That's quite an ugly kludge! It is way easier to just hand an LVM volume to the LXC machine, which will mount it as root from its own fstab or from the config file, if so prefered. This is way less convoluted, better performing and more versatile.
Hi
In the preup script you can simplify:
grep 'qemu-nbd' | awk '{ print $2 }With awk '/qemu-nbd/{ print $2 }Being pedantic, it's not a VM, it's a container.... VERY different things.
I like this article. how to use loop to limit the space of a container. But how do you make the disk bigger later if you need it? is this why you are changing the disk to qcow2?