[GH-ISSUE #75] "You cannot call a method on a null-valued expression" when adding vib file #53

Open
opened 2026-02-28 02:14:29 +03:00 by kerem · 3 comments
Owner

Originally created by @chpoqxie on GitHub (Mar 9, 2024).
Original GitHub issue: https://github.com/VFrontDe-Org/ESXi-Customizer-PS/issues/75

ESXi-Customizer-PS Version 2.9.0

dir D:\4\pkg
------ 03.04.2018 14:53 109900 VMW_bootbank_net-igb_5.0.5.1.1-5vmw.670.0.0.8169922.vib
------ 03.04.2018 14:53 142660 VMW_bootbank_net-ixgbe_3.7.13.7.14iov-20vmw.670.0.0.8169922.vib

these files are copied from ESXi670-201912001.zip to be added to customized HPE image.

.\ESXi-Customizer-PS.ps1 -izip .\VMware-ESXi-6.7.0-Update3-19195723-HPE-Gen9plus-670.U3.10.9.0.8-Apr2022-depot.zip -outDir D:\4\out -pkgDir D:\4\pkg\ -v67 -nsc


PSVersion: 5.1.18362.1171
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.18362.1171
BuildVersion: 10.0.18362.1171
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1


Running with PowerShell version 5.1 and VMware PowerCLI version 13.2.1 build 22851661

Adding base Offline bundle .\VMware-ESXi-6.7.0-Update3-19195723-HPE-Gen9plus-670.U3.10.9.0.8-Apr2022-depot.zip ...
[OK]

Getting Imageprofiles, please wait ...
[OK]

Using Imageprofile HPE-ESXi-6.7.0-Update3-19195723-Gen9plus-670.U3.10.9.0.8 ...
(Dated 01/12/2022 08:53:55, AcceptanceLevel: PartnerSupported,
HPE Custom Image Profile for ESXi 6.7.0 Depot)
New-EsxImageprofile : Profile prfname is missing component(s) ESXi,Intel-Volume-Mgmt-Device,Intel-ne1000,Mellanox-nmlx5,
VMware-NVMeoF-RDMA,VMware-ahci,VMware-iser,VMware-nvme-pcie-plugin,VMware-nvme-plugin,VMware-nvmxnet3,VMware-nvmxnet3-en
s,VMware-pvscsi,VMware-vmkata,VMware-vmkusb,esx-update. Make sure the image contains these component(s) at a version equ
al or higher than the version found in the ESXi release version 6.7.0-3.163.19195723.
D:\4\ESXi-Customizer-PS.ps1:395 знак:18

  • ... MyProfile = New-EsxImageprofile -CloneProfile $CloneIP -Vendor $ipven ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidData: (VMware.ImageBuilder.Types.ImageProfile:ImageProfile) [New-EsxImageProfile],
      Exception
    • FullyQualifiedErrorId : EsxImageProfileValidationError,VMware.ImageBuilder.Commands.NewImageProfile
      New-EsxImageprofile : Profile prfname is missing component(s) ESXi,Intel-Volume-Mgmt-Device,Intel-ne1000,Mellanox-nmlx5
      ,VMware-NVMeoF-RDMA,VMware-ahci,VMware-iser,VMware-nvme-pcie-plugin,VMware-nvme-plugin,VMware-nvmxnet3,VMware-nvmxnet3-
      ens,VMware-pvscsi,VMware-vmkata,VMware-vmkusb,esx-update. Make sure the image contains these component(s) at a version
      equal or higher than the version found in the ESXi release version 6.7.0-3.163.19195723.
      D:\4\ESXi-Customizer-PS.ps1:395 знак:18
  • ... MyProfile = New-EsxImageprofile -CloneProfile $CloneIP -Vendor $ipven ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidData: (VMware.ImageBuilder.Types.ImageProfile:ImageProfile) [New-EsxImageProfile]
      , Exception
    • FullyQualifiedErrorId : EsxImageProfileValidationError,VMware.ImageBuilder.Commands.NewImageProfile

Loading Offline bundles and VIB files from D:\4\pkg\ ...
Loading D:\4\pkg\VMW_bootbank_net-igb_5.0.5.1.1-5vmw.670.0.0.8169922.vib ...
[OK]
Add VIB net-igb 5.0.5.1.1-5vmw.670.0.0.8169922
PS>TerminatingError(): "Невозможно вызвать метод для выражения со значением NULL."
[FAILED]
Probably not a valid VIB file, ignoring.

Loading D:\4\pkg\VMW_bootbank_net-ixgbe_3.7.13.7.14iov-20vmw.670.0.0.8169922.vib ...
[OK]
Add VIB net-ixgbe 3.7.13.7.14iov-20vmw.670.0.0.8169922
PS>TerminatingError(): "Невозможно вызвать метод для выражения со значением NULL."
[FAILED]
Probably not a valid VIB file, ignoring.

Exporting the Imageprofile to 'D:\4\out.iso'. Please be patient ...

ПРЕДУПРЕЖДЕНИЕ: The image profile fails validation. The ISO / Offline Bundle will still be generated but may contain errors and may not boot or be functional. Errors:
ПРЕДУПРЕЖДЕНИЕ: Profile HPE-ESXi-6.7.0-Update3-19195723-Gen9plus-670.U3.10.9.0.8 is missing component(s) ESXi,Intel-Volume-Mgmt-Device,Intel-ne1000,Mellanox-nmlx5,VMware-NVMeoF-RDMA,VMware-ahci,VMware-iser,VMware-nvme-pcie-plugin,VMware-nvme-plugin,VMware-nvmxnet3,VMware-nvmxnet3-ens,VMware-pvscsi,VMware-vmkata,VMware-vmkusb,esx-update. Make sure the image contains these component(s) at a version equal or higher than the version found in the ESXi release version 6.7.0-3.163.19195723.

All done.

Originally created by @chpoqxie on GitHub (Mar 9, 2024). Original GitHub issue: https://github.com/VFrontDe-Org/ESXi-Customizer-PS/issues/75 ESXi-Customizer-PS Version 2.9.0 dir D:\4\pkg ------ 03.04.2018 14:53 109900 VMW_bootbank_net-igb_5.0.5.1.1-5vmw.670.0.0.8169922.vib ------ 03.04.2018 14:53 142660 VMW_bootbank_net-ixgbe_3.7.13.7.14iov-20vmw.670.0.0.8169922.vib these files are copied from ESXi670-201912001.zip to be added to customized HPE image. .\ESXi-Customizer-PS.ps1 -izip .\VMware-ESXi-6.7.0-Update3-19195723-HPE-Gen9plus-670.U3.10.9.0.8-Apr2022-depot.zip -outDir D:\4\out -pkgDir D:\4\pkg\ -v67 -nsc ********************** PSVersion: 5.1.18362.1171 PSEdition: Desktop PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.18362.1171 BuildVersion: 10.0.18362.1171 CLRVersion: 4.0.30319.42000 WSManStackVersion: 3.0 PSRemotingProtocolVersion: 2.3 SerializationVersion: 1.1.0.1 ********************** Running with PowerShell version 5.1 and VMware PowerCLI version 13.2.1 build 22851661 Adding base Offline bundle .\VMware-ESXi-6.7.0-Update3-19195723-HPE-Gen9plus-670.U3.10.9.0.8-Apr2022-depot.zip ... [OK] Getting Imageprofiles, please wait ... [OK] Using Imageprofile HPE-ESXi-6.7.0-Update3-19195723-Gen9plus-670.U3.10.9.0.8 ... (Dated 01/12/2022 08:53:55, AcceptanceLevel: PartnerSupported, HPE Custom Image Profile for ESXi 6.7.0 Depot) New-EsxImageprofile : Profile prfname is missing component(s) ESXi,Intel-Volume-Mgmt-Device,Intel-ne1000,Mellanox-nmlx5, VMware-NVMeoF-RDMA,VMware-ahci,VMware-iser,VMware-nvme-pcie-plugin,VMware-nvme-plugin,VMware-nvmxnet3,VMware-nvmxnet3-en s,VMware-pvscsi,VMware-vmkata,VMware-vmkusb,esx-update. Make sure the image contains these component(s) at a version equ al or higher than the version found in the ESXi release version 6.7.0-3.163.19195723. D:\4\ESXi-Customizer-PS.ps1:395 знак:18 + ... MyProfile = New-EsxImageprofile -CloneProfile $CloneIP -Vendor $ipven ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidData: (VMware.ImageBuilder.Types.ImageProfile:ImageProfile) [New-EsxImageProfile], Exception + FullyQualifiedErrorId : EsxImageProfileValidationError,VMware.ImageBuilder.Commands.NewImageProfile New-EsxImageprofile : Profile prfname is missing component(s) ESXi,Intel-Volume-Mgmt-Device,Intel-ne1000,Mellanox-nmlx5 ,VMware-NVMeoF-RDMA,VMware-ahci,VMware-iser,VMware-nvme-pcie-plugin,VMware-nvme-plugin,VMware-nvmxnet3,VMware-nvmxnet3- ens,VMware-pvscsi,VMware-vmkata,VMware-vmkusb,esx-update. Make sure the image contains these component(s) at a version equal or higher than the version found in the ESXi release version 6.7.0-3.163.19195723. D:\4\ESXi-Customizer-PS.ps1:395 знак:18 + ... MyProfile = New-EsxImageprofile -CloneProfile $CloneIP -Vendor $ipven ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidData: (VMware.ImageBuilder.Types.ImageProfile:ImageProfile) [New-EsxImageProfile] , Exception + FullyQualifiedErrorId : EsxImageProfileValidationError,VMware.ImageBuilder.Commands.NewImageProfile Loading Offline bundles and VIB files from D:\4\pkg\ ... Loading D:\4\pkg\VMW_bootbank_net-igb_5.0.5.1.1-5vmw.670.0.0.8169922.vib ... [OK] **Add VIB net-igb 5.0.5.1.1-5vmw.670.0.0.8169922 PS>TerminatingError(): "Невозможно вызвать метод для выражения со значением NULL." [FAILED] Probably not a valid VIB file, ignoring.** Loading D:\4\pkg\VMW_bootbank_net-ixgbe_3.7.13.7.14iov-20vmw.670.0.0.8169922.vib ... [OK] **Add VIB net-ixgbe 3.7.13.7.14iov-20vmw.670.0.0.8169922 PS>TerminatingError(): "Невозможно вызвать метод для выражения со значением NULL." [FAILED] Probably not a valid VIB file, ignoring.** Exporting the Imageprofile to 'D:\4\out\.iso'. Please be patient ... ПРЕДУПРЕЖДЕНИЕ: The image profile fails validation. The ISO / Offline Bundle will still be generated but may contain errors and may not boot or be functional. Errors: ПРЕДУПРЕЖДЕНИЕ: Profile HPE-ESXi-6.7.0-Update3-19195723-Gen9plus-670.U3.10.9.0.8 is missing component(s) ESXi,Intel-Volume-Mgmt-Device,Intel-ne1000,Mellanox-nmlx5,VMware-NVMeoF-RDMA,VMware-ahci,VMware-iser,VMware-nvme-pcie-plugin,VMware-nvme-plugin,VMware-nvmxnet3,VMware-nvmxnet3-ens,VMware-pvscsi,VMware-vmkata,VMware-vmkusb,esx-update. Make sure the image contains these component(s) at a version equal or higher than the version found in the ESXi release version 6.7.0-3.163.19195723. All done.
Author
Owner

@aleksandrspitsa commented on GitHub (Apr 17, 2024):


Windows PowerShell transcript start
Start time: 20240417114114
Username: DESKTOP-DA7R1R5\test
RunAs User: DESKTOP-DA7R1R5\test
Configuration Name:
Machine: DESKTOP-DA7R1R5 (Microsoft Windows NT 10.0.19045.0)
Host Application: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Process ID: 5124
PSVersion: 5.1.19041.2364
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.19041.2364
BuildVersion: 10.0.19041.2364
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1


Running with PowerShell version 5.1 and VMware PowerCLI version 13.2.1 build 22851661

Connecting the VMware ESXi Software depot ...
[OK]

Connecting the V-Front Online depot ...
[OK]

Getting Imageprofiles, please wait ...
[OK]

Using Imageprofile ESXi-6.5.0-20221004001-standard ...
(Dated 09/22/2022 06:14:32, AcceptanceLevel: PartnerSupported,
Updates ESXi 6.5 Image Profile-ESXi-6.5.0-20221004001-standard)
New-EsxImageprofile : Profile ESXi-6.5.0-20221004001-standard-customized is missing component(s) ESXi,Intel-Volume-Mgmt-
Device,Intel-ne1000,Mellanox-nmlx5,VMware-NVMeoF-RDMA,VMware-ahci,VMware-iser,VMware-nvme-pcie-plugin,VMware-nvme-plugin
,VMware-nvmxnet3,VMware-nvmxnet3-ens,VMware-pvscsi,VMware-vmkata,VMware-vmkusb,esx-update. Make sure the image contains
these component(s) at a version equal or higher than the version found in the ESXi release version 6.5.0-3.195.20502893.
At C:\Users\test\Downloads\ESXi-Customizer-PS-2.9.0\ESXi-Customizer-PS-2.9.0\ESXi-Customizer-PS.ps1:395 char:18

  • ... MyProfile = New-EsxImageprofile -CloneProfile $CloneIP -Vendor $ipven ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidData: (VMware.ImageBuilder.Types.ImageProfile:ImageProfile) [New-EsxImageProfile],
      Exception
    • FullyQualifiedErrorId : EsxImageProfileValidationError,VMware.ImageBuilder.Commands.NewImageProfile
      New-EsxImageprofile : Profile ESXi-6.5.0-20221004001-standard-customized is missing component(s) ESXi,Intel-Volume-Mgmt
      -Device,Intel-ne1000,Mellanox-nmlx5,VMware-NVMeoF-RDMA,VMware-ahci,VMware-iser,VMware-nvme-pcie-plugin,VMware-nvme-plug
      in,VMware-nvmxnet3,VMware-nvmxnet3-ens,VMware-pvscsi,VMware-vmkata,VMware-vmkusb,esx-update. Make sure the image
      contains these component(s) at a version equal or higher than the version found in the ESXi release version
      6.5.0-3.195.20502893.
      At C:\Users\test\Downloads\ESXi-Customizer-PS-2.9.0\ESXi-Customizer-PS-2.9.0\ESXi-Customizer-PS.ps1:395 char:18
  • ... MyProfile = New-EsxImageprofile -CloneProfile $CloneIP -Vendor $ipven ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidData: (VMware.ImageBuilder.Types.ImageProfile:ImageProfile) [New-EsxImageProfile]
      , Exception
    • FullyQualifiedErrorId : EsxImageProfileValidationError,VMware.ImageBuilder.Commands.NewImageProfile

Load additional VIBs from Online depots ...
Add VIB sata-xahci 1.42-1
PS>TerminatingError(): "You cannot call a method on a null-valued expression."

An unexpected error occurred:
You cannot call a method on a null-valued expression.

If requesting support please be sure to include the log file
C:\Users\test\AppData\Local\Temp\ESXi-Customizer-PS-5124.log


Windows PowerShell transcript end
End time: 20240417114733


<!-- gh-comment-id:2060777703 --> @aleksandrspitsa commented on GitHub (Apr 17, 2024): ********************** Windows PowerShell transcript start Start time: 20240417114114 Username: DESKTOP-DA7R1R5\test RunAs User: DESKTOP-DA7R1R5\test Configuration Name: Machine: DESKTOP-DA7R1R5 (Microsoft Windows NT 10.0.19045.0) Host Application: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe Process ID: 5124 PSVersion: 5.1.19041.2364 PSEdition: Desktop PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.19041.2364 BuildVersion: 10.0.19041.2364 CLRVersion: 4.0.30319.42000 WSManStackVersion: 3.0 PSRemotingProtocolVersion: 2.3 SerializationVersion: 1.1.0.1 ********************** Running with PowerShell version 5.1 and VMware PowerCLI version 13.2.1 build 22851661 Connecting the VMware ESXi Software depot ... [OK] Connecting the V-Front Online depot ... [OK] Getting Imageprofiles, please wait ... [OK] Using Imageprofile ESXi-6.5.0-20221004001-standard ... (Dated 09/22/2022 06:14:32, AcceptanceLevel: PartnerSupported, Updates ESXi 6.5 Image Profile-ESXi-6.5.0-20221004001-standard) New-EsxImageprofile : Profile ESXi-6.5.0-20221004001-standard-customized is missing component(s) ESXi,Intel-Volume-Mgmt- Device,Intel-ne1000,Mellanox-nmlx5,VMware-NVMeoF-RDMA,VMware-ahci,VMware-iser,VMware-nvme-pcie-plugin,VMware-nvme-plugin ,VMware-nvmxnet3,VMware-nvmxnet3-ens,VMware-pvscsi,VMware-vmkata,VMware-vmkusb,esx-update. Make sure the image contains these component(s) at a version equal or higher than the version found in the ESXi release version 6.5.0-3.195.20502893. At C:\Users\test\Downloads\ESXi-Customizer-PS-2.9.0\ESXi-Customizer-PS-2.9.0\ESXi-Customizer-PS.ps1:395 char:18 + ... MyProfile = New-EsxImageprofile -CloneProfile $CloneIP -Vendor $ipven ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidData: (VMware.ImageBuilder.Types.ImageProfile:ImageProfile) [New-EsxImageProfile], Exception + FullyQualifiedErrorId : EsxImageProfileValidationError,VMware.ImageBuilder.Commands.NewImageProfile New-EsxImageprofile : Profile ESXi-6.5.0-20221004001-standard-customized is missing component(s) ESXi,Intel-Volume-Mgmt -Device,Intel-ne1000,Mellanox-nmlx5,VMware-NVMeoF-RDMA,VMware-ahci,VMware-iser,VMware-nvme-pcie-plugin,VMware-nvme-plug in,VMware-nvmxnet3,VMware-nvmxnet3-ens,VMware-pvscsi,VMware-vmkata,VMware-vmkusb,esx-update. Make sure the image contains these component(s) at a version equal or higher than the version found in the ESXi release version 6.5.0-3.195.20502893. At C:\Users\test\Downloads\ESXi-Customizer-PS-2.9.0\ESXi-Customizer-PS-2.9.0\ESXi-Customizer-PS.ps1:395 char:18 + ... MyProfile = New-EsxImageprofile -CloneProfile $CloneIP -Vendor $ipven ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidData: (VMware.ImageBuilder.Types.ImageProfile:ImageProfile) [New-EsxImageProfile] , Exception + FullyQualifiedErrorId : EsxImageProfileValidationError,VMware.ImageBuilder.Commands.NewImageProfile Load additional VIBs from Online depots ... Add VIB sata-xahci 1.42-1 PS>TerminatingError(): "You cannot call a method on a null-valued expression." An unexpected error occurred: You cannot call a method on a null-valued expression. If requesting support please be sure to include the log file C:\Users\test\AppData\Local\Temp\ESXi-Customizer-PS-5124.log ********************** Windows PowerShell transcript end End time: 20240417114733 **********************
Author
Owner

@mishamosher commented on GitHub (Jan 28, 2025):

I had success with PowerCLI 13.1.0. Later versions do not work.

https://www.powershellgallery.com/packages/VMware.PowerCLI/13.1.0.21624340

https://developer.broadcom.com/tools/vmware-powercli/13.1.0

Python 3.12+ does not work. Python 3.11 works fine: https://www.python.org/downloads/release/python-3119/

<!-- gh-comment-id:2619417909 --> @mishamosher commented on GitHub (Jan 28, 2025): I had success with PowerCLI 13.1.0. Later versions do not work. https://www.powershellgallery.com/packages/VMware.PowerCLI/13.1.0.21624340 https://developer.broadcom.com/tools/vmware-powercli/13.1.0 Python 3.12+ does not work. Python 3.11 works fine: https://www.python.org/downloads/release/python-3119/
Author
Owner

@mishamosher commented on GitHub (Jan 28, 2025):

Python 3.12+ does not work. Python 3.11 works fine...

Even though 3.11 allows the script (ESXi Customizer) to run to completion, the resulting ISO file doesn't install and gets stuck with the following error message:

No image profile is found on the host or image profile is empty. An image profile is required to install or remove VIBs. To install an image profile, use the esxcli image profile install command.

Python 3.7 did the trick: https://www.python.org/downloads/release/python-379/

<!-- gh-comment-id:2619547912 --> @mishamosher commented on GitHub (Jan 28, 2025): > Python 3.12+ does not work. Python 3.11 works fine... Even though 3.11 allows the script (ESXi Customizer) to run to completion, the resulting ISO file doesn't install and gets stuck with the following error message: > No image profile is found on the host or image profile is empty. An image profile is required to install or remove VIBs. To install an image profile, use the esxcli image profile install command. Python 3.7 did the trick: https://www.python.org/downloads/release/python-379/
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ESXi-Customizer-PS#53
No description provided.