1.下载所需文件:
VMware vSphere Hypervisor (ESXi) Offline Bundle
https://customerconnect.vmware.com/evalcenter?p=free-esxi8&source=dwnp
注意看图,别下载错了。下载需要注册登录。
ESXi-Customizer-PS
https://github.com/VFrontDe-Org/ESXi-Customizer-PS/releases
注意:下载2.9版本,别用2.6了,2.6版本不能用于集成exsi 8.0驱动。
python依赖:
https://www.python.org/ftp/python/3.7.9/python-3.7.9-amd64.exe
注意:安装python的时候必须选择3.7版本,安装的时候必须勾选add python to path或者自己设置环境变量。
I225/I226 2.5G网卡社区版驱动:
https://flings.vmware.com/community-networking-driver-for-esxi#requirements
2.设置powershell和python
在powershell安装VMware.PowerCLI
Install-Module -Name VMware.PowerCLI
注意:受制于网络原因,安装过程较慢。提示信任之类的直接选择Y
安装python依赖的模块
pip.exe install six psutil lxml pyopenssl
设置PowerShell策略
Set-ExecutionPolicy-ExecutionPolicy RemoteSigned
Set-ExecutionPolicy Unrestricted
设置VMware.PowerCLI python 目录变量
Set-PowerCLIConfiguration -PythonPath "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\python.exe"
注意:这里的python环境变量按照你的实际情况来,默认情况下装3.7版本且勾选了add python to path的话,变量地址是这个。
3.集成驱动
命令参考:
把需要集成的驱动都放在pkg目录下即可。
.\ESXi-Customizer-PS.ps1 -izip .\VMware-ESXi-8.0-20513097-depot.zip -pkgDir .\pkg
VMware ESXi 8.0.0 build-20513097 许可证
有效:4V492-44210-48830-931GK-2PRJ4
ESXi 8: 4V492-44210-48830-931GK-2PRJ4
VCSA 8: 0Z20K-07JEH-08030-908EP-1CUK4
ESXi 8: 4F40H-4ML1K-M89U0-0C2N4-1AKL4
VCSA 8: 0F41K-0MJ4H-M88U1-0C3N0-0A214
ESXi 8: HG00K-03H8K-48929-8K1NP-3LUJ4
VCSA 8: 4F282-0MLD2-M8869-T89G0-CF240
vSAN 8: NF212-08H0K-488X8-WV9X6-1F024
vSAN 8 witness: JF61H-48K8K-488X9-W98Z0-1FH24
Horizon Enterprise v8.x: 0G4DA-49J81-M80R1-012N4-86KH4