1
0 Comments

I am trying to install Debian (debian-9.9.0-amd64-netinst.iso) in QEMU on Windows. I created the disk using the command “qemu-img create -f qcow2 virtualdebian.img 30G” and the command “qemu-img info virtualdebian.img” returns the following:

image: virtualdebian.img
file format: qcow2
virtual size: 30G (32212254720 bytes)
disk size: 193K
cluster_size: 65536
Format specific information:
    compat: 1.1
    lazy refcounts: false
    refcount bits: 16
    corrupt: false

However, when I run the command:

qemu-system-x86_64 -accel hax -drive 
file=virtualdebian.img,index=0,media=disk,format=raw -cdrom debian-9.9.0-amd64-netinst.iso -m 2G

The Debian installer only shows the size of the disk as 197kB, which is not enough to install Debian on. I don’t understand where it is getting the size of 197kB from?

Askify Moderator Edited question May 4, 2023