ESXi 7.0:添加社区网卡驱动

·2 min read·BIGWONG Studio
Network

使用 VMware PowerCLI 将社区板载网卡和 USB 网卡驱动添加到 ESXi 7.0+ 官方安装镜像中。

安装 VMware PowerCLI

  • 下载 PowerCLI 离线安装包(包含依赖项)
  • 解压到 C:\Program Files\WindowsPowerShell\Modules
  • 在该目录中 Shift + 右键 打开 PowerShell
  • 运行以下命令解除文件锁定:
Get-ChildItem * -Recurse | Unblock-File
  • 以管理员身份运行 PowerShell,然后执行:
Set-ExecutionPolicy RemoteSigned
  • 验证安装:
Import-Module VMware.ImageBuilder

如果没有报错,说明 PowerCLI 已安装成功。

ESXi 和 PowerCLI 更新频繁。构建 ISO 时两者版本必须匹配。最新 PowerCLI 离线包可在此查找:PowerCLI 安装指南

下载 ESXi 和社区驱动

构建 ISO

  • 在下载文件所在目录中打开 PowerShell
  • 运行以下命令(请替换为你实际下载的文件名):
Add-EsxSoftwareDepot .\VMware-ESXi-7.0U3c-19193900-depot.zip
Add-EsxSoftwareDepot .\Net-Community-Driver_1.2.7.0-1vmw.700.1.0.15843807_19480755.zip
Add-EsxSoftwareDepot .\ESXi703-VMKUSB-NIC-FLING-51233328-component-18902399.zip
  • 查找基础配置文件:
Get-EsxImageProfile
  • 复制包含 standard 的配置文件名,例如 ESXi-7.0U3c-19193900-standard
  • 创建自定义配置文件(替换配置文件名):
New-EsxImageProfile -CloneProfile "ESXi-7.0U3c-19193900-standard" -name "ESXi-7.0U3c-19193900-bigppwong" -Vendor "bigppwong.github.io"
  • 添加社区驱动包:
Add-EsxSoftwarePackage -ImageProfile "ESXi-7.0U3c-19193900-bigppwong" -SoftwarePackage "net-community"
  • 导出 ISO:
Export-ESXImageProfile -ImageProfile "ESXi-7.0U3c-19193900-bigppwong" -ExportToISO -filepath ESXi-7.0U3c-19193900-bigppwong.iso

删除配置文件可使用 Remove-EsxImageProfile