Sparse VM disks


Recommended Posts

  • 9 months later...

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?

Link to comment
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)

 

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.