Hello,
I am on Raspberry Pi OS and I use Qemu for my VM's. I am also using a lite Windows 7 version called Tiny7. On the "completing installation..." part, it always says that it encountered an unexpected error. Here is my script:

#! /bin/bash
qemu-system-i386 \
-cpu qemu32 \
-monitor stdio \
-soundhw pcspk \
-machine accel=tcg \
-m 350 \
-cdrom /media/pi/9577-A81C/Tiny7.iso \
-hda /media/pi/9577-A81C/win7.img \
-virtfs local,id=shared_folder_dev_0,path=/,security_model=none,mount_tag=shared0 \
-boot d,menu=off \
-net nic \
-net user \
-rtc base=localtime \
-name "Windows 7"