Kvm creates a qcow2 image file, unable to install the system!

1 qcow2 disk file created by Jing KVM, unable to install the system, it should be caused by a disk space of 0 according to the hint!

2There are 3 ways to create qcow2 disk files with

a,rawqcow2


b,qcow2,

qemu-img create -f qcow2 -o preallocation=metadata  /data/tomcat_template.img 5G;

c
qemu-img create -f qcow2   /data/test.qcow2 5G; 

between, I need to use snapshots on my side, so the b method cannot be used, the a method is too troublesome, and the disk format needs to be converted every time

The

c method cannot be used in my test. Can you use it when testing? Thank you.

ps:
system is centos 6.8x86x64

attachment is a picture that cannot install the system.

Thank you!

Mar.22,2021

bus=virtio

Menu