VirtualBox

Ticket #17730 (new enhancement)

Opened 4 years ago

Last modified 3 years ago

Support PCI Passthrough for OSX Hosts

Reported by: jimm Owned by:
Component: host support Version: VirtualBox 5.2.10
Keywords: Cc:
Guest type: all Host type: Mac OS X

Description

PCI Passthrough is supported on VirtualBox for Linux hosts, it also works with VMWare Fusion for OSX. Would be nice to see working on OSX hosts.

Change History

comment:1 Changed 4 years ago by socratis

What PCI card were you thinking of passing through? If you were thinking about the GPU for gaming, do you have two GPUs on your Mac?

Plus I'm not sure that the Darwin kernel has all that it takes to have PCI passthrough enabled...

comment:2 Changed 4 years ago by socratis

I forgot to ask you this, but it's definitely worth its own comment...

I don't usually deal with other virtualization programs, but AFAIK, Fusion does NOT support PCI passthrough. If I'm not educated enough, as they often say in Wikipedia, then [Citation needed].

comment:3 Changed 4 years ago by jimm

Not actually passing through anything, however need to have VFIO driver support to run  https://github.com/spdk/spdk against the Virtual NVMe drive and this only happens when VT-d / IOMMU is supported in guest.

When passthrough works the /sys/kernel/iommu_groups/ folder contains subfolders and files. When it doesn't it is empty.

Can get this working in VirtualBox under Linux, can do it under VMWare Fusion OSX too, but OSX does not has this support.

comment:4 follow-up: ↓ 5 Changed 4 years ago by berkovskyy

I am interested in this feature being implemented. I am using MacBook with a network card in a Thunderbolt enclosure. I prefer macOS For simple everyday tasks, such as browsing, but for anything non-trivial I prefer Linux guest environment inside VirtualBox. At the moment my storage is connected via 10GbE, because macOS have drivers for very limited number of cards. Being able to passthrough SAS, 10GbE and other cards in Thunderbolt enclosures would be great as it would allow to use most of PCIe cards with Linux guests directly.

Being able to passthrough GPU would be good as well, but I am not very interested in this scenario.

comment:5 in reply to: ↑ 4 Changed 4 years ago by socratis

Replying to berkovskyy:

MacBook with a network card in a Thunderbolt enclosure

That's not PCI passthrough, that's a completely different bus. And with the adoption rate, I wouldn't keep my hopes high.

comment:6 follow-up: ↓ 7 Changed 3 years ago by zengyulu

Hi, is there any update on this ticket? I am verifying the pci passthrough on my macbook pro 2017 for thunderbolt 3 and virtualbox 6.0 doesn't work obviously.

comment:7 in reply to: ↑ 6 ; follow-up: ↓ 8 Changed 3 years ago by socratis

Replying to zengyulu:

Hi, is there any update on this ticket?

Yes, there is an update, just not in the direction that you might be thinking. With 6.1.0, even the PCI passthrough (which might have worked for Linux Hosts only) has been dropped. Not only you're not going to see Thunderbolt passthrough, but not even PCI.

From the latest 6.1.0RC1+ changelog:

  • Linux host: Drop PCI passthrough, the current code is too incomplete (cannot handle PCIe devices at all), i.e. not useful enough


Replying to zengyulu:

I am verifying the pci passthrough on my macbook pro 2017 for thunderbolt 3 and virtualbox 6.0 doesn't work obviously.

I'm sorry, but ... are you verifying that something that was not supposed to exist, does not in fact exist?

Boy, do I have some news for you, regarding  Bigfoot™ and the  Loch Ness Monster™... :D

comment:8 in reply to: ↑ 7 Changed 3 years ago by zengyulu

Replying to socratis:

Replying to zengyulu:

Hi, is there any update on this ticket?

Yes, there is an update, just not in the direction that you might be thinking. With 6.1.0, even the PCI passthrough (which might have worked for Linux Hosts only) has been dropped. Not only you're not going to see Thunderbolt passthrough, but not even PCI.

From the latest 6.1.0RC1+ changelog:

  • Linux host: Drop PCI passthrough, the current code is too incomplete (cannot handle PCIe devices at all), i.e. not useful enough

PCI Passthrough is such important to VM. Hopefully in future version this feature can be picked again and made complete. Otherwise, I have to drop VirtualBox as well...

Last edited 3 years ago by zengyulu (previous) (diff)
Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use