给ESXi安装镜像iso文件打包添加第三方驱动

准备工作:

1、安装 Windows PowerShell 3.0 (需要启用Windows AutoUpdate服务,安装完毕计算机需要重启)
2、VMware-PowerCLI-6.0.0-3056836.exe
3、ESXi-Customizer-PS-v2.6.0.ps1 http://www.v-front.de/p/esxi-customizer-ps.html

第一步:Powershell中默认禁止执行脚本,所以先修改策略允许执行

输入以下命令:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
Set-ExecutionPolicy Unrestricted

使用get-executionpolicy查看状态确实为Restricted

使用set-executionpolicy remotesigned将属性从Restricted更改为remotesigned,如下图,输入A,完成后,将此窗口关闭

下载后的文件需要在PowerShell里Unblock一下,否则提示禁止运行

Unblock-File ”D:\ESXi-Customizer-PS-v2.6.0.ps1"

Set-PowerCLIConfiguration -InvalidCertificateAction Ignore
Set-PowerCLIConfiguration -Scope User -ParticipateInCeip $False

第二步:定位到ESXi-Customizer-PS-v2.6.0.ps1所在目录,楼主这边是C:\ps
cd C:\ps\

第三步:集成所需驱动,注意所需的时间比较长。
.\ESXi-Customizer-PS-v2.6.0.ps1 -v60 -vft -load sata-xahci,net55-r8168,net51-r8169,net-r8101,net-tulip,net51-sky2,net-atl1,net-atl1e,net-r8139too,net-skge,net-igb -nsc

可添加的驱动参见:
https://vibsdepot.v-front.de/wiki/index.php/List_of_currently_available_ESXi_packages


注意:

1.打包驱动的时候,提示校验签名失败,

An unexpected error occured:
Could not find a trusted signer.

If requesting support please be sure to include the log file
C:\Users\ADMINI~1\AppData\Local\Temp\1\ESXi-Customizer-PS-6032.log

需要在命令的最后添加一个 “-nsc”不校验签名的参数

.\ESXi-Customizer-PS-v2.6.0.ps1 -izip .\ESXi670-201912001.zip -pkgDir D:\vmware6.7 -nsc

2.打包成功如下提示

PowerCLI C:\ps> .\ESXi-Customizer-PS-v2.6.0.ps1 -v65 -vft -load sata-xahci,net-igb -nsc

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\ADMINI~1\AppData\Local\Temp\1\ESXi-Customizer-PS-6032.log …

Running with PowerShell version 5.1 and VMware PowerCLI version 6.5.0.2604913

Connecting the VMware ESXi Online depot … [OK]

Connecting the V-Front Online depot … [OK]

Getting Imageprofiles, please wait … [OK]

Using Imageprofile ESXi-6.5.0-20210204001-standard …
(dated 02/02/2021 16:32:07, AcceptanceLevel: PartnerSupported,
Updates ESXi 6.5 Image Profile-ESXi-6.5.0-20210204001-standard)

Load additional VIBs from Online depots …
Add VIB sata-xahci 1.42-1 [New AcceptanceLevel: CommunitySupported] [OK, added]
Add VIB net-igb 5.3.2-99 [OK, replaced 5.0.5.1.1-5vmw.650.0.0.4564106]

Exporting the Imageprofile to 'C:\ps\ESXi-6.5.0-20210204001-standard-customized.iso'. Please be patient …

All done.

PowerCLI C:\ps>

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注