Leoyzen / KVM-Opencore

Opencore Configuration of KVM Hackintosh with tweaks
GNU General Public License v3.0
450 stars 160 forks source link

[DEBUG][HELP] Boot hangs somewhere in XNU/Kernel Handoff just before [ PCI configurations begin ] #21

Closed ArsBinarii closed 1 year ago

ArsBinarii commented 1 year ago

OS: Proxmox CPU: Ryzen 7 5825u GPU: RX550 passthrough VM OS: MAC Catalina 10.15

General setup followed:https://www.nicksherlock.com/2021/10/installing-macos-12-monterey-on-proxmox-7/

Setup: GPU adapter from NVME to full PCI slot, provides PCI3.0 x4 actual speed Problem: Boot (system is already installed) hangs somewhere in XNU/Kernel Handoff just before [ PCI configurations begin ].... it just freezes, the system boots in the background, and I can init a Nomachine connection to the VM but I have no desktop initialised (most likely due to the fact that there is no GPU present in the system).

Debugs/Results: GPU passthrough works and system is usable on old full (full desktop with proper PCI slots) system Ryzen 9. GPU passthrough works mini-Ryzen-7-5825u with windows VM with nvidia and amd cards. (3D accel tested fine) Mac Boot system freezes the same with nvidia 1080 card (for debug, I know it is not compatible) Adding a standard display, system boots with amd card attached but there is no sign of the card in the system at all, just the standard display. Activating Debug in open core, and comparing the logs of a boot with standard display and one that freezes render no differences Adding npci=0x2000 or npci=0x3000 does not change anything Same setup fresh new VM 10.15 same hang Tried Monterey install image, same hang Booting windows VM (detaching the GPU totally from linux and initialising it) and then booting OSX VM same hang

7127bce3-6153-4f98-b289-8c575b94a628 ebba6af9-1dfd-412a-ace0-b4971568964f

Any help is hugely appreciated. Thanks

CLOSING THIS AS I FOUND THE ISSUE.

After a lot of attempts and changes to modules and params, vendor-reset, grub, blacklists, etc... the issue was that pc-q35-5.0 works ok and the latest does not so qemu broke something at q35-6.1