Jump to content

Imanol

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by Imanol

  1. On 4/11/2020 at 12:47 PM, Imanol said:

    Thanks Fabio for this excellent guide! I got my hackintosh working! I'm using 3970x,  5700XT GPU passthrough, and MP600 NMVE passthrough. Performance is great.

     

    I'll share some tips to get the 5700XT GPU passthrough working. This can be helpful for other people using AMD GPUS. I had to do some extra things:

     

    The default GPU BIOS doesn't have UEFI enabled. Instead of updating the firmware, which is risky (or non existent tools) , you can download a ROM with UEFI support and let proxmox load/expose it when starting the VM. In my case I downloaded this rom (https://www.techpowerup.com/vgabios/212439/gigabyte-rx5700xt-8192-190616). You have to copy it to

    
    /usr/share/kvm/5700xtcustom.rom

    and specify the ROM file in the GPU pcie passthrough line vm conf:

     

    
    hostpci1: 03:00,pcie=1,x-vga=1,romfile=5700xtref.rom

     

    Additionally, I had to enable some extra flags in clover or it didn't boot correctly.

     

    Make sure that you pass the agpmod=pikera boot argument. In graphics settings enable RadeonDeinit. Make sure that InjectATI is correctly disabled. If you are using clover configurator press the checkbox twice, otherwise it's enabled by default.

     

     

     

    agpmod.png

    radeon.png

     

     

    I forgot to mention that to make my 5700XT passthrough work I needed to unbind some system drivers and framebuffers before launching the GPU. Just blacklisting the GPU drivers, enabling nomodeset in Grub or setting GRUB_GFXMODE_LINUX=text in grub didn't work for me. Those unbinds need to be done each time you restart the computer, before launching the VM. I automated it using the linux crontab utility.

     

    First open crontab config using this command in a proxmox terminal:

    crontab -e

     

    Add this line into the document and save it:

     

    @reboot /root/unbind.sh

     

    Create a script in the specified path:

     

    nano /root/unbind.sh

     

    Add those unbind command (Change 03:00 with the PCI address of your GPU):

    #!/bin/bash
    echo "0000:03:00.0" > /sys/bus/pci/drivers/vfio-pci/unbind
    echo 0 > /sys/class/vtconsole/vtcon0/bind
    echo efi-framebuffer.0 > /sys/bus/platform/drivers/efi-framebuffer/unbind

     

    Don't forget to set the correct permissions for the script after saving:

     

    chmod 755 /root/unbind.sh

     

    Now, each time you restart the computer proxmox will run this script and the guest mac VM will launch without any conflict.

     

     

     

     

    • Like 2
    • +1 2
  2. @fabiosun btw does shutdown/reboot/sleep work correctly in your build? I have to force reset the computer most of the times I want to shutdown or reboot. I tried to enable FixShutdown and HaltEnabler In Clover  with no luck. Do you know any workaround? It's one of the things missing to have a perfect hackintosh 🙂

  3. @fabiosun  I've researching some CPU flags not added in the boot args list (based on this post) and cat /proc/cpuinfo

     

    I added those extra flags that are supported in the 3970x:

    +fma,+f16c,+avx,+avx2,+bmi1,+bmi2,+adx,

     

    This is my output after running

    sysctl -a | grep hw.optional

     

    f16c and fma has been enabled but not the others. Do ypu have similar flags or extra flags in the OpenCore boot? I read that OpenCore allows to use other CPU than Penryn which is better to detect CPU flags.

    hw.optional.png

  4. Thanks Fabio for this excellent guide! I got my hackintosh working! I'm using 3970x,  5700XT GPU passthrough, and MP600 NMVE passthrough. Performance is great.

     

    I'll share some tips to get the 5700XT GPU passthrough working. This can be helpful for other people using AMD GPUS. I had to do some extra things:

     

    The default GPU BIOS doesn't have UEFI enabled. Instead of updating the firmware, which is risky (or non existent tools) , you can download a ROM with UEFI support and let proxmox load/expose it when starting the VM. In my case I downloaded this rom (https://www.techpowerup.com/vgabios/212439/gigabyte-rx5700xt-8192-190616). You have to copy it to

    /usr/share/kvm/5700xtcustom.rom

    and specify the ROM file in the GPU pcie passthrough line vm conf:

     

    hostpci1: 03:00,pcie=1,x-vga=1,romfile=5700xtref.rom

     

    Additionally, I had to enable some extra flags in clover or it didn't boot correctly.

     

    Make sure that you pass the agpmod=pikera boot argument. In graphics settings enable RadeonDeinit. Make sure that InjectATI is correctly disabled. If you are using clover configurator press the checkbox twice, otherwise it's enabled by default.

     

     

     

    agpmod.png

    radeon.png

    • Like 2
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.