Vmware: Difference between revisions

From Piszczynski
piszczynski>Aleks
No edit summary
piszczynski>Aleks
No edit summary
Line 25: Line 25:
*pciPassthru.use64bitMMIO="TRUE"
*pciPassthru.use64bitMMIO="TRUE"


== USB Passthrough ==
For USB passthrough of devices it can be a pain. For HID devices you will need to specify that it should not be controlled by the host.
You will need to find the details of all the USB devices with the following command:
*lsusb -v | grep -E '(^Bus|HID)'
then locate the vendor id and the device id (vvvv:dddd) in results next to the device name.
In the VM advanced settings add in the following parameters:
*usb.generic.allowHID = "TRUE"
*usb.quirks.device0 = "0xVVVV:0xDDDD allow"
Then in /etc/vmware/config file on the host add the following line:
*usb.quirks.device0 = "0x05fe:0x0011 allow"
Then add in a line to the boot config located here: /bootbank/boot.cfg to disable the host from taking control of the device:
*CONFIG./USB/quirks=0xVVVV:0xDDDD::0xffff:UQ_KBD_IGNORE
Reboot the Host.


== VM Recovery ==
== 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
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

Revision as of 23:02, 12 August 2022

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"


USB Passthrough

For USB passthrough of devices it can be a pain. For HID devices you will need to specify that it should not be controlled by the host.

You will need to find the details of all the USB devices with the following command:

  • lsusb -v | grep -E '(^Bus|HID)'

then locate the vendor id and the device id (vvvv:dddd) in results next to the device name.

In the VM advanced settings add in the following parameters:

  • usb.generic.allowHID = "TRUE"
  • usb.quirks.device0 = "0xVVVV:0xDDDD allow"

Then in /etc/vmware/config file on the host add the following line:

  • usb.quirks.device0 = "0x05fe:0x0011 allow"

Then add in a line to the boot config located here: /bootbank/boot.cfg to disable the host from taking control of the device:

  • CONFIG./USB/quirks=0xVVVV:0xDDDD::0xffff:UQ_KBD_IGNORE

Reboot the Host.

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