Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"You cannot call a method on a null-valued expression" when adding vib file #75

Open
chpoqxie opened this issue Mar 9, 2024 · 1 comment

Comments

@chpoqxie
Copy link

chpoqxie commented Mar 9, 2024

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.

@aleksandrspitsa
Copy link


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


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants