I have a single ESXi server with ESXi 6.5 installed, no vCenter and am using PowerCLI 11.1
I also have special drivers on the ESXi that I don't want to be overwritten which led me to the
ESXcli interface using the software.vib.update command.
When I run the software.vib.update command, it never returns from the call (in the ISE debugger).
Code roughly looks like the following:
# note: I have copied a patch file to the patches folder on the datastore: ESXi65<patch>.zip
# also, the server is in Maintenance mode
$host = get-vmhost
$esxcli = get-esxcli -vmHost $host -V2
$esxcliArgs = $esxcli.software.vib.update.createArgs()
$esxcliArgs.depot = "/vmfs/volumes/myDatastore/patches/ESXi65<patch>.zip"
$esxcliArgs.nosigcheck = $true
$esxcliArgs.force = $true
$status = $esxcli.software.vib.update.invoke($esxcliArgs)
The software.vib.update.invoke command never returns.
Also, I assume it doesn't matter if the patch has already been installed and I try to install it again. That's a real possibility for my users.
Is there something I am missing here? Any reason why the command is hanging?
Thanks,
Maureen