方法一:
准备工具
0.Windows10(自带powershell5.0)
1.VM官网powercli(12.0.0),解压到C:\Program Files\WindowsPowerShell\Modules
https://developer.broadcom.com/tools/vmware-powercli/12.0.0
2.VM官网ESXi离线捆绑包(.zip格式)
VMware vSphere Hypervisor (ESXi) Offline Bundle
3.ESXi-Customizer-PS-v2.6.0.ps1
https://www.v-front.de/p/esxi-customizer-ps.html#download
4.需要封装的vib驱动
参考网址,注意2018年停更
https://vibsdepot.v-front.de/wiki/index.php/List_of_currently_available_ESXi_packages
以待封装驱动为例:
Intel-Volume-Mgmt-Device_2.7.1.1002-1OEM.670.0.0.8169922-18273401.zip
步骤:
管理员运行powershell
1
2
|
Set-ExecutionPolicy RemoteSigned
|
1
2
|
Import-Module VMware.PowerCLI
|
1
2
|
Set-PowerCLIConfiguration -Scope AllUsers -ParticipateInCeip $false -InvalidCertificateAction Ignore
|
进入准备阶段2.3.4文件所在的目录
以待封装驱动为例Intel-Volume-Mgmt-Device_2.7.1.1002-1OEM.670.0.0.8169922-18273401.zip
1
2
|
.\ESXi-Customizer-PS-v2.6.0.ps1 -izip ESXi670-201912001.zip -pkgdir Intel-Volume-Mgmt-Device_2.7.1.1002-1OEM.670.0.0.8169922-18273401.zip
|
回显All done完成:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
PS C:\esxi> .\ESXi-Customizer-PS-v2.6.0.ps1 -izip ESXi670-201912001.zip -pkgdir Intel-Volume-Mgmt-Device_2.7.1.1002-1OEM.670.0.0.8169922-18273401.zip
This is ESXi-Customizer-PS Version 2.6.0 (visit https://ESXi-Customizer-PS.v-front.de for more information!)
(Call with -help for instructions)
Logging to C:\Users\meto\AppData\Local\Temp\ESXi-Customizer-PS-11808.log ...
Running with PowerShell version 5.1 and VMware PowerCLI version 12.0.0.15939655
Adding base Offline bundle ESXi670-201912001.zip ... [OK]
Getting Imageprofiles, please wait ... [OK]
Using Imageprofile ESXi-6.7.0-20191204001-standard ...
(dated 11/25/2019 11:43:03, AcceptanceLevel: PartnerSupported,
Updates ESXi 6.7 Image Profile-ESXi-6.7.0-20191204001-standard)
Loading Offline bundles and VIB files from Intel-Volume-Mgmt-Device_2.7.1.1002-1OEM.670.0.0.8169922-18273401.zip ...
Exporting the Imageprofile to 'C:\esxi\ESXi-6.7.0-20191204001-standard-customized.iso'. Please be patient ...
All done.
|
方法二:以浪潮厂家提供文档为例
http://www.4008600011.com/archives/15441#VMwareraid