Windows下使用VMware PowerCLI向VMware ESXI添加第三方网卡驱动方法

ESXi-Customizer-PS 是一个第三方脚本文件 通过VMware PowerCLI工具打包esxi

esxi集成了大多数服务器驱动而未集成其常见pc板驱动所以我们需要在普通pc机安装则需要重新打包软件

1.先下载离线包zip格式esxi下载到D盘:https://customerconnect.vmware.com/cn/downloads/info/slug/datacenter_cloud_infrastructure/vmware_vsphere/6_7#product_downloads
2.ESXi-Customizer-PS脚本地址下载到D盘:https://github.com/VFrontDe/ESXi-Customizer-PS  将ESXi-Customizer-PS放到D盘。

3.VMware PowerCLI工具下载:https://developer.vmware.com/web/tool/12.6.0/vmware-powercli

4.打开Windows PowerShell(管理员)运行以下两句命令更改策略

  Set-ExecutionPolicy -ExecutionPolicy RemoteSigned

  Set-ExecutionPolicy Unrestricted

5.打开Windows PowerShell(管理员)运行命令 $ENV:PSModulePath.Split(";")会返回三个目录

6.将VMware PowerCLI分别解压到 $ENV:PSModulePath.Split(";")返回的三个目录下 

  然后运行shell如下命令

  Get-ChildItem * -Recurse | Unblock-File

  Get-Module -Name VMware.PowerCLI -ListAvailable

  忽略证书验证:Set-PowerCLIConfiguration -InvalidCertificateAction ignore
  修改执行权限:Set-executionpolicy remotesigned

  Update-Module -Name VMware.PowerCLI

7.查看需要集成的网卡id

 

8.查询网卡名称网址:

https://vibsdepot.v-front.de/wiki/index.php/List_of_currently_available_ESXi_packages

 

 

 

 

 

 

9.右键以管理员administrator身份运行VMware PowerCLI工具,切换到D盘(ESXi-Customizer-PS脚本放在D盘根目录)运行以下命令(耐心等待运行完成)

  .\ESXi-Customizer-PS.ps1 -izip .\ESXi670-201912001.zip -vft -load  net55-r8168,sata-xahci

 

 

如果出现硬盘无法加载的情况注意关闭电脑的安全启动即可,且注意硬盘模式为ahci

 

或者是将离线包驱动下载到D盘dir下运行 

.\ESXi-Customizer-PS.ps1 -izip .\ESXi670-201912001.zip -pkgDir "D:\dir\"

  

 

其他驱动 usb pcie-net  nvme 

https://flings.vmware.com/usb-network-native-driver-for-esxi

https://flings.vmware.com/community-networking-driver-for-esxi

 https://flings.vmware.com/community-nvme-driver-for-esxi

 

posted @ 2022-06-09 12:06  冰糖狐狸  阅读(3005)  评论(0)    收藏  举报