How to fstrim on CTs and VMs using the
dir driver regularly?
I can manually stop a VM and
fstrim it via
kpartx -av root.img(see which one of the listed partitions is the one you want to trim)
mount /dev/mapper/loopXpX /mnt/vm-disk
fstrim -v /mnt/vm-disk
kpartx -d root.img(delete the loop device)
but how do I fstrim CTs and VMs on schedule?