I have followed these instructions. Brief recap:
* Install edk2 on the host, and build the patched OVMF firmware blob, which is described as "enabling UEFI (the successor of BIOS) support for Virtual Machines"
* Create an OS X bootable image on the original machine. For this, I followed these instructions that are tailored to El Capitan. I made sure the copy on the host passes the md5 checksum.
* Create an empty hard drive image on host and boot using the iso file via QEMU:
Code: Select all
host# qemu-img create -f qcow2 mac_hdd.img 64G
qemu-system-x86_64 -machine q35,accel=kvm -bios ~/OVMF.fd -m 4096 \
-cpu Penryn -smp 4,cores=2 \
-usb -device usb-kbd -device usb-tablet \
-device isa-applesmc,osk="ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc" \
-netdev user,id=usr0 -device e1000-82545em,netdev=usr0,id=vnet0 \
-device ide-drive,bus=ide.0,drive=MacDVD \
-drive id=MacDVD,if=none,snapshot=on,file=/media/er/Vol1/Software/X/ElCapitan/ElCapitan.iso \
-device ide-drive,bus=ide.2,drive=MacHDD \
-drive id=MacHDD,if=none,file=/home/er/host/mac_hdd.img \
-monitor stdio -serial file:log
This takes me to an UEFI shell. I exit it. That takes me to a BIOS like menu. In the boot manager I selected the one listed as 'Mac', then Continue. This takes me to a screen that says Start PXE over Ipv4, and then back to the BIOs like menu. Here's the log file.
Based on this post, I opened the Boot Maintenance Manager hoping to Boot from file, but there are no files listed.
Any troubleshooting tips?
Screenshots:
(`[img]image[/img]' does not show in the preview so I have replaced it by `image')
https://postimg.cc/z3cthqxn
https://postimg.cc/DSVxCBk0
https://postimg.cc/crfRJW21
https://postimg.cc/nX0Qshkx
https://postimg.cc/n94XnFz6
https://postimg.cc/Yh8SRymf
PS: I did run one of the recommended script on the original machine to determine the OSK key.