Hi, I managed to create Sonoma vm with some tweaks to spaceinvaderone's macinabox created template, maybe someone will find this helpful.
1. Firstly I have created Sonoma image with this tutorial: https://i12bretro.github.io/tutorials/0763.html (method of obtaining macOS does not matter and you skip usb creation part, just go straight to "creating bootable .iso"), but in "creating bootable.iso" part you have to make an image at least 15000m in size and change image name from *.cdr to *.img not to *.iso. than copy this image to unraid
2. Download mentioned earlier: https://github.com/thenickdude/KVM-Opencore/releases/download/v20/OpenCore-v20.iso.gz this also copy to unraid
3. Run macinabox with Monterey option (you can try custom open core, but this option didn't worked for me, I had just manually changed path in automatically created Monterey vm) and override network interface to "vmxnet3", than normally go to user scripts and run vmready_notify and helper scripts as in spaceinvaderone's tutorial but do not run newly created vm
4. In new monterey vm, change opencore image path to downloaded one, and change Monterey path to Sonoma path. and in the last part of xml (qemu commandline) add missing flags from part 22 of this tutorial: https://i12bretro.github.io/tutorials/0566.html , mine tweaked part looks like this:
<qemu:commandline>
<qemu:arg value='-usb'/>
<qemu:arg value='-device'/>
<qemu:arg value='usb-kbd,bus=usb-bus.0'/>
<qemu:arg value='-device'/>
<qemu:arg value='************************'/>
<qemu:arg value='-smbios'/>
<qemu:arg value='type=2'/>
<qemu:arg value='-global'/>
<qemu:arg value='nec-usb-xhci.msi=off'/>
<qemu:arg value='-global'/>
<qemu:arg value='ICH9-LPC.acpi-pci-hotplug-with-bridge-support=off'/>
<qemu:arg value='-cpu'/>
<qemu:arg value='host,kvm=on,vendor=GenuineIntel,vmware-cpuid-freq=on,+kvm_pv_unhalt,+kvm_pv_eoi,+hypervisor,+invtsc,+pcid,+ssse3,+sse4.2,+popcnt,+avx,+avx2,+aes,+fma,+bmi1,+bmi2,+xsave,+xsaveopt,+rdrand,check'/>
</qemu:commandline>
this tweaks are working for xeon e5-2690v4
5.now run vm and go to UEFI shell, in UEFI shell type System\Library\CoreServices\boot.efi and it should take you to standard recovery screen, next steps are as in spaceinvaderone's tutorial
6. after configuration you can copy open core files (https://github.com/thenickdude/KVM-Opencore/releases/download/v20/OpenCoreEFIFolder-v20.zip) to efi partition of Sonoma installation and remove opencore and Sonoma installer entries from xml
7. if everything works, you can change core assignment to 4 cores 2 threads, 8gb of ram and it should boot just fine without any additional things, keep in mind that you have to edit everything in xml view because spaceinvaderone's xml fixing script won't work anymore in present form
(you can try different core count and ram size, but these just worked for me)
8. you can fix performance of this vm with this guide: https://github.com/sickcodes/osx-optimizer , it made huge difference with my setup
Performance isn't terrific, but vm is totally usable, in my case the biggest issue is graphics performance because I don't have suitable graphics for macOS and I'm stuck with qemu emulated graphics
edit: idk why but after posting this part of qemu args with apple osk changed to asterisks
edit2: i have just ran passmark, and it hit 9449, not bad I think