Getting the final disk size of a streamOptimized VMDK

This is for discussing general topics about how to use VirtualBox.
Post Reply
emc
Posts: 2
Joined: 15. Mar 2017, 15:53

Getting the final disk size of a streamOptimized VMDK

Post by emc »

I have a *.vmdk:

Code: Select all

>VBoxManage.exe showmediuminfo disk1.vmdk
...
State:          created
Type:           normal (base)
Location:       disk1.vmdk
Storage format: VMDK
Format variant: dynamic streamOptimized
Capacity:       130048 MBytes
Size on disk:   20143 MBytes
Encryption:     disabled
Now i want to clone it to VDI so i can use it, but i need to know the final size (which is somewhere between the vmdk size and the maximum capacity).
The command:

Code: Select all

VBoxManage clonemedium disk1.vmdk disk1.vdi --format VDI --variant Standard
just starts the conversion process without telling me how much diskspace is needed. Is there any way to read the information (doesn't have to be the exact size of the dynamic VDI, the size of the uncompressed MONOLITHIC_SPARSE VMDK is fine too) from the VMDK or do some sort of "dry run" to get the VDI size without actually using up disk space?
emc
Posts: 2
Joined: 15. Mar 2017, 15:53

Re: Getting the final disk size of a streamOptimized VMDK

Post by emc »

Haven't found an easy way, maybe the uncompressed size is not included in the VMDK, but i was able to mount the image and then look at the information from the filesystem inside. (Btw: ~42GB)
Post Reply