Ticket #5595 (new enhancement)

Opened 8 years ago

Last modified 8 years ago

Request: built in VDI disk-size optimization routine

Reported by: DrD Owned by:
Priority: minor Component: virtual disk
Version: VirtualBox 3.0.12 Keywords: VDI compress
Cc: Guest type: Linux
Host type: Mac OS X


Currently there are few available routes for shrinking a VDI image file successfully. Zeroing unused space is an unsupported requirement which requires software outside of virtualbox. Additionally, third party utilities can be flakey, or may not exist for the platform at hand. A terrific addition would be an integrated solution to the problem of dynamically expanding storage. Perhaps an all encompassing routine a user can run to clean up wasted space in a VDI file (i.e. shrink them in place), incorporated directly into virtualbox, without the need to run third party software.

Change History

comment:1 Changed 8 years ago by frank

This would be indeed convenient. However, this would require to develop such tools for many guest file systems which is quite a big effort.

comment:2 Changed 8 years ago by klaus

I also think that this isn't feasible in the near future - there lots of filesystems already, and there's at least one new filesystem per year in Linux. Very few filesystems have documentation which allows writing code which safely detects free space without spending months (per filesystem) on understanding how the internals of the filesystem works.

comment:3 Changed 8 years ago by klaus

  • Component changed from other to virtual disk

comment:4 Changed 8 years ago by DrD

If a compression routine is indeed overly difficult, then how about a simple utility that just copies actual files over to a newer VDI? It could be an automated process which could then delete the old VDI file and replace it with the new, slim VDI upon completion.

Note: See TracTickets for help on using tickets.
ContactPrivacy policyTerms of Use