I think this VM is still on Sonoma, actually. I still need to upgrade.
I can't remember exactly what I did to get an installer image, but there's a million shell scripts online for downloading macOS installer images. For booting it, I use this premade OpenCore for KVM/Proxmox. I have to check if I made other modifications (I run on an AMD CPU), but I think I mainly just had to set the serial and model - I personally used a 2019 Mac Pro.
I could be totally delusional, but I think it's just something like
dd if=whatchamacallit.dmg of=whatchamacallit.img
. I think you can get a net install image through macrecovery, which is a utility included with OpenCore packages.