Can someone help me pass an Nvidia eGPU to a vm on an m1 mac?
 
Notifications
Clear all

Can someone help me pass an Nvidia eGPU to a vm on an m1 mac?  

  RSS

ZW - max
(@zw_-_max)
New Member
Joined: 11 months ago
 

I want to pass an Nvidia eGPU (3000 series)  to a linux vm (so I can use it to run a neural network) on an m1 mac. I already figured out how to force VMWare to use an eGPU ( https://arstechnica.com/civis/viewtopic.php?f=19&t=1461865), but I need the gpu to be detected by MacOs first, any ideas?

To do: Create my signature with system and expected eGPU configuration information to give context to my posts. I have no builds.

.

ReplyQuote
nu_ninja
(@nu_ninja)
Reputable Member
Joined: 4 years ago
 

@zw_-_max

If you're thinking of hardware gpu passthrough, I'm not aware of any available VMs that support it on a mac host (intel, arm or otherwise). Without support for that, the gpu can only work in the vm if there are mac drivers.

Mid-2012 13" Macbook Pro (MacBookPro9,2) TB1 -> RX 460/560 (AKiTiO Node/Thunder2)
+ macOS 10.15+Win10 + Linux Mint 19.1

 
2012 13" MacBook Pro [3rd,2C,M] + RX 460 @ 10Gbps-TB1 (AKiTiO Thunder2) + macOS 10.14.4 [build link]  


itsage liked
ReplyQuote
joevt
(@joevt)
Noble Member
Joined: 4 years ago
 

This won't work unless your method involves enabling GPU pass through. I think your method only allows VMWare to use the GPU to help accelerate its virtual GPU? The GPU can't do that without working macOS drivers.

macOS on M1 Macs already detect the GPU as PCIe device. There are a couple screenshots in two eGPU.io threads related to M1 Macs showing this. The GPUs may have not had resources assigned though (at least they have a bus number?).

https://egpu.io/forums/desktop-computing/teardown-late-2020-mac-mini-apple-silicon-m1-thunderbolt-4-usb4-pcie-4/#post-89551
https://egpu.io/forums/which-gear-should-i-buy/apple-event-first-arm-macs-10-11-what-will-this-mean-for-egpu-users/paged/18/#post-89528

I suppose you should try to get a version of pciutils to work in macOS first on the M1 Mac.
https://egpu.io/forums/desktop-computing/teardown-late-2020-mac-mini-apple-silicon-m1-thunderbolt-4-usb4-pcie-4/paged/6/#post-90400

That probably won't help solve the problem, but it may be informative.

Is there an ARM version of Linux that can boot on the M1 Macs yet? That might be the first way that eGPUs could work on the M1 Macs.

Mac mini (2018), Mac Pro (Early 2008), GA-Z170X-Gaming 7, Sapphire Pulse Radeon RX 580 8GB GDDR5, Radeon Pro W5700, Sonnet Echo Express III-D, Trebleet Thunderbolt 3 to NVMe M.2 case


ReplyQuote
Eightarmedpet
(@eightarmedpet)
Famed Member Moderator
Joined: 5 years ago
 

Doesnt one of the Windows virtualises (Parallels or something) have eGPU passthrough, so we are just waiting on an ARM based compile?

I am prob totally wrong there.

2017 13" MacBook Pro Touch Bar
GTX1060 + AKiTiO Thunder3 + Win10
GTX1070 + Sonnet Breakaway Box + Win10
GTX1070 + Razer Core V1 + Win10
Vega 56 + Razer Core V1 + macOS + Win10
Vega 56 + Mantiz Venus + macOS + W10

---

LG 5K Ultrafine flickering issue fix

 
2018 Mac Mini [8th,6C,B] + RX 580 @ 32Gbps-TB3 (AKiTiO Node Lite) + Win10 20H2 [build link]  


ReplyQuote
ZW - max
(@zw_-_max)
New Member
Joined: 11 months ago
 
Posted by: @joevt

This won't work unless your method involves enabling GPU pass through. I think your method only allows VMWare to use the GPU to help accelerate its virtual GPU? The GPU can't do that without working macOS drivers.

macOS on M1 Macs already detect the GPU as PCIe device. There are a couple screenshots in two eGPU.io threads related to M1 Macs showing this. The GPUs may have not had resources assigned though (at least they have a bus number?).

https://egpu.io/forums/desktop-computing/teardown-late-2020-mac-mini-apple-silicon-m1-thunderbolt-4-usb4-pcie-4/#post-89551
https://egpu.io/forums/which-gear-should-i-buy/apple-event-first-arm-macs-10-11-what-will-this-mean-for-egpu-users/paged/18/#post-89528

I suppose you should try to get a version of pciutils to work in macOS first on the M1 Mac.
https://egpu.io/forums/desktop-computing/teardown-late-2020-mac-mini-apple-silicon-m1-thunderbolt-4-usb4-pcie-4/paged/6/#post-90400

That probably won't help solve the problem, but it may be informative.

Is there an ARM version of Linux that can boot on the M1 Macs yet? That might be the first way that eGPUs could work on the M1 Macs.

Yes, there is a version of linux that is made for arm, at least for Ubuntu ( https://ubuntu.com/download/server/arm). Also, since the pcitree script is a sh file, I can prob run it on a m1 mac. I'll try it when I get the mac (it still hasn't arrived).

Posted by: @eightarmedpet

Doesnt one of the Windows virtualises (Parallels or something) have eGPU passthrough, so we are just waiting on an ARM based compile?

I am prob totally wrong there.

If there is a Windows hypervisor that supports hardware passthrough, then it'll probably be ported over to MacOs soon.

To do: Create my signature with system and expected eGPU configuration information to give context to my posts. I have no builds.

.

ReplyQuote
joevt
(@joevt)
Noble Member
Joined: 4 years ago
 
Posted by: @zw_-_max

Yes, there is a version of linux that is made for arm, at least for Ubuntu ( https://ubuntu.com/download/server/arm). Also, since the pcitree script is a sh file, I can prob run it on a m1 mac. I'll try it when I get the mac (it still hasn't arrived).

But supporting ARM doesn't necessarily mean supporting M1 Mac?

The pcitree script uses pciutils (lscpi and setpci) which requires a method to read PCIe registers which the M1 Macs don't come with, so a new DirectHW.kext will need to be created unless the ARM platform expert can do it like the ACPI Platform Expert did (which pciutils on macOS used).

Mac mini (2018), Mac Pro (Early 2008), GA-Z170X-Gaming 7, Sapphire Pulse Radeon RX 580 8GB GDDR5, Radeon Pro W5700, Sonnet Echo Express III-D, Trebleet Thunderbolt 3 to NVMe M.2 case


ReplyQuote
ZW - max
(@zw_-_max)
New Member
Joined: 11 months ago
 

Actually, I think Ubuntu arm64 is supported (in a vm at least). Someone got it to run (in a vm) using Apple's Hypervisor framework ( https://forums.macrumors.com/threads/ubuntu-linux-virtualized-on-m1-success.2270365/ )

This post was modified 10 months ago

To do: Create my signature with system and expected eGPU configuration information to give context to my posts. I have no builds.

.

ReplyQuote