Vmware

From Piszczynski
Revision as of 19:25, 10 August 2022 by piszczynski>Aleks

PCIE GPU Passthrough

To get passthrough working on esxi host to VM you will need to change a few settings. This works for HP ML350 Gen9 Host:

Add the correct configuration to the /etc/vmware/passthru.map file on the esxi host: There will be a line like this:

# NVIDIA

10de  ffff  bridge  false

Add beneath:

10de  <Code for your GPU>  d3d0  false

The codes can be found here: https://devicehunt.com/view/type/pci/vendor/10DE/device/11C6


Then modify the following parameters of the VM (can be done in the edit settings > VM advanced section on in the .vmx file)

  • hypervisor.cpuid.v0 = FALSE
  • pciPassthru0.msiEnabled = FALSE

If the GPU has a lot of memory you may want to enable the following parameter:

  • pciPassthru.use64bitMMIO="TRUE"


VM Recovery

If a windows VM is not booting and needs to be recovered you may need to sideload the PVSCSI drivers - these can usually be loaded from a virtual cdrom drive in vmware during the windows installation/recovery process when you have booted from installation media. The drivers should be in vmware in a windows.iso located in vmimages\tools-isoimages