Qcow2 files can become corrupt if the host crashes. Check integrity:
qemu-img check windows10.qcow2
Repair if necessary:
qemu-img check -r all windows10.qcow2
sudo apt update
sudo apt install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virt-manager
sudo systemctl enable --now libvirtd
First, create an empty image. A 64GB size is typical for lightweight installs, but it will only use the space Windows needs. windows 10qcow2
qemu-img create -f qcow2 Windows10.qcow2 64G
Now, install Windows 10 using the ISO:
qemu-system-x86_64 \
-enable-kvm \
-cpu host \
-smp 4 \
-m 4096 \
-drive file=Windows10.qcow2,format=qcow2 \
-cdrom Windows10_22H2.iso \
-boot menu=on
You have a VMware .vmdk or VirtualBox .vdi or raw .img. Convert it. Mastering Virtualization: The Ultimate Guide to Windows 10