This is my latest configuration. Manually added "pc-bios" folder from Qemu GitHub repository to "/usr/bin". But still no boot. "OpenBios" quotes "No valid state has been set by load or init-program". Tried it 1000x times with different configurations, read Libvirt references, used UTM configurations but I don't know what is missing 😕
(The image I'm using boots perfectly on Unraid when starting from shell)
./qemu-system-ppc -L /usr/bin/pc-bios -M mac99 -device VGA,edid=on -prom-env 'auto-boot?=true' -prom-env 'vga-ndrv?=true' -boot c -drive file=/mnt/user/isos/QEMUclean.img,format=qcow2,media=disk -drive file=/mnt/user/isos/Universal_Toolbox.toast,format=raw,media=cdrom -spice port=5900,addr=127.0.0.1,disable-ticketing
<?xml version='1.0' encoding='UTF-8'?>
<domain type='qemu' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
<name>macosx10.0-ppc</name>
<uuid>69d674e8-e498-469b-8a90-76bcf1c2a753</uuid>
<memory unit='KiB'>65536</memory>
<os>
<type arch='ppc' machine='mac99'>hvm</type>
</os>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<devices>
<emulator>/usr/bin/qemu-system-ppc</emulator>
<graphics type='spice' autoport='yes'>
<listen type='address'/>
<image compression='off'/>
<gl enable='no'/>
</graphics>
<audio id='1' type='none'/>
<video>
<model type='virtio' heads='1' primary='yes'>
<acceleration accel3d='no'/>
</model>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</video>
<memballoon model='virtio'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
</memballoon>
</devices>
<qemu:commandline>
<qemu:arg value='-L'/>
<qemu:arg value='/usr/bin/pc-bios'/>
<qemu:arg value='-M'/>
<qemu:arg value='mac99,via=cuda'/>
<qemu:arg value='-m'/>
<qemu:arg value='64'/>
<qemu:arg value='-boot'/>
<qemu:arg value='c'/>
<qemu:arg value='-device'/>
<qemu:arg value='ide-hd,bus=ide.0,drive=drive1,bootindex=0'/>
<qemu:arg value='-drive'/>
<qemu:arg value='if=none,media=disk,id=drive1,file=/mnt/user/YOURIMAGE.qcow2,discard=unmap,detect-zeroes=unmap'/>
<qemu:arg value='-prom-env'/>
<qemu:arg value='boot-device=hd:,\\:tbxi'/>
<qemu:arg value='-device'/>
<qemu:arg value='VGA,edid=on'/>
<qemu:arg value='-prom-env'/>
<qemu:arg value='auto-boot?=true'/>
<qemu:arg value='-prom-env'/>
<qemu:arg value='vga-ndrv?=true'/>
<qemu:arg value='-accel'/>
<qemu:arg value='tcg,tb-size=128'/>
</qemu:commandline>
<qemu:capabilities>
<qemu:add capability='blockdev'/>
<qemu:add capability='drive'/>
</qemu:capabilities>
</domain>