Sichuanren's Blog

November 20, 2014

Compress vmdk image for virtualbox

Filed under: Cloud, Virtualization — sichuanren @ 8:28 pm

We have a need to reuse qcow2 image for VirutalBox. With qemu-img convert we can get vmdk image but the size jump from 11G to 30G. Using vBoxManager tool option –compact (e.g., vdi) does not work. Also vBox boot the qcow2 image directly doesn’t work.

Solution: vmware-vdiskmanager -r /opt/vDisks/main1.vmdk -t 5 /opt/vDisks/main2.vmdk

Create a free website or blog at WordPress.com.