Create qcow image
qemu-img create -f qcow2 file.qcow2 100M
sudo mkfs.ext4 file.qcow2
Add drive it to the MicroVM
--add-drive=file.qcow2:rw
Validate inside guest
fdisk -l
Disk /dev/vda: 30 MiB, 31457280 bytes, 61440 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/vdb: 192 KiB, 196608 bytes, 384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Mount inside the guest machine
mount /dev/vdb /mnt
This is not qocw2,
sudo mkfs.ext4 file.qcow2
make the file.qcow2 become raw file