Replies: 2 comments 6 replies
-
|
I think there were also some early experiments with other technologies, if that helps... |
Beta Was this translation helpful? Give feedback.
1 reply
-
You don't need Windows for gaming (any more), as proven by Steam and others |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently GPU accelerated Lima VMs are only possible on macOS using the Krunkit driver. We should consider adding native GPU passthrough(VFIO) to Linux hosts using the Qemu driver to provide near native CUDA/ROCm performance for AI workloads and possibly some gaming(when we support Windows guests in the future)🕹️.
However, there’s a caveat: PCI passthrough only works with multiple graphics cards. A workaround does exists for passing a single graphics card. The downside is that you will loose display on the host side(if running a desktop env) and have to use SSH to control it from the guest unless you have a pair of dGPUs or a single dGPU with iGPU.
A rough workflow
IOMMUon the host for device isolation (Requires sudo)VFIO(/dev/vfio/<group_number>), also changing the ownership (Requires sudo)pciAddressesunderQEMUOpts(No sudo)vfio-pci(Requires sudo)Workaround for the privileged needs
The steps 1, 3 & 5 are the main hurdles here. Maybe we can
lima-vfio-helperlike how we currently do forsocket_vmnet?Beta Was this translation helpful? Give feedback.
All reactions