以系統管理員身分執行 powershell
Install-Module -Name VMware.PowerCLI
Set-ExecutionPolicy -ExecutionPolicy Bypass
下載 ESXi-Customizer-PS
https://www.v-front.de/p/esxi-customizer-ps.html#download
腳本說明
.ESXi-Customizer-PS-v2.6.0.ps1 -help
This is ESXi-Customizer-PS Version 2.6.0 (visit https://ESXi-Customizer-PS.v-front.de for more information!)
Usage:
ESXi-Customizer-PS [-help] | [-izip [-update]] [-sip] [-v67|-v65|-v60|-v55|-v51|-v50]
[-ozip] [-pkgDir
[-load vib1[,…]] [-remove vib1[,…]] [-log ] [-ipname ]
[-ipdesc ] [-ipvendor ] [-nsc] [-test]
-help : display this help
-izip : use the VMware Offline bundle as input instead of the Online depot
-update : only with -izip, updates a local bundle with an ESXi patch from the VMware Online depot,
combine this with the matching ESXi version selection switch
-pkgDir
-ozip : output an Offline bundle instead of an installation ISO
-outDir
script directory. If specified the log file will also be moved here.)
-vft : connect the V-Front Online depot
-dpt depot1[,…] : connect additional Online depots by URL or local Offline bundles by file name
-load vib1[,…] : load additional packages from connected depots or Offline bundles
-remove vib1[,…] : remove named VIB packages from the custom Imageprofile
-sip : select an Imageprofile from the current list
(default = auto-select latest available standard profile)
-v67 | -v65 | -v60 |
-v55 | -v51 | -v50 : Use only ESXi 6.7/6.5/6.0/5.5/5.1/5.0 Imageprofiles as input, ignore other versions
-nsc : use -NoSignatureCheck with export
-log : Use custom log file
-ipname
-ipdesc
-ipvendor : provide a name, description and/or vendor for the customized
Imageprofile (the default is derived from the cloned input Imageprofile)
-test : skip package download and image build (for testing)
使用指令線上產生 ISO
輸出 Offline bundle .\\ESXi-Customizer-PS-v2.6.0.ps1 -v67 -ozip 使用 Offline bundle 並增加驅動 .\\ESXi-Customizer-PS-v2.6.0.ps1 -izip .\\ESXi-6.7.0-20191204001-standard.zip -vft -load sata-xahci,net55-r8168 -outDir d:\\share