kvm

Getting the discard operation is not supported when running fstrim on a kvm guest? Make sure to

  • use virtio-scsi
  • pass discard='unmap' to the disk driver
  • use a machine type >= 2.1, e.g. pc-i440fx-2.3