ESXI PASSTHROUGH GPU WIFI USB PRETTY

2023-08-23 14:53:19 浏览数 (1)

ESXI PASSTHROUGH GPU WIFI USB PRETTY

  • WARNING: NvmeScsi: 196: SCSI opcode 0x1a (0x457900ba2c40) on path vmhba4:C0:T0:L0 to namespace t10.NVMe failed with NVMe error status: 0x2
  • WARNING: translating to SCSI error H:0x0 D:0x2 P:0x0 Valid sense data: 0x5 0x24 0x0
  • WARNING: ScsiDeviceIO: 4422: ModeSense 0x1a request failed - blocking page:0x1c subpage:0x2 t10.NVMe
  • inter wifi won’t start
  • INTER AX200 / AX210 ESXI / PVE / UNRaid
  • WiFi Bluetooth
  • openwrt can’t find wlan
  • FAIL - Module ‘DevicePowerOn’ failed to power on.
  • ESXI Windows inter WiFi not work
  • ESXI Windows AMD GPU not work
  • ESXI virtual machine fails to boot after reboot (AMD GPU)
  • ESXI cannot start the virtual machine
代码语言:javascript复制
scp ~/.ssh/authorized_keys esxi:/etc/ssh/keys-root/authorized_keys
ssh esxi "echo 'ChallengeResponseAuthentication no' >> /etc/ssh/sshd_config"
ssh esxi "echo 'PasswordAuthentication no' >> /etc/ssh/sshd_config"

### GPU
ssh esxi "lspci -v | grep -iA 1 Display"
ssh esxi "echo '1002  731f  bridge   false' >> /etc/vmware/passthru.map"
ssh esxi "echo '1002  731f  link     false' >> /etc/vmware/passthru.map"
ssh esxi "echo '1002  731f  d3d0     false' >> /etc/vmware/passthru.map"
ssh esxi "echo '/device/0000:05:00.0/owner = "passthru"' >> /etc/vmware/esx.conf"
### GPU END

### USB
ssh esxi "lsusb"
ssh esxi "echo 'usb.generic.allowHID = "TRUE"' >> /etc/vmware/config"
ssh esxi "echo 'usb.quirks.device0 = "0x046d:0xc52b allow"' >> /etc/vmware/config"
echo '"kernelopt=autoPartition=FALSE CONFIG./USB/quirks=0x046d:0xc52b::0xffff:UQ_KBD_IGNORE" : /bootbank/boot.cfg'
### USB END

# WIFI
echo '一般情况 WiFi 带蓝牙 注意直通 USB 蓝牙'
ssh esxi "lspci | grep Network"
ssh esxi "echo '8086  2725  bridge   false' >> /etc/vmware/passthru.map"
ssh esxi "echo '8086  2725  link     false' >> /etc/vmware/passthru.map"
ssh esxi "echo '8086  2725  d3d0     false' >> /etc/vmware/passthru.map"
ssh esxi "echo '/device/0000:0a:00.0/owner = "passthru"' >> /etc/vmware/esx.conf"

ssh esxi "lsusb -v | grep -i Bluetooth | grep Bus"
ssh esxi "echo 'usb.quirks.device1 = "0x8087:0x0032 allow"' >> /etc/vmware/config"
echo '"kernelopt=autoPartition=FALSE CONFIG./USB/quirks=0x046d:0xc52b::0xffff:UQ_KBD_IGNORE:0x8087:0x0032::0xffff:UQ_KBD_IGNORE" : /bootbank/boot.cfg'
### WIFI END

### Update
echo 'esxcli software vib install -d $PWD/nvme-community-driver_1.0.1.0-3vmw.700.1.0.15843807-component-18902434.zip'
echo 'esxcli software vib install -v $PWD/nvme.vib'
echo 'esxcli software sources profile list -d $PWD/VMware-ESXi-8.0a-20842819-depot.zip'
echo 'esxcli software profile update -d $PWD/VMware-ESXi-8.0a-20842819-depot.zip -p ESXi-8.0a-20842819-standard'
echo 'vmkfstools -i OpenWrt1.vmdk -d thin OpenWrt.vmdk'
echo 'vmkfstools -K OpenWrt.vmd'
### Update END

### Windows
echo 'hypervisor.cpuid.v0:FALSE'
echo 'pciPassthru0.msiEnabled : FALSE'
echo 'pciPassthru1.msiEnabled : FALSE'
echo 'pciPassthru.64bitMMIOSizeGB : 16'
echo 'pciPassthru.use64bitMMIO : TRUE'
### Windows END

### macOS
echo 'pciPassthru0.msiEnabled : FALSE'
echo 'pciPassthru1.msiEnabled : FALSE'
echo 'pciPassthru.64bitMMIOSizeGB : 16'
echo 'pciPassthru.use64bitMMIO : TRUE'
echo 'smbios.reflectHost : FALSE'
echo 'hw.model.reflectHost : FALSE'
echo 'board-id.reflectHost : FALSE'
echo 'serialNumber.reflectHost : FALSE'
echo 'smbios.use12CharSerialNumber : TRUE'
echo 'hw.model : MacPro7,1'
echo 'serialNumber : F5KZR05YP7QM'
echo 'board-id : Mac-27AD2F918AE68F61'
### macOS END

### OpenWrt
echo 'hypervisor.cpuid.v0:FALSE'
echo 'pciPassthru0.msiEnabled : FALSE'
echo 'pciPassthru.64bitMMIOSizeGB : 16'
echo 'pciPassthru.use64bitMMIO : TRUE'
echo 'vmkernel.boot.disableACScheck : TRUE'
### OpenWrt END

rm -rf /tmp/*.txt
rm -f /var/log/*.log

THANKS

  • https://github.com/gnif/vendor-reset
  • https://blog.csdn.net/qq_33451584/article/details/128653198
  • https://badb100d.com/2021/01/04/2021-01-04/
  • https://docs.nvidia.com/grid/4.7/grid-vgpu-release-notes-vmware-vsphere/index.html
  • https://www.appleice.cn/2021/01/27/ESXI-直通显卡,重启-关闭虚拟机导致宿主机死机的解决方法/
  • https://blog.chasemi.com/archives/256/esxi6-0-6-5-6-7passthrough-video-cardhang-freeze/
  • https://www.simaek.com/archives/69/
  • https://blog.lv5.moe/p/pve-virtualized-hackintosh-gpu-passthrough-and-remote-access-tutorial
  • https://wiki.noodlefighter.com/计算机/虚拟技术/proxmox显卡直通/

XRSec has the right to modify and interpret this article. If you want to reprint or disseminate this article, you must ensure the integrity of this article, including all contents such as copyright notice. Without the permission of the author, the content of this article shall not be modified or increased or decreased arbitrarily, and it shall not be used for commercial purposes in any way

0 人点赞