最近买了个 J4125 工控机,主板上有 4 个 Intel I225-V 网卡,收到货后在安装 ESXi 时提示找不到网卡,于是寻找了相关资料,自己生成了一个包含社区网卡驱动的 ISO 文件,整理出此文章,需要添加其他的软件包也可参照此方法。
第一步,下载安装相关软件和包
1.下载 VMware vSphere Hypervisor (ESXi) Offline Bundle:https://customerconnect.vmware.com/downloads/details?downloadGroup=ESXI70U3F&productId=974
2.安装VMware PowerCLI:https://developer.vmware.com/powercli/installation-guide
3.下载网卡驱动:https://flings.vmware.com/community-networking-driver-for-esxi
第二步,自定义软件包并制作 ISO 文件
1. 导入软件包,命令及输出如下所示:
# 1.导入基础包
PS D:\Data\ISO\esxi> Add-EsxSoftwareDepot VMware-ESXi-7.0U3f-20036589-depot.zip
Depot Url
---------
zip:D:\Data\ISO\esxi\VMware-ESXi-7.0U3f-20036589-depot.zip?index.xml
# 2.导入网卡驱动
PS D:\Data\ISO\esxi> Add-EsxSoftwareDepot Net-Community-Driver_1.2.7.0-1vmw.700.1.0.15843807_19480755.zip
Depot Url
---------
zip:D:\Data\ISO\esxi\Net-Community-Driver_1.2.7.0-1vmw.700.1.0.15843807_19480755.zip?index.xml
# 3.查看软件包列表
PS D:\Data\ISO\esxi> Get-EsxSoftwarePackage
Name Version Vendor Creation Date
---- ------- ------ -------------
elx-esx-libelxima.so 12.0.1200.0-4vmw.703.0.20.1... VMware 2022/1/11 23:...
native-misc-drivers 7.0.3-0.50.20036589 VMware 2022/6/30 14:...
lpnic 11.4.62.0-1vmw.703.0.20.191... VMW 2022/1/11 23:...
...
net-community 1.2.7.0-1vmw.700.1.0.15843807 VMW 2022/3/10 21:...
...
2. 自定义软件包并导出 ISO 文件,命令及输出如下所示:
# 1.查看映像配置列表
# 已有的这 4 个是刚才从 VMware-ESXi-7.0U3f-20036589-depot.zip 导入的
PS D:\Data\ISO\esxi> Get-EsxImageProfile
Name Vendor Last Modified Acceptance Level
---- ------ ------------- ----------------
ESXi-7.0U3f-20036589-no-tools VMware, Inc. 2022/6/30 15... PartnerSupported
ESXi-7.0U3f-20036589-standard VMware, Inc. 2022/7/12 0:... PartnerSupported
ESXi-7.0U3sf-20036586-no-tools VMware, Inc. 2022/6/30 13... PartnerSupported
ESXi-7.0U3sf-20036586-standard VMware, Inc. 2022/7/12 0:... PartnerSupported
# 2.从 ESXi-7.0U3f-20036589-standard 克隆一个映像配置
PS D:\Data\ISO\esxi> New-EsxImageProfile -CloneProfile ESXi-7.0U3f-20036589-standard -name ESXi-7.0U3f-20036589-standard-net-community -Vendor henry
Name Vendor Last Modified Acceptance Level
---- ------ ------------- ----------------
ESXi-7.0U3f-20036589-standa... henry 2022/7/12 0:... PartnerSupported
# 3.添加网卡软件包
PS D:\Data\ISO\esxi> Add-EsxSoftwarePackage -ImageProfile ESXi-7.0U3f-20036589-standard-net-community -SoftwarePackage net-community
Name Vendor Last Modified Acceptance Level
---- ------ ------------- ----------------
ESXi-7.0U3f-20036589-standa... henry 2022/8/29 17... PartnerSupported
# 4.从映像配置导出 ISO 文件
PS D:\Data\ISO\esxi> Export-EsxImageProfile -ImageProfile ESXi-7.0U3f-20036589-standard-net-community -ExportToISO -filepath .\ESXi-7.0U3f-20036589-standard-net-community.iso
然后使用导出的 ISO 镜像文件再进行安装就可以识别到网卡了~