Zend certified PHP/Magento developer

Virtualbox temporary macOS virtual machine

I know macOS virtualisation is not allowed on non-Apple made hardware but I really need to access encrypted data from my old MacBook backup that I can’t open from Windows. Is there any way to install macOS on Virtualbox?

I’ve tried following steps from here and I managed to boot the install image, initialize the disk and install the OS. As soon as the machine reboots though it reboots from the install image as the VM disk apparently has an empty EFI partition so the VM efi can’t find anything to boot from.

Is there any workaroud? I’ve tried using opencore but I don’t know how to use it and ended up just crashing the virtual machine. Does anyone know even a temporary solution?

Thanks in advance.