I am trying to create a new ESXi image profile using 2 depots. Not really sure if this is the right way. Appreciate any guidance.
One is DELL Custom ESXi 7.0 U3g patch and another VMware 7.0 U3i patch.
VMware-VMvisor-Installer-7.0.0.update03-20328353.x86_64-Dell_Customized-A09.zip (https://customerconnect.vmware.com/downloads/details?downloadGroup=OEM-ESXI70U3-DELLEMC&productId=97...)
VMware-ESXi-7.0U3i-20842708-depot.zip (https://customerconnect.vmware.com/patch)
I am seeing an issue while adding esx-base software package to dell-image profile. Interestingly I do not get error with Power CLI 12 but with 13 . Details below.
*************************************************************
************VMware.PowerCLI 13.0.0 build 20829139************
PS C:\WINDOWS\system32> cd C:\VMware-ISO\ESXi
PS C:\VMware-ISO\ESXi> Get-PowerCLIVersion
WARNING: The cmdlet "Get-PowerCLIVersion" is deprecated. Please use the 'Get-Module' cmdlet instead.
PowerCLI Version
----------------
VMware.PowerCLI 13.0.0 build 20829139
---------------
Component Versions
---------------
VMware Common PowerCLI Component 13.0 build 20797081
VMware Cis Core PowerCLI Component PowerCLI Component 13.0 build 20797636
VMware VimAutomation VICore Commands PowerCLI Component PowerCLI Component 13.0 build 20797821
VMware Image Builder PowerCLI Component PowerCLI Component 8.0 build 20817746
PS C:\VMware-ISO\ESXi> $PSVersionTable
Name Value
---- -----
PSVersion 5.1.22621.963
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.22621.963
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
PS C:\VMware-ISO\ESXi> Add-EsxSoftwareDepot .\VMware-VMvisor-Installer-7.0.0.update03-20328353.x86_64-Dell_Customized-A09.zip
Depot Url
---------
zip:C:\VMware-ISO\ESXi\VMware-VMvisor-Installer-7.0.0.update03-20328353.x86_64-Dell_Customized-A09.zip?index.xml
PS C:\VMware-ISO\ESXi> Add-EsxSoftwareDepot .\VMware-ESXi-7.0U3i-20842708-depot.zip
Depot Url
---------
zip:C:\VMware-ISO\ESXi\VMware-ESXi-7.0U3i-20842708-depot.zip?index.xml
PS C:\VMware-ISO\ESXi> New-EsxImageProfile -CloneProfile "DEL-ESXi-703_20328353-A09" -Name "AJAY-TEST-1"
cmdlet New-EsxImageProfile at command pipeline position 1
Supply values for the following parameters:
(Type !? for Help.)
Vendor: Ajay
Name Vendor Last Modified Acceptance Level
---- ------ ------------- ----------------
AJAY-TEST-1 Ajay 10/13/2022 4... PartnerSupported
PS C:\VMware-ISO\ESXi> $mydiff=Compare-EsxImageProfile DEL-ESXi-703_20328353-A09 ESXi-7.0U3i-20842708-standard
PS C:\VMware-ISO\ESXi> $mydiff.UpgradeFromRef
VMware_bootbank_vsanhealth_7.0.3-0.65.20842708
VMware_bootbank_crx_7.0.3-0.65.20842708
VMware_bootbank_vdfs_7.0.3-0.65.20842708
VMware_bootbank_vsan_7.0.3-0.65.20842708
VMware_bootbank_bmcal_7.0.3-0.65.20842708
VMware_bootbank_esx-dvfilter-generic-fastpath_7.0.3-0.65.20842708
VMware_bootbank_loadesx_7.0.3-0.65.20842708
VMW_bootbank_ntg3_4.1.8.0-4vmw.703.0.65.20842708
VMware_bootbank_native-misc-drivers_7.0.3-0.65.20842708
VMware_bootbank_esx-xserver_7.0.3-0.65.20842708
VMware_bootbank_cpu-microcode_7.0.3-0.65.20842708
VMware_bootbank_esx-base_7.0.3-0.65.20842708
VMware_bootbank_esxio-combiner_7.0.3-0.65.20842708
VMware_bootbank_trx_7.0.3-0.65.20842708
VMware_locker_tools-light_12.1.0.20219665-20841705
VMware_bootbank_esx-update_7.0.3-0.65.20842708
VMware_bootbank_esx-ui_2.1.1-20188605
VMware_bootbank_gc_7.0.3-0.65.20842708
PS C:\VMware-ISO\ESXi> Add-EsxSoftwarePackage -ImageProfile AJAY-TEST-1 -SoftwarePackage VMware_bootbank_esx-base_7.0.3-0.65.20842708 -Force
Add-EsxSoftwarePackage : On platform embeddedEsx, Base Image version 7.0.3-0.55.20328353 does not match the base ESXi package version 7.0.3-0.65.20842708 in ImageProfile AJAY-TEST-1. Use a depot instead of VIB URLs to perform ESXi patching.
At line:1 char:1
+ Add-EsxSoftwarePackage -ImageProfile AJAY-TEST-1 -SoftwarePackage VMw ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (VMware.ImageBuilder.Types.ImageProfile:ImageProfile) [Add-EsxSoftwarePackage], Exception
+ FullyQualifiedErrorId : EsxImageProfileValidationError,VMware.ImageBuilder.Commands.AddProfilePackage
*************************************************************
************VMware.PowerCLI 12.7.0 build 20091289************
PS C:\> cd D:\VMware-Files\ESXi7
PS D:\VMware-Files\ESXi7> Get-PowerCLIVersion
WARNING: The cmdlet "Get-PowerCLIVersion" is deprecated. Please use the 'Get-Module' cmdlet instead.
PowerCLI Version
----------------
VMware.PowerCLI 12.7.0 build 20091289
---------------
Component Versions
---------------
VMware Common PowerCLI Component 12.7 build 20067789
VMware Cis Core PowerCLI Component PowerCLI Component 12.6 build 19601368
VMware VimAutomation VICore Commands PowerCLI Component PowerCLI Component 12.7 build 20091293
VMWare ImageBuilder PowerCLI Component 7.0 build 19599828
PS D:\VMware-Files\ESXi7> $PSVersionTable
Name Value
---- -----
PSVersion 5.1.14409.1005
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14409.1005
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
PS D:\VMware-Files\ESXi7> Add-EsxSoftwareDepot .\VMware-VMvisor-Installer-7.0.0.update03-20328353.x86_64-Dell_Customized
-A09.zip
Depot Url
---------
zip:D:\VMware-Files\ESXi7\VMware-VMvisor-Installer-7.0.0.update03-20328353.x86_64-Dell_Customized-A09.zip?index.xml
PS D:\VMware-Files\ESXi7> Add-EsxSoftwareDepot .\VMware-ESXi-7.0U3i-20842708-depot.zip
Depot Url
---------
zip:D:\VMware-Files\ESXi7\VMware-ESXi-7.0U3i-20842708-depot.zip?index.xml
PS D:\VMware-Files\ESXi7> New-EsxImageProfile -CloneProfile "DEL-ESXi-703_20328353-A09" -Name "AJAY-TEST-2"
cmdlet New-EsxImageProfile at command pipeline position 1
Supply values for the following parameters:
(Type !? for Help.)
Vendor: Ajay-2
Name Vendor Last Modified Acceptance Level
---- ------ ------------- ----------------
AJAY-TEST-2 Ajay-2 10/13/2022 4... PartnerSupported
PS D:\VMware-Files\ESXi7> $mydiff=Compare-EsxImageProfile DEL-ESXi-703_20328353-A09 ESXi-7.0U3i-20842708-standard
PS D:\VMware-Files\ESXi7> $mydiff.UpgradeFromRef
VMware_bootbank_esx-base_7.0.3-0.65.20842708
VMware_bootbank_loadesx_7.0.3-0.65.20842708
VMware_bootbank_esx-dvfilter-generic-fastpath_7.0.3-0.65.20842708
VMware_bootbank_crx_7.0.3-0.65.20842708
VMW_bootbank_ntg3_4.1.8.0-4vmw.703.0.65.20842708
VMware_bootbank_trx_7.0.3-0.65.20842708
VMware_bootbank_vdfs_7.0.3-0.65.20842708
VMware_locker_tools-light_12.1.0.20219665-20841705
VMware_bootbank_cpu-microcode_7.0.3-0.65.20842708
VMware_bootbank_esx-ui_2.1.1-20188605
VMware_bootbank_bmcal_7.0.3-0.65.20842708
VMware_bootbank_gc_7.0.3-0.65.20842708
VMware_bootbank_esxio-combiner_7.0.3-0.65.20842708
VMware_bootbank_native-misc-drivers_7.0.3-0.65.20842708
VMware_bootbank_esx-xserver_7.0.3-0.65.20842708
VMware_bootbank_vsan_7.0.3-0.65.20842708
VMware_bootbank_vsanhealth_7.0.3-0.65.20842708
VMware_bootbank_esx-update_7.0.3-0.65.20842708
PS D:\VMware-Files\ESXi7> Add-EsxSoftwarePackage -ImageProfile AJAY-TEST-2 -SoftwarePackage VMware_bootbank_esx-base_7.0
.3-0.65.20842708 -Force
Name Vendor Last Modified Acceptance Level
---- ------ ------------- ----------------
AJAY-TEST-2 Ajay-2 1/23/2023 10... PartnerSupported
Update:
I followed the below and it worked for me with PowerCLI 13. I suppose this is the right way.
https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.esxi.install.doc/GUID-83DB452B-669A-4270-8E...
So I used ESXi base image of 7.0 U3i and then add Dell Addons.
VMware-ESXi-7.0U3i-20842708-depot.zip (ESXi_patch_portal )
Dell Addons for 7.0 U3 : https://customerconnect.vmware.com/downloads/details?downloadGroup=ADDON_ESXI70U3_DELLEMC&productId=...
To export to zip used : -ExportToBundle -FilePath C:\my_bundle.zip
I suspect you better open an SR
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Update:
I followed the below and it worked for me with PowerCLI 13. I suppose this is the right way.
https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.esxi.install.doc/GUID-83DB452B-669A-4270-8E...
So I used ESXi base image of 7.0 U3i and then add Dell Addons.
VMware-ESXi-7.0U3i-20842708-depot.zip (ESXi_patch_portal )
Dell Addons for 7.0 U3 : https://customerconnect.vmware.com/downloads/details?downloadGroup=ADDON_ESXI70U3_DELLEMC&productId=...
To export to zip used : -ExportToBundle -FilePath C:\my_bundle.zip