thenickdude / KVM-Opencore

OpenCore disk image for running macOS VMs on Proxmox/QEMU
https://www.nicksherlock.com/2021/10/installing-macos-12-monterey-on-proxmox-7/
GNU General Public License v3.0
1.26k stars 115 forks source link

Some things that do not work for me. #12

Open Itay1787 opened 3 years ago

Itay1787 commented 3 years ago

So I was able to install everything that seems to work. Just a few things I could not make work.

I am using Proxmox version 6.3-2 And I also passthrough my GT 710 for the MacOS VM and it works just fine. But I also need to passthrough the ports in USB 3 and I can't make it work, I don't wont to transfer all the controller because some things in USB are shared with other VMs. So I want to passthrough the ports I need, If I transfer them in the form of USB 2 then the MacOS recognizes them and everything is fine. But when I set to in the VM that the USB port are in USB 3 the MacOS no longer works. Seeing the Apple logo, it starts loading and then turns off the VM completely. What to do? I need USB 3 and I can not buy a controller just for this VM.

Another thing I failed to do, I want to transfer my iGPU to MacOS i5 7600k hd 630 I need it for hardware decoding...

Hope I was understood. English is not my main language

Thanks Itay

thenickdude commented 3 years ago

macOS doesn't seem to support Proxmox's emulated USB 3 controller, or at least I've never had it working before. You'll need to untick the USB3 tickbox in the USB passthrough config.

For iGPU passthrough see this guide:

https://github.com/vivekmiyani/OSX_GVT-D

Itay1787 commented 3 years ago

macOS doesn't seem to support Proxmox's emulated USB 3 controller, or at least I've never had it working before. You'll need to untick the USB3 tickbox in the USB passthrough config.

Yeah I know, If I do not click and try to passthrough something that is connected in USB 3 then it does not appear in MacOS... is there a way to get around this? Make USB 3 work. Change something in Proxmox or something ...?

For iGPU passthrough see this guide

And I'll try it on my iGPU, thanks.

thenickdude commented 3 years ago

Change something in Proxmox or something ...?

More likely it is possible to get the emulated XHCI controller working in macOS by adding kexts or OpenCore config.

Itay1787 commented 3 years ago

Change something in Proxmox or something ...?

More likely it is possible to get the emulated XHCI controller working in macOS by adding kexts or OpenCore config.

Ok, what kexts should I add or change in openCore? I have already tried USBInjectAll and XHCI-unsupported both did not help.

thenickdude commented 3 years ago

No idea

Itay1787 commented 3 years ago

For iGPU passthrough see this guide:

https://github.com/vivekmiyani/OSX_GVT-D

Missing files… The file opregion.bin are missing. Did you try this before?

thenickdude commented 3 years ago

No, because I don't have an iGPU

Itay1787 commented 3 years ago

Hello again, something very strange that I do not understand what is going on... My sound card is supported on MacOS using AppleALC and in boot arguments adding alcid=11 I know this because I tried to install MacOS on the hardware itself and everything works. And when I try to pass the sound card to VM and put the same settings in the config, it doesn't work, MacOS does not recognize my sound card.

And in addition to that my motherboard has a USB controller that should be supported on MacOS without issue. But it doesn't work here either. I see that MacOS has detected the USB 3 Hub but when I connect something it doesn't work. And of course I did both for the USB controller and for the sound card a PCi passhrough for the MacOS VM Something very strange ... I do not know why it is like that.

thenickdude commented 3 years ago

It's likely that macOS and AppleALC are expecting the sound card to have specific names in the DSDT or whatever file it is, to match the names used by actual motherboards, you may have to edit that.

Itay1787 commented 3 years ago

It's likely that macOS and AppleALC are expecting the sound card to have specific names in the DSDT or whatever file it is, to match the names used by actual motherboards, you may have to edit that.

Ok, I didn't use a custom file , I used the files that OpenCore already provides in their guide. And could it be the same reason why the USB controller is not working properly?

thenickdude commented 3 years ago

Doubtful, since my 3 USB controllers were plug and play without editing anything. Are you getting any warnings in dmesg at VM start time about the USB controller failing to reset?

Itay1787 commented 3 years ago

Are you getting any warnings in dmesg at VM start time about the USB controller failing to reset?

No, VM and MacOS start fine. Chances are I did not notice, is there anything in particular to pay attention to?

thenickdude commented 3 years ago

Literally anything appearing in dmesg at VM start is interesting, just post all of those.

Itay1787 commented 3 years ago

Literally anything appearing in dmesg at VM start is interesting, just post all of those.

So ... the VM just decided to stop working. Tomorrow I will do a reinstall for everything (maybe it will fix things...) will keep updating here. But as for the sound card what exactly do I need to do?

thenickdude commented 3 years ago

No idea

Itay1787 commented 3 years ago

Literally anything appearing in dmesg at VM start is interesting, just post all of those.

I did a reinstall and the audio still does not work

I have attached the Output of the boot from the terminal https://mega.nz/file/dNRm0Tba#9AKS-RVt7g0bUH4ane_V5V5dKQDki4CdhKrQZc0fvbM

thenickdude commented 3 years ago

I found out that the emulated USB 3 controller can be fixed by adding -global nec-usb-xhci.msi=off to the QEMU commandline

Toolybird commented 2 years ago

Note that emulated USB3 (qemu-xhci) works in Big Sur. Details here:

https://www.reddit.com/r/VFIO/comments/q8juo3/macos_vm_qemu610_problems/hgswxrp/