Wrong "disk size" after making qemu-img convert -f vpc -O qcow2

Questions about virtualization software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
kermu
Level 1
Level 1
Posts: 9
Joined: Sat Mar 07, 2020 4:54 pm

Wrong "disk size" after making qemu-img convert -f vpc -O qcow2

Post by kermu »

After making qemu-img convert -f vpc -O qcow2 Ubuntu.vhd Ubuntu.qcow2 I got incorrect "disk size" in qcow2 image file.

~/qemu-img info Ubuntu.vhd
image: Ubuntu.vhd
file format: vpc
virtual size: 7.87 GiB (8455200768 bytes)
disk size: 23.2 GiB
cluster_size: 2097152

~/qemu-img info Ubuntu.qcow2
image: Ubuntu.qcow2
file format: qcow2
virtual size: 7.87 GiB (8455200768 bytes)
disk size: 6.65 GiB
cluster_size: 65536
Format specific information:
compat: 1.1
lazy refcounts: false
refcount bits: 16
corrupt: false

I don't know where is problem with wrong calculation "disk size" (23.2 GiB for Ubuntu.vhd versus 6.65 GiB for Ubuntu.qcow2 after conversion)
In consequence for mentioned above, image Ubuntu.qcow2 not boot anymore, because grub get into recovery mode
It's bug in qemu-img ?

Christopher
Attachments
Zrzut ekranu z 2023-03-21 15-05-25.png
Last edited by LockBot on Thu Sep 21, 2023 10:00 pm, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Locked

Return to “Virtual Machines”