DdB wrote:My understanding:
I'm sorry to say it, but your understanding is
completely wrong. Mainly because you seem to be confusing two words:
compacting and
compressing. They are
not the same thing/concept/operation. VDIs
(and VMDKs and VHDs) are
not compressed or compressible. It doesn't make sense. It would be a performance killer!
They are compactable on the other hand, and what that means is that you can 1) zero-out previously used clusters from within the guest OS
(that's what 'zerofree' and 'sdelete' do), and then 2) look at the zeroed-out "clusters" of the VDI and remove them from the VDI-file on the host
(that's what the --compact does). And that
compacts the contents of the VDI. Without using
any sort of compression. See a
previous post of mine to understand how compaction works at a basic level.
DdB wrote:there is a raw format for virtual disks (wasting alot of space)
Again a misunderstanding. Raw disk access is not creating a virtual disk, it accesses your actual, physical hard drive. There's
absolutely.
No.
Space.
Wasted. AT ALL!!!
Please read the manual if your understanding is not concrete enough, it contains a lot of information that can help you understand better what's actually going on. Start with ch.
5 Virtual storage. Also worth reading (really enlightening) is the long-written
All about VDIs.