How to enable "discard" option in Windows KVM.

dsh

Well-Known Member
Jul 6, 2016
45
3
48
35
Hello,

I have a windows 10 VM that I created about 3 years ago. I have allocated it single 2TB disk and uses about 40% of it.

I can't select "Discard option" somehow.

My host system runs 4x1tb SSD in ZFS (Striped Mirrored) which allows 2TB.

My ZFS pool show over 95% usage and I would like to minimize as Windows uses only 40%.


Can somebody instruct me step by step?

Thanks in advance.Screenshot from 2019-07-28 19-54-59.png

Screenshot from 2019-07-28 19-54-44.png
 
I think you need virtio scsi and not virtio.

Remove the disk and re-add it with virtio-scsi, then you should be able to enable trim/discard

After you enabled discard run "disk optimisation" within windows. Then you should see free storage.
 
  • Like
Reactions: dsh
Thanks to you after updating I can enable "discard" option.

Now that I enabled what's next step for windows 10 VM?
 

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!