Not sure this will help you, but I've started recently to run android-x86 in qemu directly from built image (not from the ISO), using the following script:
#!/bin/bash
OUT=$1
qemu-system-i386 \
-enable-kvm \
-kernel $OUT/kernel -append "root=/dev/ram0 vmalloc=192M console=ttyS0 video=1280x800 DPI=160 VIRT_WIFI=0" \
-initrd $OUT/initrd.img \
-m 2048 -smp 2 -cpu host \
-soundhw ac97 \
-usb -device usb-tablet,bus=usb-bus.0 \
-serial mon:stdio \
-drive index=0,if=virtio,id=system,file=$OUT/system.sfs,format=raw,readonly \
-net nic -net user,hostfwd=tcp::5555-:5555 \
-device virtio-vga,virgl=on \
-display gtk,gl=on,zoom-to-fit=off
You may need some adjustment for your own use case, but one very useful feature is that the android console is in the terminal you started the VM from. That includes kernel initial logs, as well as logcat access. The above command works for Android 11. For Android 9 and below, you'll probably need to add the ramdisk. In any case, it was inspired by this script:
Michael.