mirror of
https://github.com/VFrontDe-Org/ESXi-Customizer-PS.git
synced 2026-04-25 23:46:02 +03:00
[GH-ISSUE #75] "You cannot call a method on a null-valued expression" when adding vib file #53
Labels
No labels
bug
duplicate
duplicate
enhancement
fix in-progress
invalid
need more info
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ESXi-Customizer-PS#53
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
Exception
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
, Exception
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 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
Exception
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
, Exception
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
@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/
@mishamosher commented on GitHub (Jan 28, 2025):
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:
Python 3.7 did the trick: https://www.python.org/downloads/release/python-379/