mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2026-01-11 21:10:25 +01:00
GPU Acceleration & Passthrough #38
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sickcodes on GitHub (Jun 15, 2020).
As per the virt-manager xml on king @kholia's repo:
https://github.com/kholia/OSX-KVM/blob/master/macOS-libvirt-Catalina.xml
I have an iGPU and it's difficult for me to test
@aaronjensen commented on GitHub (Jun 24, 2020):
I'd be happy to try this out, but I'm not sure what to do with this xml... does this need to be converted to qemu command line parameters somehow and added to the dockerfile?
@sickcodes commented on GitHub (Jul 8, 2020):
Yes, or use the Catalina xml file in the OSX-KVM directory and directly import it into virt-manager.
You will find the commented lines above in that file.
@sickcodes commented on GitHub (Sep 11, 2020):
I have an Nvidia 1660 now, plus the integrated AMD graphics, so I might test this
@AdamMomen commented on GitHub (Nov 7, 2020):
@sickcodes any updates on GPU passthrough. Thanks
@sickcodes commented on GitHub (Nov 7, 2020):
I couldn't get it to work but OSX-KVM upstream is testing
@sickcodes commented on GitHub (Feb 22, 2021):
Some additional GPU based docs here, thanks to @cephasara
https://github.com/sickcodes/Docker-OSX/blob/master/helm/INSTALL-QEMU-AND-GPU-IOMMU.md
@clsx524 commented on GitHub (Oct 6, 2021):
I have used OSX-KVM with virt manager and my Big Sur can work with GPU (RX580) passthrough smoothly. So my system qcow2 file and custom OpenCore file should be fine. However when I tried it with docker, the screen can show the menu and I can pick the system from the list, but it will start to load the system and freeze/stuck after a few seconds. Does anyone know how to solve this?
This is the actual qemu command it executes
and the docker run command
Or is it possible to start it with virt manager within docker?
@sickcodes commented on GitHub (Oct 15, 2021):
It is possible, I had planned to add a virt-manager version and it will not be difficult to do so. I personally don't have a detached GPU to test with, only an iGPU, but we should be able to do it with Docker as well, just a matter of passing through the right permissions and devices.
@ghost commented on GitHub (Oct 30, 2021):
I have a mobile 2060 and an Intel cpu with integrated GPU, is there something I can do to get better performance? I honestly don't have a good understanding of how it works that's why I ask where to look for.
@pwltr commented on GitHub (Mar 9, 2022):
Haven't seen anyone mention it but as far as I know MacOS only supports AMD GPUs and Intel iGPUs.
This information comes from the OpenCore Install Guide which is for building "Hackintosh" systems.
Full support table here: https://dortania.github.io/OpenCore-Install-Guide/macos-limits.html#gpu-support
I don't know anything about virtualization but I don't assume it would be different for this project?
@aspauldingcode commented on GitHub (Sep 30, 2023):
Where are we on this?
Has GPU-Passthrough worked for anyone?
Did you figure this out, add/test this yet?