DanTheMan827 Posted April 23, 2021 Share Posted April 23, 2021 KVM supports having sparse VM disks along with marking regions as sparse when the guest VM trims the virtual disk. Exposing this in the web UI would be quite useful for people storing VMs on an SSD. Quote Link to comment
itimpi Posted April 23, 2021 Share Posted April 23, 2021 What do you think should be shown in the GUI? Vdisks created for VMs are already sparse under unRaid. Quote Link to comment
CobraPL Posted February 13, 2022 Share Posted February 13, 2022 Hmm, I've created 72GB VM and installed Srv2022Std. Image should be few GBs on cache drive and but it is 72GB. Sparse images should grow with data written and should have option to shrink/compact them, especially after using "sdelete -z" on VM. Exactly like in Virtualbox and VMWare. How to enable such option? Quote Link to comment
JonathanM Posted February 14, 2022 Share Posted February 14, 2022 21 hours ago, CobraPL said: Image should be few GBs on cache drive and but it is 72GB. How are you viewing that? To see the allocated size, use the console and du -sk /path/to/image/vdisk.img and see what it reports. Quote Link to comment
Squid Posted February 14, 2022 Share Posted February 14, 2022 13 minutes ago, JonathanM said: It's enabled by default. No it's not. The are still technically "sparse", but will always eventually grow to the maximum size of the vdisk and never shrink, won't be trimmed etc (ie: as you add files to the VM, the image will grow, but when you delete files it won't shrink. You eventually (shortly) get to a point where the vdisk is the maximum size and stays there forever To enable this, you need to do (and as a bonus, write performance will also increase) Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.