Implemented support for discarding unused image blocks

This is for discussing general topics about how to use VirtualBox.
Post Reply
AnotherLife
Posts: 29
Joined: 9. Sep 2012, 00:46

Implemented support for discarding unused image blocks

Post by AnotherLife »

Can someone explain this upcoming change please ? :D

I'm very interested in reducing the size of my exported VMs (.ova), but I'm using a fixed disk.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Implemented support for discarding unused image blocks

Post by mpack »

You obviously can't discard blocks from a fixed size image.

In any case I don't recogize the claim. Can you provide a link?
 Edit:  Oh, I see, you are referring to the trim feature of the v4.2 beta. The feature is (as yet) not well documented, but as a command issued by a guest OS I would not expect it to work outside of that context - at least not right away, and never for fixed disks. 
Norchem
Posts: 12
Joined: 14. Sep 2012, 01:33
Primary OS: Ubuntu 12.04
VBox Version: OSE Debian
Guest OSses: WindowsXP32/64,2008,2003,Ubuntu64
Location: Flagstaff, AZ
Contact:

Re: Implemented support for discarding unused image blocks

Post by Norchem »

I'm excited to see if this TRIM is passed through the iSCSI to a Solaris ZFS SAN and see if the sparse volume reclaims or zeros out the blocks. This would allow compression or the zvols to shrink their size allocations back down when the guest deletes data. Anyone have any experience with this?
Post Reply