On Fri, 16 May 2025 11:50:41 +0100 Richmond <dnomh...@gmx.com> wrote: > > Recently I created a virtual machine with qemu and virt-manager, and > unknown to me by default it creates the virtual disk in /var. As this > was not on its own partion but in the same as / it happily filled the > root partition and I got into a mess.
They are somewhere below /var/lib/libvirt by default AFAIR. > /var can grow significantly over time due to logs, databases, and > other persistent services, so I can understand why someone might put > it on its own partition. I'd recommend to use lvm and emulate partitions as logical volumes. There is a bunch of folders below /var which might deserve their own partitions or LVs for good reasons, of course at user's choice: /var/cache /var/cache/apt /var/lib /var/lib/libvirt /var/log /var/mail /var/tmp /var/www The rule of thumb is: if a user or the system is capable of writing, then consider to use a separate partition or LV. You can use one big partition or LV for all of them and assemble the system with the bind option of mount - but this is for advanced users. This way it is easy to backup the volatile data including /home of user(s). -- kind regards Frank
pgp79fH1cAbTq.pgp
Description: OpenPGP digital signature