在部署虚拟平台时因硬件问题会出现安装包无对应硬件驱动,故自己封装ESXI安装包
$esxiOfflineBundle = "C:\Users\nic\Desktop\esxi\VMware-ESXi-7.0U3a-18825058-depot.zip"
$intelNicOfflineBundle = "C:\Users\nic\Desktop\esxi\Intel-NUC-ne1000_0.8.4-3vmw.670.0.0.8169922-offline_bundle-16654787.zip"
$esxiImageProfileName = "ESXi-7.0U3a-18825058-standard"
$newImageProfileName = "ESXi-7.0U3a-Intel-i219"
Add-EsxSoftwareDepot $esxiOfflineBundle
Add-EsxSoftwareDepot $intelNicOfflineBundle
$IntelNUCVib = Get-EsxSoftwarePackage | where {$_.name -eq "ne1000-intelnuc" -and $_.version -eq "0.8.4-3vmw.670.0.0.8169922"}
New-EsxImageProfile -CloneProfile $esxiImageProfileName -Name $newImageProfileName -Vendor vGhetto
Add-EsxSoftwarePackage -ImageProfile $newImageProfileName -SoftwarePackage $IntelNUCVib
Export-EsxImageProfile -ImageProfile $newImageProfileName -ExportToIso -FilePath "C:\Users\nic\Desktop\esxi\VMware-ESXi-7.0U3a-Intel-i219.ISO"
##解释:
$esxiOfflineBundle = "<ESXI安装包,格式为zip>"
$intelNicOfflineBundle = "<驱动包,格式为zip>"
$esxiImageProfileName = "<ESXI镜像名称>"
$newImageProfileName = "<新的ESXI镜像名称>"
Add-EsxSoftwareDepot $esxiOfflineBundle
Add-EsxSoftwareDepot $intelNicOfflineBundle
$IntelNUCVib = Get-EsxSoftwarePackage | where {$_.name -eq "<加载软件包名称>" -and $_.version -eq "<软件包版本>"}
New-EsxImageProfile -CloneProfile $esxiImageProfileName -Name $newImageProfileName -Vendor vGhetto
Add-EsxSoftwarePackage -ImageProfile $newImageProfileName -SoftwarePackage $IntelNUCVib
Export-EsxImageProfile -ImageProfile $newImageProfileName -ExportToIso -FilePath "<保存路径,格式为ISO>"
此处评论已关闭