In Hyper-V, if i want to shrink a vhdx runnig i.e. Ubuntu as guest os, i can shrink the virtual disk by first setting all unused blocks to 0 with sudo fstrim /, shut the vm down and on Powershell run Optimize-VHD virtualdisk.vhdx -Mode Full. Optimize-VHD obv. works by detecting all unused blocks (zeros) which is why fstrim is needed. I have done this a good number of times and it always worked fast and smooth.
Not knowing how this and how virtual disks are working in detail and with no intention for a A is better than B discussion, I'm wondering why this approach wouldn't work with proxmox or better said with the virtual disks we are using in proxmox. It would be a very nice feature to have, as the "gold standard" with cloning to a reduced size disk is just more work and not integrated into the proxmos UI. Again, I'm not complaining, just trying to understand if this is more a "we haven't tried it" or a "can't be done" or a "other things are more imporant" or "...." "issue".
Not knowing how this and how virtual disks are working in detail and with no intention for a A is better than B discussion, I'm wondering why this approach wouldn't work with proxmox or better said with the virtual disks we are using in proxmox. It would be a very nice feature to have, as the "gold standard" with cloning to a reduced size disk is just more work and not integrated into the proxmos UI. Again, I'm not complaining, just trying to understand if this is more a "we haven't tried it" or a "can't be done" or a "other things are more imporant" or "...." "issue".
Last edited: