1、下载VMware-PowerCLI
https://code.vmware.com/web/tool/12.0.0/vmware-powercli
下载好后,得到了文件VMware-PowerCLI-12.0.0-15947286.zip。
把压缩包中的所有文件夹解压到PowerShell的Modules目录中,比如C:\Program Files\WindowsPowerShell\Modules
配置远程执行策略为允许:
Set-ExecutionPolicy RemoteSigned
配置忽略证书验证:
Set-PowerCLIConfiguration -Scope AllUsers -ParticipateInCeip $false -InvalidCertificateAction Ignore
2、下载ESXi-Customizer-PS
创建一个目录,用于存放ESXi-Customizer-PS
git clone https://github.com/VFrontDe/ESXi-Customizer-PS.git
3、下载VMware vSphere Hypervisor的Offline Bundle程序包
https://my.vmware.com/zh/group/vmware/patch#search
下载的ESXi670-202201001.zip放到ESXi-Customizer-PS文件夹里
4、下载螃蟹卡的VIB驱动程序
https://vibsdepot.v-front.de/wiki/index.php/Net55-r8168
在ESXi-Customizer-PS文件夹里创建pkg目录,下载的VIB File驱动放到pkg目录里
PS:USB网卡的驱动在这里下载:https://flings.vmware.com/usb-network-native-driver-for-esxi
5、导入螃蟹卡的VIB驱动
使用管理员打开Windows PowerShell,切换到ESXi-Customizer-PS目录下,执行:
.\ESXi-Customizer-PS.ps1 -izip .\ESXi670-202201001.zip -pkgDir .\pkg
6、使用rufus-3.18.exe把生成的ESXi-6.7.0-20220104001-standard-customized.iso写入到U盘