1.下載所需文件:
VMware vSphere Hypervisor (ESXi) Offline Bundle
https://customerconnect.vmware.com/evalcenter?p=free-esxi8&source=dwnp
注意看圖,別下載錯(cuò)了。下載需要注冊(cè)登錄。

ESXi-Customizer-PS
https://github.com/VFrontDe-Org/ESXi-Customizer-PS/releases
注意:下載2.9版本,別用2.6了,2.6版本不能用于集成exsi 8.0驅(qū)動(dòng)。
python依賴(lài):
https://www.python.org/ftp/python/3.7.9/python-3.7.9-amd64.exe
注意:安裝python的時(shí)候必須選擇3.7版本,安裝的時(shí)候必須勾選add python to path或者自己設(shè)置環(huán)境變量。
I225/I226 2.5G網(wǎng)卡社區(qū)版驅(qū)動(dòng):
https://flings.vmware.com/community-networking-driver-for-esxi#requirements
2.設(shè)置powershell和python
在powershell安裝VMware.PowerCLI
Install-Module -Name VMware.PowerCLI
注意:受制于網(wǎng)絡(luò)原因,安裝過(guò)程較慢。提示信任之類(lèi)的直接選擇Y
安裝python依賴(lài)的模塊
pip.exe install six psutil lxml pyopenssl

設(shè)置PowerShell策略
Set-ExecutionPolicy-ExecutionPolicy RemoteSigned
Set-ExecutionPolicy Unrestricted

設(shè)置VMware.PowerCLI python 目錄變量
Set-PowerCLIConfiguration -PythonPath "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\python.exe"
注意:這里的python環(huán)境變量按照你的實(shí)際情況來(lái),默認(rèn)情況下裝3.7版本且勾選了add python to path的話,變量地址是這個(gè)。
3.集成驅(qū)動(dòng)
命令參考:
把需要集成的驅(qū)動(dòng)都放在pkg目錄下即可。
.\ESXi-Customizer-PS.ps1 -izip .\VMware-ESXi-8.0-20513097-depot.zip -pkgDir .\pkg
