Can anyone help me on getting an ISO set up with PowerCLI (or any other method) with a custom VIB (NIC driver). This method is not working for me Using the vSphere ESXi Image Builder CLI | VMware vSphere Blog - VMware Blogs
I am getting the error "cannot add vib" "which is not in the depot" when trying to run Add-Esxsoftwarepackage.
If I try to add the VIB or ZIP of the VIB using Add-ESXSoftwareDepot I get the error message "Could not download from depot"
Any ideas?
Hello!
I solved this problem as follows.
There is a driver for Realtek 8111 NIC in vib format:
net55-r8168-8.045a-napi.x86_64.vib
It needs to be added to the iso image of ESXi 6.7 for installation on a PC:
VMware-VMvisor-Installer-6.7.0-8169922.x86_64.iso
1. Download the standard SoftwareDepot from www.vmware.com:
VMware-ESXi-6.7.0-8169922-depot.zip
2. Lunch PowerCLI.
3. In PowerCLI connect the standard SoftwareDepot by typing:
Add-EsxSoftwareDepot -DepotUrl D:\Distrib\System\VMware\VMware-ESXi-6.7.0-8169922-depot.zip
4. Get the ImageProfile list:
Get-EsxImageProfile
As result:
Name Vendor Last Modified Acceptance Level
---- ------ ------------- ----------------
ESXi-6.7.0-8169922-standard VMware, Inc. 03.04.2018 2... PartnerSupported
ESXi-6.7.0-8169922-no-tools VMware, Inc. 03.04.2018 2... PartnerSupported
5. Clone standard ImageProfile:
New-EsxImageProfile -CloneProfile ESXi-6.7.0-8169922-standard -Name MyProfile -Vendor Oleg
6. Since our vib file has Acceptance Level - CommunitySupported, we need to set this Acceptance Level for our ImageProfile:
Set-EsxImageProfile -ImageProfile MyProfile -AcceptanceLevel CommunitySupported
7. Add our vib to SoftwareDepot:
Get-EsxSoftwarePackage -PackageUrl D:\Distrib\System\VMware\net55-r8168-8.045a-napi.x86_64.vib
As result:
Name Version Vendor Creation Dat
e
---- ------- ------ ------------
net55-r8168 8.045a-napi Realtek 16.04.201...
(Pay attention to the name field as a result of the command)
8. Add our vib to ImageProfile:
Add-EsxSoftwarePackage -ImageProfile MyProfile -SoftwarePackage net55-r8168
9. Export ImageProfile to ISO image:
Export-EsxImageProfile -ImageProfile MyProfile -ExportToIso -FilePath D:\Distrib\System\VMware\MyISO.iso
10. To drink coffee
I am Getting following error at step 8.
Add-EsxSoftwarePackage : VIB Realtek_bootbank_net55-r8168_8.045a-napi requires vmkapi_2_2_0_0, but the requirement cannot be satisfied within the ImageProfile.
At line:1 char:1
+ Add-EsxSoftwarePackage -ImageProfile MyProfile -SoftwarePackage net55 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (VMware.ImageBuilder.Types.ImageProfile:ImageProfile) [Add-EsxSoftwarePackage], Exception
+ FullyQualifiedErrorId : EsxImageProfileValidationError,VMware.ImageBuilder.Commands.AddProfilePackage
Add-EsxSoftwarePackage : VIB Realtek_bootbank_net55-r8168_8.045a-napi requires com.vmware.driverAPI-9.2.2.0, but the requirement cannot be satisfied within the ImageProfile.
At line:1 char:1
+ Add-EsxSoftwarePackage -ImageProfile MyProfile -SoftwarePackage net55 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (VMware.ImageBuilder.Types.ImageProfile:ImageProfile) [Add-EsxSoftwarePackage], Exception
+ FullyQualifiedErrorId : EsxImageProfileValidationError,VMware.ImageBuilder.Commands.AddProfilePackage
Hopefully you can help.
I also get error at step 8. net-community VIB, profile has the same name. Seems like it wants esxi v7 but I need to install v6.7.
PS C:\Users\userx\Desktop> Add-EsxSoftwarePackage -ImageProfile net-community -SoftwarePackage net-community
Add-EsxSoftwarePackage : VIB VMW_bootbank_net-community_1.2.2.0-1vmw.700.1.0.15843807 requires vmkapi_2_6_0_0, but the requirement cannot be satisfied within the ImageProfile. However,
additional VIB(s) VMware_bootbank_esx-base_7.0.2-0.15.18295176, VMware_bootbank_esx-base_7.0.1-0.15.17168206, VMware_bootbank_esx-base_7.0.1-0.10.17119627,
VMware_bootbank_esx-base_7.0.3-0.30.19482531, VMware_bootbank_esx-base_7.0.1-0.20.17325020, VMware_bootbank_esx-base_7.0.0-1.20.16321839, VMware_bootbank_esx-base_7.0.0-1.0.15843807,
VMware_bootbank_esx-base_7.0.1-0.30.17551050, VMware_bootbank_esx-base_7.0.0-1.25.16324942, VMware_bootbank_esx-base_7.0.1-0.25.17325551, VMware_bootbank_esx-base_7.0.3-0.20.19193900,
VMware_bootbank_esx-base_7.0.3-0.35.19482537, VMware_bootbank_esx-base_7.0.2-0.25.18538813, VMware_bootbank_esx-base_7.0.1-0.0.16850804, VMware_bootbank_esx-base_7.0.2-0.0.17867351,
VMware_bootbank_esx-base_7.0.2-0.20.18426014 from depot can satisfy this requirement.
At line:1 char:1
+ Add-EsxSoftwarePackage -ImageProfile net-community -SoftwarePackage n ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (VMware.ImageBuilder.Types.ImageProfile:ImageProfile) [Add-EsxSoftwarePackage], Exception
+ FullyQualifiedErrorId : EsxImageProfileValidationError,VMware.ImageBuilder.Commands.AddProfilePackage
Thanks OlegKov, It's helped a lot.
Thank you so much...👌