Page 1 of 1

qemu-img create -f qcow2 not working -solved

Posted: Thu Jul 07, 2022 6:50 pm
by dr.h8ball
Hi guys. Today I updated my EVE-NG.
Now I can not create any qcow2 disks.

Code: Select all

root@eve-ng:/opt/unetlab/addons/qemu/linux-securepoint-v12.2.2.8# /opt/qemu-6.0.0/bin/qemu-img create -f qcow2 hda.qcow2 20G
Formatting 'hda.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=21474836480 lazy_refcounts=off refcount_bits=16
root@eve-ng:/opt/unetlab/addons/qemu/linux-securepoint-v12.2.2.8# /opt/qemu-6.0.0/bin/qemu-img create -f vmdk hda.vmdk 20G
Formatting 'hda.vmdk', fmt=vmdk size=21474836480 compat6=off hwversion=undefined
root@eve-ng:/opt/unetlab/addons/qemu/linux-securepoint-v12.2.2.8# ls -alF
total 1155296
drwxr-xr-x  2 root root      4096 Jul  7 20:47 ./
drwxr-xr-x 14 root root      4096 Jul  7 18:33 ../
-rw-r--r--  1 root root 393216000 Jul  7 20:00 cdrom.iso
-rw-r--r--  1 root root 396361728 Mar 26 14:11 debian-11.3.0-amd64-netinst.iso
-rw-r--r--  1 root root    196928 Jul  7 20:47 hda.qcow2
-rw-r--r--  1 root root   2686976 Jul  7 20:47 hda.vmdk
-rw-r--r--  1 root root 393216000 Jul  7 19:45 securepoint.iso
root@eve-ng:/opt/unetlab/addons/qemu/linux-securepoint-v12.2.2.8#
So the qcow2 disk is shown with 0MB.

Do you have any ideas to fix this?
Even whenn I convert a vmdk to qcow2 size is 0MB.

Thank you.
Greatings

Re: qemu-img create -f qcow2 not working

Posted: Fri Jul 08, 2022 7:34 am
by Uldis (UD)
your output says HDD is created

Code: Select all

root@eve-ng:/opt/unetlab/addons/qemu/linux-securepoint-v12.2.2.8# /opt/qemu-6.0.0/bin/qemu-img create -f qcow2 hda.qcow2 20G
Formatting 'hda.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=21474836480 lazy_refcounts=off refcount_bits=16
-rw-r--r--  1 root root    196928 Jul  7 20:47 hda.qcow2
-rw-r--r--  1 root root   2686976 Jul  7 20:47 hda.vmdk

Re: qemu-img create -f qcow2 not working

Posted: Fri Jul 08, 2022 10:55 am
by dr.h8ball
Yes, ls also says it is createt, but it has a size from 0MB in the virtual machine

Re: qemu-img create -f qcow2 not working

Posted: Fri Jul 08, 2022 5:43 pm
by dr.h8ball
Unbenannt.PNG

Re: qemu-img create -f qcow2 not working -solved

Posted: Fri Jul 08, 2022 6:47 pm
by dr.h8ball
Sorry for that thread, I made a mistake. After working in the folder of the template, I should add a new note. Then all was working as expected.