Has anyone had this issue? I have a GPU Host with ...
# _gpu
j
Has anyone had this issue? I have a GPU Host with qty 4 L40 GPUs and after upgrading to VSphere8 it fails to initialize the GPUs. it doesnt show right in the SR-IOV section of vcenter despite all settings double, triple, quadruple checked. we have done bios updates, nvidia driver updates, everything I can think of. tickets open with vmware, supermicro and the vendor we purchased the hardware and the only thing we can come back to is the board is a slightly different model than the supported model on vmwares website. vsphere7 is working just fine, but going to 8 is the problem. only 1.5 year old hardware. Any help would be appreciated!
j
Did you reinstall the nvidia components after the vmware upgrade?
j
yep
j
Do you see them under Graphics in the hardware section under the hypervisor? What do you see under PCI devices passthrough-enabled and All PCI devices? Seeing the devices all listed there?
j
yes they are all listed and show the right name and everything, but when you try to power on it says its failed to initialize gpu, etc. @Michael Barnes
j
Do you have the full error? What do you see under /var/log/vmkernel.log when you attempt to boot the vm?
Also, did you mask the gpu from the vmkernel, so it doesn't try and use it for the console display?
j
ok will check this stuff out. Thanks for the reply!
s
I see the comment above about re-installing the driver, but please note that the ESXi 8 driver is different than the ESXi 7 driver. You'll need to download and install the ESX8 driver, and not re-use the 7 driver. Can you confirm if you did this?
j
yep, sure did. tried different versions of the ESXi 8 driver after upgrading
s
How did you upgrade? vLCM image based updates?
And did you install both the driver and the GPU Management daemon?
SR-IOV may appear different if the GPU MGMT Daemon is not present
j
thanks for this @Stephen Daniel Wagner I am going to go back to my team and make sure all of these were done. I am pretty sure we did the management daemon after as well, but we have attempted this so many times after hours at odd times that I cannot recall specifically. appreciate the info!
👍 1
m
The first go around we upgraded ESXi through the LCM update within vCenter. We then did a removal of the GPU management daemon and driver replacing it with the version for 8. We also tried removing the management daemon and driver prior to ESXi update, however still ran into the same issues We have even tried wiping everything completely and starting with 8.0U3 instead of doing upgrades, still no SR-IOV.
SR-IOV shows that you can turn it on but will not allow it as the Virtual Functions display a maximum of 0, however when using ESXi 7.0U3 the maximum is 32 and SR-IOV enables without issue
j
Is SR-IOV needed? I do pci pass through with 8.0 without sr-iov all the time and it works fine.
m
We split the GPU into different vGPUs that are offered up to multiple VMs
It is really odd to me that ESXi 7 works fine but 8 will not fully initialize the GPUs and we have issues even when trying to enable passthrough
j
They did kind of change the assignment config from 7 to 8. 8 doesn't require SR-IOV for instance, you can just do PCI device assignment, and vgpu assignment a lot easier with 8 over 7.
j
Jeff would you suggest simply disabling SR-IOV to see if that makes it work?
j
I would. Try and use just the pci passthrough instead of sr-iov and see how that handles starting vms
j
like at the BIOS level?
hmm ok
j
No, in esxi.
j
ok @Michael Barnes did we try that do you remember?
m
I tried to enable passthrough and it fails
I do not recall the error on that one though. I can try again on our next window
j
Here is what the settings look like on one of my Windows 11 vms with an nvidia vgpu set.
j
ok but this is not pass-through right?
this is vGPU
s
Are you matching the vGPU release versions from 7 to 8?
j
yes ^
j
Still works with full pci passthrough in the same way, enabling the vgpu just lets me carve it up. But I have a 4500 I throw in the machine every now and then and do a full pci-passthrough with it. Same method.
s
Also if you change SR-IOV from default on ESXi, it will stop the driver from working. You'll need to uninstall the vGPU driver, revert the SR-IOV setting and then reinstall the driver. I think there's a KB for this.
m
1 of my attempts I did a completely fresh install of ESXi 8.0U3, installed the daemon, drivers, then restarted and still had the SR-IOV issues
j
So SR-IOV is different from pci pass through. are you just trying to mount the pci device into the vm, or leverage some sr-iov function on the card into the vm.
If you are looking to leverage sr-iov under esxi8 make sure enhanced directpath i/o is turned off. That can cause issues with both Toggle passthrough and sr-iov in ways that was not seen with esxi 7
s
vGPU uses SR-IOV on some GPU chipsets, but it requires no user intervention as default settings in the hypervisor are fine. You do need to make sure SR-IOV is enabled in the BIOS, but never touch any of the SR-IOV settings on the hypervisor.
m
It is enables in the BIOS and works fine with ESXi 7 only stops working when 8 is installed
s
On ESXi, if the driver is working, looking at PCI Devices, and SR-IOV will both show as Disabled.
image.png
This is what you should be seeing on ESXi 8 with an Ada Lovelace card.
j
thanks this is super helpful to see what it SHOULD be
👍 1
s
First example is from one of my hosts with an A2, and the second example is a host I have with an L4
The GPU MGMT daemon is what controls/uses the SR-IOV functions, it's not ESXi that configures it (but as you can see, if does see the functions, just not the normal way that SR-IOV shows it with NICs). 🙂
m
Same on ours with the L40 that you've got, fwiw. Hopefully you don't need to dig too far, but nvidia-smi has a ton of detail (with the extended switches) if you need to poke around.
j
I wanted to circle back on this thread because we ended up buying a new chassis to fix this issue but with a supported board that wasn't on vmwares HCL before. Still had the same problem, except this time VMware helped us. This was the setting that fixed the problem! setting this to True to bypass the checks