Troubleshooting GPU passthrough ESXi 6.5

Serj_82

New Member
Aug 11, 2020
5
0
1
For 1 - see if you can move the cards to different pcie slots, you might be drawing too much power or hitting a pcie lane limit. You will need to experiment since it isnt an exact science.
For 2 - nvidia drivers are super picky and it might take a lot of trial and error to get them working. Also you may need to monitor or dummy plug setup on the video card. The other thing i recall is i had to remove the virtual video driver as nvidia drivers looked for that as a clue to running virtual machine. there is alot of info in the threads here so you may need to spend some time reading the threads and looking for what worked for various people and trying it out.

good luck.
Unfortunately, the motherboard has only one riser-board slot.
And on the riser there are only three PСI-E ports (two short and one long). The long one takes up the video card and blocks access to the first short slot. And in the second short slot - a wi-fi card is installed.
 

marcoi

Well-Known Member
Apr 6, 2013
1,398
222
63
Gotha Florida
Unfortunately, the motherboard has only one riser-board slot.
And on the riser there are only three PСI-E ports (two short and one long). The long one takes up the video card and blocks access to the first short slot. And in the second short slot - a wi-fi card is installed.
Have you tried using another card in the third slot to see if the same thing happens?
 

chrissiemoore1

New Member
Aug 19, 2020
1
1
3
spent two days trying to get this to work..went thru variations of blue screen with video error and booted but disabled in device manager.

in the end.. i made a brand new VM
i have esxi 6.7.. however when i made the VM i chose 6.0 version for that win10 vm this time

added BOTH the Nvidia geforce card AND its SOUND portion .. so TWO pci additional pieces.
installed windows.
updated windows
shutdown vm

added JUST this one parameter.
hypervisor.cpuid.v0
to false

restarted.... installed the video card fine. drivers works. everyone happy.

my specs:

amd ryzen 5
geforce 1050TI
64GB ram


i made this account just to post this and help other poor souls

EDIT: ill add that after booting up after adding the param i gotblack screen in esxi console.
so before I rebooted I installed VNC server. I do that on all my machines so.
 
Last edited:
  • Like
Reactions: epicurean

brentk

New Member
Aug 9, 2020
1
0
1
I have spent the last two weeks trying to get GPU passthrough working with an RTX 2060 Super GPU / Gigabyte Aourus Z390 MB / Intel i9 system. Running ESXi 7.0 and Windows 10 Pro guest. Everything works fine until I reboot the guest, then I get the Code 43 Nvidia driver error until I reboot the ESXi host (unless I disable the Nvidia device before reboot).
I have tried all the settings I found in this thread with no luck (Edited passthru.map, set hypervisor.cpuid.v0 =FALSE, set pciPassthru{0/1/3}.msiEnabled = FALSE, tried EFI & BIOS, even tried patching the Nvidia drivers). I've also tried multiple different BIOS settings.
I have also tried unsuccessfully to use earlier versions of ESXi, but each version I tried had different problems which stopped me from getting to the point of running the VM with passthrough (missing network drivers on ESXi 6.0 / ESXi hanging on startup if any PCI devices are passed through With ESXi 6.7.0U3B etc.)

I have managed to successfully get Passthrough to work on this machine using a KVM setup with UNRAID insteqad of ESXi - but I'd way prefer to use ESXi as it has much better snapshot features.

Is anybody able to please provide any advice on how to get rid of the Code 43 error?
 

hmw

Active Member
Apr 29, 2019
199
61
28
I have spent the last two weeks trying to get GPU passthrough working with an RTX 2060 Super GPU / Gigabyte Aourus Z390 MB / Intel i9 system. Running ESXi 7.0 and Windows 10 Pro guest. Everything works fine until I reboot the guest, then I get the Code 43 Nvidia driver error until I reboot the ESXi host (unless I disable the Nvidia device before reboot).
I have tried all the settings I found in this thread with no luck (Edited passthru.map, set hypervisor.cpuid.v0 =FALSE, set pciPassthru{0/1/3}.msiEnabled = FALSE, tried EFI & BIOS, even tried patching the Nvidia drivers). I've also tried multiple different BIOS settings.
I have also tried unsuccessfully to use earlier versions of ESXi, but each version I tried had different problems which stopped me from getting to the point of running the VM with passthrough (missing network drivers on ESXi 6.0 / ESXi hanging on startup if any PCI devices are passed through With ESXi 6.7.0U3B etc.)

I have managed to successfully get Passthrough to work on this machine using a KVM setup with UNRAID insteqad of ESXi - but I'd way prefer to use ESXi as it has much better snapshot features.

Is anybody able to please provide any advice on how to get rid of the Code 43 error?
The GPU is actually multiple devices and these are all passed thru - e.g. one might be the GPU itself and the other might be the HDMI audio controller (dev_id 10f0 is the HDMI Audio device) that is part of the GPU. In the virtual machine's VMX file Set pciPassthruX.msiEnabled=FALSE for every device associated with the GPU except the GPU itself.

In the passthru.map - comment out the default NVIDIA entry (It will '10de ffff bridge false'') and put in

Code:
# <ven_id> <dev_id> <reset_method> <setting>
10de  10f0  d3d0  false
Also - add the following to the VMX file

Code:
pciPassthru.use64bitMMIO="TRUE"