Things that failed:
(get-esxcli -VMHost “nprd-host-005.bbtnet.com” -V2).software.vib.update.invoke(@{depot=”/vmfs/volumes/NPRD-NFS-TEMPLATE-01/ESXi_Patches/ESXi-7.0-U3-2032835301.zip“})
and also failed:
$argsInstall = @()
#$patchfilepath = "/vmfs/volumes/TDC-VMNFS-01B-vmnfs-Server-Template/ESXi_Patches/ESXi-7.0-U3-2032835301-PP.zip"
$patchfilepath = "/vmfs/volumes/873bad18-f7467fb9/ESXi_Patches/ESXi-7.0-U3-2032835301.zip"
$esxcli = get-esxcli -VMHost “nprd-host-005.bbtnet.com” -V2
$argsInstall = $esxcli.software.vib.update.createargs()
$argsInstall.depot = $patchfilepath
#$argsInstall.nosigcheck = $true
#$argsInstall.nohardwarewarning = $true
#$argsInstall.dryrun = $true
#$argsInstall.profile = "ESXi-7.0-U3-2032835301-PP.zip"
$esxcli.software.vib.update.invoke($argsInstall)
It worked, thanks again, Luc D to the rescue!
PS H:\> $argsInstall = @()
$patchfilepath = "/vmfs/volumes/873bad18-f7467fb9/ESXi_Patches/ESXi-7.0-U3-2032835301.zip"
$esxcli = get-esxcli -VMHost “nprd-host-010.bbtnet.com” -V2
$argsInstall = $esxcli.software.profile.update.createargs()
$argsInstall.depot = $patchfilepath
#$argsInstall.nosigcheck = $true
#$argsInstall.nohardwarewarning = $true
$argsInstall.profile = "ESXi-7.0-U3-2032835301"
$esxcli.software.profile.update.invoke($argsInstall)
Message : The update completed successfully, but the system needs to be rebooted for the changes to be effective.
RebootRequired : true
VIBsInstalled : {Cisco_bootbank_nenic_1.0.42.0-1OEM.670.0.0.8169922, Cisco_bootbank_nfnic_5.0.0.34-1OEM.700.1.0.15843807, VMW_bootbank_bnxtnet_216.0.50.0-44vmw.703.0.50.20036589,
VMW_bootbank_bnxtroce_216.0.58.0-23vmw.703.0.50.20036589...}
VIBsRemoved : {Cisco_bootbank_nenic_1.0.35.0-1OEM.670.0.0.8169922, Cisco_bootbank_nfnic_5.0.0.15-1OEM.700.1.0.15843807, VMW_bootbank_bnxtnet_216.0.50.0-41vmw.703.0.20.19193900,
VMW_bootbank_bnxtroce_216.0.58.0-23vmw.703.0.20.19193900...}
VIBsSkipped : {VMW_bootbank_atlantic_1.0.3.0-8vmw.703.0.20.19193900, VMW_bootbank_brcmfcoe_12.0.1500.2-3vmw.703.0.20.19193900, VMW_bootbank_elxiscsi_12.0.1200.0-9vmw.703.0.20.19193900,
VMW_bootbank_elxnet_12.0.1250.0-5vmw.703.0.20.19193900...}
What error messages do you get?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Message: EsxCLI.CLIFault.summary
InnerText: [InstallationError] ESXi Base Image of version 7.0.3-0.55.20328353 is not found. Please use a depot with complete metadata to upgrade. Please refer to the log file for more
details.EsxCLI.CLIFault.summary
At line:9 char:1
+ $esxcli.software.vib.update.invoke($argsInstall)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [], MethodFault
+ FullyQualifiedErrorId : VMware.VimAutomation.Sdk.Types.V1.ErrorHandling.VimException.MethodFault
Did you create a custom ISO image?
The error seems to clearly state that the base image is missing.
Did you follow a procedure like in Create a Custom ESXi ISO Image with PowerCLI Cmdlets (vmware.com)
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
I ran this from the command line in putty and also tried in PowerCLI using the same settings:
[root@nprd-host-005:~] esxcli software profile update -d /vmfs/volumes/QDC-NPRD-NFS-TEMPLATE-01/ESXi_Patches/ESXi-7.0-U3-2032835301.zip -p ESXi-7.0-U3-203283530
1 --no-hardware-warning
Update Result
Message: The update completed successfully, but the system needs to be rebooted for the changes to be effective.
Reboot Required: true
PS H:\> $argsInstall = @()
$patchfilepath = "/vmfs/volumes/QDC-NPRD-NFS-TEMPLATE-01/ESXi_Patches/ESXi-7.0-U3-2032835301.zip"
$esxcli = get-esxcli -VMHost “nprd-host-010.bbtnet.com” -V2
$argsInstall = $esxcli.software.vib.update.createargs()
$argsInstall.depot = $patchfilepath
$esxcli.software.vib.update.invoke($argsInstall)
Message: EsxCLI.CLIFault.summary;
InnerText: [InstallationError] ESXi Base Image of version 7.0.3-0.55.20328353 is not found. Please use a depot with complete metadata to upgrade. Please refer to the log file for more
details.EsxCLI.CLIFault.summary
At line:6 char:1
+ $esxcli.software.vib.update.invoke($argsInstall)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [], MethodFault
+ FullyQualifiedErrorId : VMware.VimAutomation.Sdk.Types.V1.ErrorHandling.VimException.MethodFault
You didn't specify the value for the profile parameter in the PS snippet.
It is also commented out in our code at the start of this threa
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
How do I get around this error?
PS H:\> $argsInstall = @()
$patchfilepath = "/vmfs/volumes/873bad18-f7467fb9/ESXi_Patches/ESXi-7.0-U3-2032835301.zip"
$esxcli = get-esxcli -VMHost “nprd-host-010.bbtnet.com” -V2
$argsInstall = $esxcli.software.vib.update.createargs()
$argsInstall.depot = $patchfilepath
#$argsInstall.nosigcheck = $true
#$argsInstall.nohardwarewarning = $true
$argsInstall.profile = "ESXi-7.0-U3-2032835301.zip"
$esxcli.software.vib.update.invoke($argsInstall)
Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
At line:9 char:1
+ $esxcli.software.vib.update.invoke($argsInstall)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [], FormatException
+ FullyQualifiedErrorId : System.FormatException
The profile value shouldn't have the .zip extension.
$argsInstall.profile = "ESXi-7.0-U3-203283530"
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
I removed the .zip but got the same error
PS H:\> $argsInstall = @()
$patchfilepath = "/vmfs/volumes/873bad18-f7467fb9/ESXi_Patches/ESXi-7.0-U3-2032835301.zip"
$esxcli = get-esxcli -VMHost “nprd-host-010.bbtnet.com” -V2
$argsInstall = $esxcli.software.vib.update.createargs()
$argsInstall.depot = $patchfilepath
#$argsInstall.nosigcheck = $true
#$argsInstall.nohardwarewarning = $true
$argsInstall.profile = "ESXi-7.0-U3-2032835301"
$esxcli.software.vib.update.invoke($argsInstall)
Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
At line:9 char:1
+ $esxcli.software.vib.update.invoke($argsInstall)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [], FormatException
+ FullyQualifiedErrorId : System.FormatException
PS H:\> $argsInstall
Name Value
---- -----
viburl Unset, ([string[]], optional)
dryrun Unset, ([boolean], optional)
depot /vmfs/volumes/873bad18-f7467fb9/ESXi_Patches/ESXi-7.0-U3-2032835301.zip
nosigcheck Unset, ([boolean], optional)
noliveinstall Unset, ([boolean], optional)
vibname Unset, ([string[]], optional)
maintenancemode Unset, ([boolean], optional)
force Unset, ([boolean], optional)
proxy Unset, ([string], optional)
profile ESXi-7.0-U3-2032835301
Are you sure of the profile name?
Is it present in that depot?
Check with
$esxcli.software.sources.profile.list.Invoke(@{depot=$patchfilepath})
You should be using the esxcli software profile update command (not the esxcli software vib update command), as you did in the SSH session.
$argsInstall = $esxcli.software.profile.update.createargs()
$argsInstall.depot = $patchfilepath
$argsInstall.profile = "ESXi-7.0U3g-20328353-standard"
$esxcli.software.profile.update.invoke($argsInstall)
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
It worked, thanks again, Luc D to the rescue!
PS H:\> $argsInstall = @()
$patchfilepath = "/vmfs/volumes/873bad18-f7467fb9/ESXi_Patches/ESXi-7.0-U3-2032835301.zip"
$esxcli = get-esxcli -VMHost “nprd-host-010.bbtnet.com” -V2
$argsInstall = $esxcli.software.profile.update.createargs()
$argsInstall.depot = $patchfilepath
#$argsInstall.nosigcheck = $true
#$argsInstall.nohardwarewarning = $true
$argsInstall.profile = "ESXi-7.0-U3-2032835301"
$esxcli.software.profile.update.invoke($argsInstall)
Message : The update completed successfully, but the system needs to be rebooted for the changes to be effective.
RebootRequired : true
VIBsInstalled : {Cisco_bootbank_nenic_1.0.42.0-1OEM.670.0.0.8169922, Cisco_bootbank_nfnic_5.0.0.34-1OEM.700.1.0.15843807, VMW_bootbank_bnxtnet_216.0.50.0-44vmw.703.0.50.20036589,
VMW_bootbank_bnxtroce_216.0.58.0-23vmw.703.0.50.20036589...}
VIBsRemoved : {Cisco_bootbank_nenic_1.0.35.0-1OEM.670.0.0.8169922, Cisco_bootbank_nfnic_5.0.0.15-1OEM.700.1.0.15843807, VMW_bootbank_bnxtnet_216.0.50.0-41vmw.703.0.20.19193900,
VMW_bootbank_bnxtroce_216.0.58.0-23vmw.703.0.20.19193900...}
VIBsSkipped : {VMW_bootbank_atlantic_1.0.3.0-8vmw.703.0.20.19193900, VMW_bootbank_brcmfcoe_12.0.1500.2-3vmw.703.0.20.19193900, VMW_bootbank_elxiscsi_12.0.1200.0-9vmw.703.0.20.19193900,
VMW_bootbank_elxnet_12.0.1250.0-5vmw.703.0.20.19193900...}