[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-discuss] Qemu-img convert from vmdk to vhdx, large size

From: bbw725
Subject: [Qemu-discuss] Qemu-img convert from vmdk to vhdx, large size
Date: Wed, 23 Dec 2015 22:57:56 +0800 (CST)

Hi all,
I use qemu-img to convert a VMDK to a VHDX format, but I found that after convert, the VHDX size is too large. Follow is a simple test.
We can find that 1.vmdk size is 10M, disk size is 12K. After convert to 2.vhdx, qemu-img info show 2.vhdx disk size is 10M. But ls -l show 2.vhdx size is about 25MB.
Is this a bug? Or this is a normal behavior?
After I google,  on this link  https://bugs.launchpad.net/qemu/+bug/1399191, I find similar result.
But it is not recognized as a bug or I don't find a patch.
Anyone can help to share something about this ?
address@hidden:~$ qemu-img info 1.vmdk
image: 1.vmdk
file format: vmdk
virtual size: 10M (10485760 bytes)
disk size: 12K
cluster_size: 65536
Format specific information:
    cid: 1450881588
    parent cid: 4294967295
    create type: monolithicSparse
            virtual size: 10485760
            filename: 1.vmdk
            cluster size: 65536
address@hidden:~$ qemu-img convert -f vmdk 1.vmdk -O vhdx 2.vhdx
address@hidden:~$ qemu-img info 2.vhdx
image: 2.vhdx
file format: vhdx
virtual size: 10M (10485760 bytes)
disk size: 10M
cluster_size: 8388608
address@hidden:~$ ls -l 2.vhdx
-rw-r--r-- 1 wang wang 25165824 Dec 23 22:48 2.vhdx

Jan Wang


reply via email to

[Prev in Thread] Current Thread [Next in Thread]