qemu-img create -f qcow2 not working -solved

Before posting something, READ the changelog, WATCH the videos, howto and provide following:
Your install is: Bare metal, ESXi, what CPU model, RAM, HD, what EVE version you have, output of the uname -a and any other info that might help us faster.

Moderator: mike

Post Reply
dr.h8ball
Posts: 5
Joined: Tue Dec 07, 2021 11:26 am

qemu-img create -f qcow2 not working -solved

Post by dr.h8ball » Thu Jul 07, 2022 6:50 pm

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
Last edited by dr.h8ball on Fri Jul 08, 2022 6:46 pm, edited 2 times in total.

Uldis (UD)
Posts: 5067
Joined: Wed Mar 15, 2017 4:44 pm
Location: London
Contact:

Re: qemu-img create -f qcow2 not working

Post by Uldis (UD) » Fri Jul 08, 2022 7:34 am

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

dr.h8ball
Posts: 5
Joined: Tue Dec 07, 2021 11:26 am

Re: qemu-img create -f qcow2 not working

Post by dr.h8ball » Fri Jul 08, 2022 10:55 am

Yes, ls also says it is createt, but it has a size from 0MB in the virtual machine

dr.h8ball
Posts: 5
Joined: Tue Dec 07, 2021 11:26 am

Re: qemu-img create -f qcow2 not working

Post by dr.h8ball » Fri Jul 08, 2022 5:43 pm

Unbenannt.PNG
You do not have the required permissions to view the files attached to this post.

dr.h8ball
Posts: 5
Joined: Tue Dec 07, 2021 11:26 am

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

Post by dr.h8ball » Fri Jul 08, 2022 6:47 pm

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.

Post Reply