14 Replies Latest reply on Feb 11, 2019 3:19 PM by MCioe

    Updating an ESXi server with ESXcli software.vib.update and the cmdlet hangs

    MCioe Enthusiast

      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

        • 1. Re: Updating an ESXi server with ESXcli software.vib.update and the cmdlet hangs
          LucD Guru
          User ModeratorsCommunity WarriorsvExpert

          Did you already check some of the ESXi logs for additional clues?

          Starting with /var/log/esxupdate.log

          • 2. Re: Updating an ESXi server with ESXcli software.vib.update and the cmdlet hangs
            MCioe Enthusiast

            Below are the log entries that occurred during the processing.  Could there be something amiss with the Areca VIB?  This Hot Patch was given to me by another team so I don't know where it came from, but I need to find a way to add these vibs. I may pull down a patch from VMware and try one of those next, just to see if they work.

             

             

            2019-01-29T19:28:57Z esxupdate: 84896: vmware.runcommand: INFO: runcommand called with: args = '['/sbin/esxcfg-advcfg', '-q', '-g', '/UserVars/EsximageNetTimeout']', outfile = 'None', returnoutput = 'True', timeout = '0.0'.

            2019-01-29T19:28:57Z esxupdate: 84896: vmware.runcommand: INFO: runcommand called with: args = '['/sbin/esxcfg-advcfg', '-q', '-g', '/UserVars/EsximageNetRetries']', outfile = 'None', returnoutput = 'True', timeout = '0.0'.

            2019-01-29T19:28:57Z esxupdate: 84896: vmware.runcommand: INFO: runcommand called with: args = '['/sbin/esxcfg-advcfg', '-q', '-g', '/UserVars/EsximageNetRateLimit']', outfile = 'None', returnoutput = 'True', timeout = '0.0'.

            2019-01-29T19:28:57Z esxupdate: 84896: root: INFO: Command = vib.install

            2019-01-29T19:28:57Z esxupdate: 84896: root: INFO: Options = {'force': True, 'profile': None, 'pending': None, 'nomaintmode': False, 'nosigcheck': True, 'dryrun': False, 'viburl': None, 'depot': ['/vmfs/volumes/Datastore1/Patches/ESXi65P03-HP-2240403.zip'], 'level': None, 'proxy': None, 'downgrade': None, 'oktoremove': False, 'nameid': None, 'updateonly': True, 'noliveinstall': False}

            2019-01-29T19:28:57Z esxupdate: 84896: vmware.runcommand: INFO: runcommand called with: args = '['/sbin/bootOption', '-rp']', outfile = 'None', returnoutput = 'True', timeout = '0.0'.

            2019-01-29T19:28:57Z esxupdate: 84896: vmware.runcommand: INFO: runcommand called with: args = '['/sbin/bootOption', '-ro']', outfile = 'None', returnoutput = 'True', timeout = '0.0'.

            2019-01-29T19:28:57Z esxupdate: 84896: HostImage: INFO: Installers initiated are {'locker': <vmware.esximage.Installer.LockerInstaller.LockerInstaller object at 0x3457acf518>, 'boot': <vmware.esximage.Installer.BootBankInstaller.BootBankInstaller object at 0x3457622c50>, 'live': <vmware.esximage.Installer.LiveImageInstaller.LiveImageInstaller object at 0x3457622a20>}

            2019-01-29T19:28:57Z esxupdate: 84896: imageprofile: INFO: Adding VIB VMware_locker_tools-light_6.5.0-2.71.10868328 to ImageProfile (Updated) ESXi-6.5.0-2_Areca

            2019-01-29T19:28:57Z esxupdate: 84896: vmware.runcommand: INFO: runcommand called with: args = '['/sbin/esxcfg-advcfg', '-U', 'host-acceptance-level', '-G']', outfile = 'None', returnoutput = 'True', timeout = '30.0'.

            2019-01-29T19:28:57Z esxupdate: 84896: vmware.runcommand: INFO: runcommand called with: args = 'localcli system visorfs ramdisk add -m 0 -M 200 -n vibtransaction -p 755 -t /tmp/vibtransaction', outfile = 'None', returnoutput = 'True', timeout = '0.0'.

            2019-01-29T19:28:58Z esxupdate: 84896: vmware.runcommand: INFO: runcommand called with: args = 'localcli system visorfs ramdisk list | grep /vibtransaction && localcli system visorfs ramdisk remove -t /tmp/vibtransaction', outfile = 'None', returnoutput = 'True', timeout = '0.0'.

            2019-01-29T19:28:58Z esxupdate: 84896: Transaction: DEBUG: Populating VIB list from newest VIBs in metadata ; depots:/vmfs/volumes/Datastore1/Patches/ESXi65P03-HP-2240403.zip

            2019-01-29T19:28:58Z esxupdate: 84896: DepotCollection: DEBUG: Downloading depot index.xml from zip:/vmfs/volumes/Datastore1/Patches/ESXi65P03-HP-2240403.zip?index.xml

            2019-01-29T19:28:58Z esxupdate: 84896: DepotCollection: DEBUG: Downloading vendor index.xml from zip:/vmfs/volumes/Datastore1/Patches/ESXi65P03-HP-2240403.zip?vendor-index.xml

            2019-01-29T19:28:58Z esxupdate: 84896: DepotCollection: DEBUG: Downloading metadata.zip from zip:/vmfs/volumes/Datastore1/Patches/ESXi65P03-HP-2240403.zip?metadata.zip

            2019-01-29T19:28:58Z esxupdate: 84896: Transaction: INFO: Skipping non-update VIBs VMW_bootbank_scsi-aic79xx_3.1-5vmw.650.0.0.4564106, VMW_bootbank_lsi-msgpt3_16.00.01.00-1vmw.650.2.50.8294253, VMW_bootbank_scsi-adp94xx_1.0.8.12-6vmw.650.0.0.4564106, VMware_bootbank_lsu-lsi-mpt2sas-plugin_2.0.0-6vmw.650.1.26.5969303, VMW_bootbank_vmkata_0.1-1vmw.650.1.36.7388607, VMW_bootbank_net-tg3_3.131d.v60.4-2vmw.650.0.0.4564106, VMW_bootbank_ata-libata-92_3.00.9.2-16vmw.650.0.0.4564106, VMW_bootbank_qfle3_1.0.2.7-1vmw.650.0.0.4564106, VMW_bootbank_nmlx4-en_3.16.0.0-1vmw.650.0.0.4564106, VMW_bootbank_ipmi-ipmi-si-drv_39.1-4vmw.650.0.0.4564106, VMW_bootbank_net-cdc-ether_1.0-3vmw.650.0.0.4564106, VMW_bootbank_smartpqi_1.0.1.553-10vmw.650.2.50.8294253, VMW_bootbank_scsi-megaraid2_2.00.4-9vmw.650.0.0.4564106, VMW_bootbank_scsi-ips_7.12.05-4vmw.650.0.0.4564106, VMW_bootbank_mtip32xx-native_3.9.5-1vmw.650.0.0.4564106, VMW_bootban

            2019-01-29T19:28:58Z esxupdate: k_lsi-mr3_7.702.13.00-3vmw.650.2.50.8294253, VMware_bootbank_esx-xserver_6.5.0-2.50.8294253, VMware_bootbank_vsan_6.5.0-2.75.10884926, VMW_bootbank_scsi-qla4xxx_5.01.03.2-7vmw.650.0.0.4564106, VMW_bootbank_shim-libata-9-2-1-0_6.5.0-0.0.4564106, VMW_bootbank_scsi-aacraid_1.1.5.1-9vmw.650.0.0.4564106, VMW_bootbank_shim-libata-9-2-2-0_6.5.0-0.0.4564106, VMW_bootbank_ne1000_0.8.3-8vmw.650.2.75.10884925, VMW_bootbank_ata-pata-amd_0.3.10-3vmw.650.0.0.4564106, VMW_bootbank_brcmfcoe_11.4.1078.0-8vmw.650.2.50.8294253, VMW_bootbank_qedentv_2.0.6.4-8vmw.650.2.50.8294253, VMW_bootbank_qflge_1.1.0.3-1vmw.650.0.0.4564106, VMW_bootbank_net-forcedeth_0.61-2vmw.650.0.0.4564106, VMW_bootbank_char-random_1.0-3vmw.650.0.0.4564106, VMW_bootbank_nvme_1.2.1.34-1vmw.650.2.50.8294253, VMW_bootbank_nmlx4-rdma_3.16.0.0-1vmw.650.0.0.4564106, VMW_bootbank_sata-ahci_3.0-26vmw.650.1.26.5969303, VMW_bootbank_nmlx4-core_3.16.0.0

            2019-01-29T19:28:58Z esxupdate: -1vmw.650.0.0.4564106, VMW_bootbank_net-nx-nic_5.0.621-5vmw.650.0.0.4564106, VMW_bootbank_scsi-megaraid-mbox_2.20.5.1-6vmw.650.0.0.4564106, VMW_bootbank_net-mlx4-en_1.9.7.0-1vmw.650.0.0.4564106, VMW_bootbank_ima-qla4xxx_2.02.18-1vmw.650.0.0.4564106, VMW_bootbank_sata-sata-sil24_1.1-1vmw.650.0.0.4564106, VMW_bootbank_xhci-xhci_1.0-3vmw.650.0.0.4564106, VMW_bootbank_net-vmxnet3_1.1.3.0-3vmw.650.0.0.4564106, VMW_bootbank_nenic_1.0.0.2-1vmw.650.0.0.4564106, VMW_bootbank_sata-sata-promise_2.12-3vmw.650.0.0.4564106, VMW_bootbank_ata-pata-serverworks_0.4.3-3vmw.650.0.0.4564106, VMW_bootbank_usb-storage-usb-storage_1.0-3vmw.650.0.0.4564106, VMware_bootbank_lsu-lsi-megaraid-sas-plugin_1.0.0-8vmw.650.1.26.5969303, VMW_bootbank_nmlx5-core_4.16.0.0-1vmw.650.0.0.4564106, VMW_bootbank_lsi-msgpt2_20.00.01.00-4vmw.650.2.50.8294253, VMW_bootbank_scsi-bnx2i_2.78.76.v60.8-1vmw.650.0.0.4564106, VMW_bootbank_ata-pata

            2019-01-29T19:28:58Z esxupdate: -sil680_0.4.8-3vmw.650.0.0.4564106, VMW_bootbank_block-cciss_3.6.14-10vmw.650.0.0.4564106, VMW_bootbank_vmkusb_0.1-1vmw.650.2.75.10884925, VMW_bootbank_scsi-mpt2sas_19.00.00.00-1vmw.650.0.0.4564106, VMW_bootbank_sata-sata-nv_3.5-4vmw.650.0.0.4564106, VMW_bootbank_scsi-mptsas_4.23.01.00-10vmw.650.0.0.4564106, VMW_bootbank_scsi-mptspi_4.23.01.00-10vmw.650.0.0.4564106, VMW_bootbank_net-usbnet_1.0-3vmw.650.0.0.4564106, VMW_bootbank_ata-pata-cmd64x_0.2.5-3vmw.650.0.0.4564106, VMW_bootbank_nhpsa_2.0.22-3vmw.650.2.50.8294253, VMW_bootbank_bnxtnet_20.6.101.7-11vmw.650.2.50.8294253, VMW_bootbank_ata-pata-pdc2027x_1.0-3vmw.650.0.0.4564106, VMW_bootbank_lpfc_11.4.33.1-6vmw.650.2.50.8294253, VMW_bootbank_ata-pata-atiixp_0.4.6-4vmw.650.0.0.4564106, VMW_bootbank_net-cnic_1.78.76.v60.13-2vmw.650.0.0.4564106, VMW_bootbank_vmw-ahci_1.1.1-1vmw.650.2.50.8294253, VMware_bootbank_rste_2.0.2.0088-4vmw.650.0.0.4564106,

            2019-01-29T19:28:58Z esxupdate: VMW_bootbank_net-bnx2_2.2.4f.v60.10-2vmw.650.0.0.4564106, VMW_bootbank_shim-libfcoe-9-2-2-0_6.5.0-0.0.4564106, VMware_bootbank_esx-tboot_6.5.0-2.75.10884925, VMW_bootbank_lsi-msgpt35_03.00.01.00-9vmw.650.2.50.8294253, VMW_bootbank_ntg3_4.1.3.2-1vmw.650.2.75.10884925, VMW_bootbank_shim-libfcoe-9-2-1-0_6.5.0-0.0.4564106, VMW_bootbank_sata-ata-piix_2.12-10vmw.650.0.0.4564106, VMW_bootbank_scsi-megaraid-sas_6.603.55.00-2vmw.650.0.0.4564106, VMW_bootbank_sata-sata-sil_2.3-4vmw.650.0.0.4564106, VMW_bootbank_vmkplexer-vmkplexer_6.5.0-0.0.4564106, VMW_bootbank_scsi-hpsa_6.0.0.84-1vmw.650.0.0.4564106, VMW_bootbank_scsi-fnic_1.5.0.45-3vmw.650.0.0.4564106, VMW_bootbank_qlnativefc_2.1.50.0-1vmw.650.1.26.5969303, VMW_bootbank_shim-vmklinux-9-2-2-0_6.5.0-0.0.4564106, VMW_bootbank_shim-vmklinux-9-2-1-0_6.5.0-0.0.4564106, VMW_bootbank_shim-vmklinux-9-2-3-0_6.5.0-0.0.4564106, VMW_bootbank_net-libfcoe-92_1.0.24.9

            2019-01-29T19:28:58Z esxupdate: .4-8vmw.650.0.0.4564106, VMware_bootbank_native-misc-drivers_6.5.0-0.0.4564106, VMW_bootbank_igbn_0.1.0.0-15vmw.650.1.36.7388607, VMW_bootbank_ohci-usb-ohci_1.0-3vmw.650.0.0.4564106, VMware_bootbank_esx-dvfilter-generic-fastpath_6.5.0-1.36.7388607, VMW_bootbank_uhci-usb-uhci_1.0-3vmw.650.0.0.4564106, VMware_bootbank_esx-ui_1.31.0-10201673, VMW_bootbank_usbcore-usb_1.0-3vmw.650.2.50.8294253, VMW_bootbank_ipmi-ipmi-msghandler_39.1-5vmw.650.2.50.8294253, VMW_bootbank_net-enic_2.1.2.38-2vmw.650.0.0.4564106, VMW_bootbank_scsi-bnx2fc_1.78.78.v60.8-1vmw.650.0.0.4564106, VMware_bootbank_vmware-esx-esxcli-nvme-plugin_1.2.0.32-2.50.8294253, VMW_bootbank_net-fcoe_1.0.29.9.3-7vmw.650.0.0.4564106, VMW_bootbank_ehci-ehci-hcd_1.0-4vmw.650.0.14.5146846, VMware_bootbank_lsu-lsi-lsi-mr3-plugin_1.0.0-11vmw.650.2.75.10884925, VMW_bootbank_pvscsi_0.1-1vmw.650.1.26.5969303, VMW_bootbank_net-e1000e_3.2.2.1-2vmw.650.0.0

            2019-01-29T19:28:58Z esxupdate: .4564106, VMW_bootbank_net-e1000_8.0.3.1-5vmw.650.0.0.4564106, VMW_bootbank_net-igb_5.0.5.1.1-5vmw.650.0.0.4564106, VMW_bootbank_net-bnx2x_1.78.80.v60.12-1vmw.650.0.0.4564106, VMW_bootbank_shim-iscsi-linux-9-2-2-0_6.5.0-0.0.4564106, VMW_bootbank_shim-iscsi-linux-9-2-1-0_6.5.0-0.0.4564106, VMW_bootbank_shim-libfc-9-2-1-0_6.5.0-0.0.4564106, VMW_bootbank_shim-libfc-9-2-2-0_6.5.0-0.0.4564106, VMware_locker_tools-light_6.5.0-2.71.10868328, VMware_bootbank_vsanhealth_6.5.0-2.75.10884927, VMW_bootbank_ipmi-ipmi-devintf_39.1-5vmw.650.2.50.8294253, VMW_bootbank_hid-hid_1.0-3vmw.650.0.0.4564106, VMW_bootbank_elxnet_11.1.91.0-1vmw.650.0.0.4564106, VMware_bootbank_esx-base_6.5.0-2.75.11145138, VMW_bootbank_net-mlx4-core_1.9.7.0-1vmw.650.0.0.4564106, VMW_bootbank_nvmxnet3_2.0.0.23-1vmw.650.1.36.7388607, VMware_bootbank_emulex-esx-elxnetcli_11.1.28.0-0.0.4564106, VMware_bootbank_cpu-microcode_6.5.0-2.57.929872

            2019-01-29T19:28:58Z esxupdate: 2, VMW_bootbank_scsi-iscsi-linux-92_1.0.0.2-3vmw.650.0.0.4564106, VMW_bootbank_i40en_1.3.1-19vmw.650.2.50.8294253, VMW_bootbank_ixgben_1.4.1-12vmw.650.2.50.8294253, VMW_bootbank_scsi-libfc-92_1.0.40.9.3-5vmw.650.0.0.4564106, VMware_bootbank_lsu-hp-hpsa-plugin_2.0.0-7vmw.650.2.75.10884925, VMW_bootbank_ata-pata-hpt3x2n_0.3.4-3vmw.650.0.0.4564106, VMware_bootbank_lsu-lsi-lsi-msgpt3-plugin_1.0.0-7vmw.650.1.26.5969303, VMW_bootbank_net-ixgbe_3.7.13.7.14iov-20vmw.650.0.0.4564106, VMW_bootbank_misc-drivers_6.5.0-2.50.8294253, VMW_bootbank_sata-sata-svw_2.3-3vmw.650.0.0.4564106, VMW_bootbank_ata-pata-via_0.3.3-2vmw.650.0.0.4564106, VMW_bootbank_misc-cnic-register_1.78.75.v60.7-1vmw.650.0.0.4564106

            2019-01-29T19:28:58Z esxupdate: 84896: Transaction: INFO: Final list of VIBs being installed: 

            2019-01-29T19:28:58Z esxupdate: 84896: HostImage: DEBUG: Staging image profile [(Updated) ESXi-6.5.0-2_Areca]

            2019-01-29T19:28:58Z esxupdate: 84896: HostImage: DEBUG: VIBs in image profile: VMW_bootbank_lsi-msgpt3_16.00.01.00-1vmw.650.2.50.8294253, VMW_bootbank_scsi-adp94xx_1.0.8.12-6vmw.650.0.0.4564106, VMware_bootbank_lsu-lsi-mpt2sas-plugin_2.0.0-6vmw.650.1.26.5969303, VMW_bootbank_vmkata_0.1-1vmw.650.1.36.7388607, VMW_bootbank_qfle3_1.0.2.7-1vmw.650.0.0.4564106, VMware_bootbank_vsan_6.5.0-2.75.10884926, VMW_bootbank_scsi-aacraid_1.1.5.1-9vmw.650.0.0.4564106, VMW_bootbank_shim-libata-9-2-1-0_6.5.0-0.0.4564106, VMW_bootbank_shim-libata-9-2-2-0_6.5.0-0.0.4564106, VMW_bootbank_brcmfcoe_11.4.1078.0-8vmw.650.2.50.8294253, VMW_bootbank_qflge_1.1.0.3-1vmw.650.0.0.4564106, VMW_bootbank_net-forcedeth_0.61-2vmw.650.0.0.4564106, VMW_bootbank_net-mlx4-en_1.9.7.0-1vmw.650.0.0.4564106, VMW_bootbank_sata-sata-sil24_1.1-1vmw.650.0.0.4564106, VMW_bootbank_ata-pata-serverworks_0.4.3-3vmw.650.0.0.4564106, VMW_bootbank_nmlx5-core_4.16.0.0

            2019-01-29T19:28:58Z esxupdate: -1vmw.650.0.0.4564106, VMW_bootbank_lsi-msgpt2_20.00.01.00-4vmw.650.2.50.8294253, VMW_bootbank_scsi-mpt2sas_19.00.00.00-1vmw.650.0.0.4564106, VMW_bootbank_sata-sata-nv_3.5-4vmw.650.0.0.4564106, VMW_bootbank_scsi-mptsas_4.23.01.00-10vmw.650.0.0.4564106, VMW_bootbank_scsi-mptspi_4.23.01.00-10vmw.650.0.0.4564106, VMW_bootbank_net-usbnet_1.0-3vmw.650.0.0.4564106, VMW_bootbank_nhpsa_2.0.22-3vmw.650.2.50.8294253, VMW_bootbank_ata-pata-pdc2027x_1.0-3vmw.650.0.0.4564106, VMW_bootbank_ata-pata-atiixp_0.4.6-4vmw.650.0.0.4564106, VMW_bootbank_net-cnic_1.78.76.v60.13-2vmw.650.0.0.4564106, VMware_bootbank_rste_2.0.2.0088-4vmw.650.0.0.4564106, VMware_bootbank_esx-tboot_6.5.0-2.75.10884925, VMW_bootbank_ntg3_4.1.3.2-1vmw.650.2.75.10884925, VMW_bootbank_sata-ata-piix_2.12-10vmw.650.0.0.4564106, VMW_bootbank_vmkplexer-vmkplexer_6.5.0-0.0.4564106, VMW_bootbank_scsi-hpsa_6.0.0.84-1vmw.650.0.0.4564106, VMW_bootbank_

            2019-01-29T19:28:58Z esxupdate: shim-vmklinux-9-2-3-0_6.5.0-0.0.4564106, VMW_bootbank_shim-vmklinux-9-2-1-0_6.5.0-0.0.4564106, VMW_bootbank_shim-vmklinux-9-2-2-0_6.5.0-0.0.4564106, VMW_bootbank_net-libfcoe-92_1.0.24.9.4-8vmw.650.0.0.4564106, VMW_bootbank_ohci-usb-ohci_1.0-3vmw.650.0.0.4564106, VMware_bootbank_esx-dvfilter-generic-fastpath_6.5.0-1.36.7388607, VMW_bootbank_uhci-usb-uhci_1.0-3vmw.650.0.0.4564106, VMW_bootbank_net-enic_2.1.2.38-2vmw.650.0.0.4564106, VMW_bootbank_scsi-bnx2fc_1.78.78.v60.8-1vmw.650.0.0.4564106, VMW_bootbank_ehci-ehci-hcd_1.0-4vmw.650.0.14.5146846, VMware_bootbank_arcpvd_1.0.3-17.02.21.154300, VMware_bootbank_lsu-lsi-lsi-mr3-plugin_1.0.0-11vmw.650.2.75.10884925, VMW_bootbank_pvscsi_0.1-1vmw.650.1.26.5969303, VMW_bootbank_net-e1000e_3.2.2.1-2vmw.650.0.0.4564106, VMW_bootbank_net-e1000_8.0.3.1-5vmw.650.0.0.4564106, VMW_bootbank_net-bnx2x_1.78.80.v60.12-1vmw.650.0.0.4564106, VMW_bootbank_shim-iscsi-linux

            2019-01-29T19:28:58Z esxupdate: -9-2-2-0_6.5.0-0.0.4564106, VMW_bootbank_shim-iscsi-linux-9-2-1-0_6.5.0-0.0.4564106, VMW_bootbank_shim-libfc-9-2-2-0_6.5.0-0.0.4564106, VMW_bootbank_shim-libfc-9-2-1-0_6.5.0-0.0.4564106, VMW_bootbank_ipmi-ipmi-devintf_39.1-5vmw.650.2.50.8294253, VMW_bootbank_hid-hid_1.0-3vmw.650.0.0.4564106, VMW_bootbank_elxnet_11.1.91.0-1vmw.650.0.0.4564106, VMware_bootbank_esx-base_6.5.0-2.75.11145138, VMW_bootbank_net-mlx4-core_1.9.7.0-1vmw.650.0.0.4564106, VMware_bootbank_emulex-esx-elxnetcli_11.1.28.0-0.0.4564106, VMW_bootbank_scsi-iscsi-linux-92_1.0.0.2-3vmw.650.0.0.4564106, VMware_bootbank_cpu-microcode_6.5.0-2.57.9298722, VMW_bootbank_scsi-libfc-92_1.0.40.9.3-5vmw.650.0.0.4564106, VMware_bootbank_lsu-hp-hpsa-plugin_2.0.0-7vmw.650.2.75.10884925, VMW_bootbank_ata-pata-hpt3x2n_0.3.4-3vmw.650.0.0.4564106, VMware_bootbank_lsu-lsi-lsi-msgpt3-plugin_1.0.0-7vmw.650.1.26.5969303, VMW_bootbank_net-ixgbe_3.7.13.7.14

            2019-01-29T19:28:58Z esxupdate: iov-20vmw.650.0.0.4564106, VMW_bootbank_misc-drivers_6.5.0-2.50.8294253, VMW_bootbank_sata-sata-svw_2.3-3vmw.650.0.0.4564106, VMW_bootbank_ata-pata-via_0.3.3-2vmw.650.0.0.4564106, VMW_bootbank_scsi-aic79xx_3.1-5vmw.650.0.0.4564106, VMW_bootbank_net-tg3_3.131d.v60.4-2vmw.650.0.0.4564106, VMW_bootbank_ata-libata-92_3.00.9.2-16vmw.650.0.0.4564106, VMW_bootbank_smartpqi_1.0.1.553-10vmw.650.2.50.8294253, VMW_bootbank_scsi-megaraid2_2.00.4-9vmw.650.0.0.4564106, VMW_bootbank_net-cdc-ether_1.0-3vmw.650.0.0.4564106, VMW_bootbank_nmlx4-en_3.16.0.0-1vmw.650.0.0.4564106, VMW_bootbank_ipmi-ipmi-si-drv_39.1-4vmw.650.0.0.4564106, VMW_bootbank_scsi-ips_7.12.05-4vmw.650.0.0.4564106, VMW_bootbank_mtip32xx-native_3.9.5-1vmw.650.0.0.4564106, VMW_bootbank_lsi-mr3_7.702.13.00-3vmw.650.2.50.8294253, arc_bootbank_scsi-arcmsr_1.40.00.00-1OEM.600.0.0.2494585, VMware_bootbank_esx-xserver_6.5.0-2.50.8294253, VMW_bootbank_sc

            2019-01-29T19:28:58Z esxupdate: si-qla4xxx_5.01.03.2-7vmw.650.0.0.4564106, VMW_bootbank_ne1000_0.8.3-8vmw.650.2.75.10884925, VMW_bootbank_ata-pata-amd_0.3.10-3vmw.650.0.0.4564106, VMW_bootbank_char-random_1.0-3vmw.650.0.0.4564106, VMW_bootbank_qedentv_2.0.6.4-8vmw.650.2.50.8294253, VMW_bootbank_nvme_1.2.1.34-1vmw.650.2.50.8294253, VMW_bootbank_nmlx4-rdma_3.16.0.0-1vmw.650.0.0.4564106, VMW_bootbank_sata-ahci_3.0-26vmw.650.1.26.5969303, VMW_bootbank_nmlx4-core_3.16.0.0-1vmw.650.0.0.4564106, VMW_bootbank_net-nx-nic_5.0.621-5vmw.650.0.0.4564106, VMW_bootbank_scsi-megaraid-mbox_2.20.5.1-6vmw.650.0.0.4564106, VMW_bootbank_ima-qla4xxx_2.02.18-1vmw.650.0.0.4564106, VMW_bootbank_xhci-xhci_1.0-3vmw.650.0.0.4564106, VMW_bootbank_nenic_1.0.0.2-1vmw.650.0.0.4564106, VMW_bootbank_net-vmxnet3_1.1.3.0-3vmw.650.0.0.4564106, VMW_bootbank_sata-sata-promise_2.12-3vmw.650.0.0.4564106, VMware_bootbank_dod-esxi65-stig-rd_1.0.0-0.1.9744467, VMW_bootba

            2019-01-29T19:28:58Z esxupdate: nk_usb-storage-usb-storage_1.0-3vmw.650.0.0.4564106, VMware_bootbank_lsu-lsi-megaraid-sas-plugin_1.0.0-8vmw.650.1.26.5969303, VMW_bootbank_scsi-bnx2i_2.78.76.v60.8-1vmw.650.0.0.4564106, VMW_bootbank_ata-pata-sil680_0.4.8-3vmw.650.0.0.4564106, VMW_bootbank_block-cciss_3.6.14-10vmw.650.0.0.4564106, VMW_bootbank_vmkusb_0.1-1vmw.650.2.75.10884925, VMW_bootbank_ata-pata-cmd64x_0.2.5-3vmw.650.0.0.4564106, VMW_bootbank_bnxtnet_20.6.101.7-11vmw.650.2.50.8294253, VMW_bootbank_lpfc_11.4.33.1-6vmw.650.2.50.8294253, VMW_bootbank_vmw-ahci_1.1.1-1vmw.650.2.50.8294253, VMW_bootbank_net-bnx2_2.2.4f.v60.10-2vmw.650.0.0.4564106, VMW_bootbank_shim-libfcoe-9-2-2-0_6.5.0-0.0.4564106, VMW_bootbank_shim-libfcoe-9-2-1-0_6.5.0-0.0.4564106, VMW_bootbank_lsi-msgpt35_03.00.01.00-9vmw.650.2.50.8294253, INT_bootbank_ixgben_1.7.10-1OEM.600.0.0.2768847, VMW_bootbank_scsi-megaraid-sas_6.603.55.00-2vmw.650.0.0.4564106, VMW_bootba

            2019-01-29T19:28:58Z esxupdate: nk_sata-sata-sil_2.3-4vmw.650.0.0.4564106, VMW_bootbank_scsi-fnic_1.5.0.45-3vmw.650.0.0.4564106, VMW_bootbank_qlnativefc_2.1.50.0-1vmw.650.1.26.5969303, VMware_bootbank_native-misc-drivers_6.5.0-0.0.4564106, VMW_bootbank_igbn_0.1.0.0-15vmw.650.1.36.7388607, VMware_bootbank_esx-ui_1.31.0-10201673, VMW_bootbank_usbcore-usb_1.0-3vmw.650.2.50.8294253, VMW_bootbank_ipmi-ipmi-msghandler_39.1-5vmw.650.2.50.8294253, INT_bootbank_i40en_1.7.11-1OEM.650.0.0.4598673, VMware_bootbank_vmware-esx-esxcli-nvme-plugin_1.2.0.32-2.50.8294253, VMW_bootbank_net-fcoe_1.0.29.9.3-7vmw.650.0.0.4564106, VMW_bootbank_net-igb_5.0.5.1.1-5vmw.650.0.0.4564106, VMware_locker_tools-light_6.5.0-2.71.10868328, VMware_bootbank_vsanhealth_6.5.0-2.75.10884927, VMW_bootbank_nvmxnet3_2.0.0.23-1vmw.650.1.36.7388607, VMW_bootbank_misc-cnic-register_1.78.75.v60.7-1vmw.650.0.0.4564106

            2019-01-29T19:28:58Z esxupdate: 84896: vmware.runcommand: INFO: runcommand called with: args = '['/usr/sbin/vsish', '-e', '-p', 'cat', '/hardware/bios/dmiInfo']', outfile = 'None', returnoutput = 'True', timeout = '0.0'.

            2019-01-29T19:28:58Z esxupdate: 84896: vmware.runcommand: INFO: runcommand called with: args = '['/sbin/smbiosDump']', outfile = 'None', returnoutput = 'True', timeout = '0.0'.

            2019-01-29T19:28:58Z esxupdate: 84896: HostImage: WARNING: SECURITY ALERT: Installing image profile '(Updated) ESXi-6.5.0-2_Areca' with acceptance level checking disabled.

            2019-01-29T19:28:58Z esxupdate: 84896: imageprofile: DEBUG: VIB VMware_locker_tools-light_6.5.0-2.71.10868328 is being removed from ImageProfile (Updated) ESXi-6.5.0-2_Areca

            2019-01-29T19:28:58Z esxupdate: 84896: HostImage: INFO: Nothing for LiveImageInstaller to do, skipping.

            2019-01-29T19:28:58Z esxupdate: 84896: vmware.runcommand: INFO: runcommand called with: args = 'localcli system visorfs ramdisk add -m 0 -M 250 -n stagebootbank -p 755 -t /tmp/stagebootbank', outfile = 'None', returnoutput = 'True', timeout = '0.0'.

            2019-01-29T19:28:58Z esxupdate: 84896: BootBankInstaller.pyc: WARNING: Ignoring error when loading bootbank: Error in loading boot.cfg from bootbank /tmp/stagebootbank: Error parsing bootbank boot.cfg file /tmp/stagebootbank/boot.cfg: [Errno 2] No such file or directory: '/tmp/stagebootbank/boot.cfg'

            2019-01-29T19:28:58Z esxupdate: 84896: imageprofile: DEBUG: VIB VMware_locker_tools-light_6.5.0-2.71.10868328 is being removed from ImageProfile (Updated) ESXi-6.5.0-2_Areca

            2019-01-29T19:28:58Z esxupdate: 84896: HostImage: INFO: Nothing for BootBankInstaller to do, skipping.

            2019-01-29T19:28:58Z esxupdate: 84896: HostImage: INFO: Nothing for LockerInstaller to do, skipping.

            2019-01-29T19:28:58Z esxupdate: 84896: vmware.runcommand: INFO: runcommand called with: args = 'localcli system visorfs ramdisk list | grep /stagebootbank && localcli system visorfs ramdisk remove -t /tmp/stagebootbank', outfile = 'None', returnoutput = 'True', timeout = '0.0'.

            2019-01-29T19:28:58Z esxupdate: 84896: HostImage: DEBUG: Host is remediated by installer: 

            2019-01-29T19:28:59Z esxupdate: 84896: root: DEBUG: Finished execution of command = vib.install

            2019-01-29T19:28:59Z esxupdate: 84896: root: DEBUG: Completed esxcli output, going to exit esxcli-software

            • 3. Re: Updating an ESXi server with ESXcli software.vib.update and the cmdlet hangs
              LucD Guru
              vExpertCommunity WarriorsUser Moderators

              There doesn't seem to be any wrong from the log.
              This areca version is most probably because you are using some Areca RAID controllers.

               

              But even though the log seems to indicate the patch completed, you are noticing that the cmdlet doesn't come back?

               

              You might want to have a look in the vmkernel.log as well.
              Perhaps some service or driver causes the hang.

              • 4. Re: Updating an ESXi server with ESXcli software.vib.update and the cmdlet hangs
                StephenMoll Hot Shot

                Is the host running with the "Free" license?

                If so does it even support being updated this way?

                • 5. Re: Updating an ESXi server with ESXcli software.vib.update and the cmdlet hangs
                  MCioe Enthusiast

                  This server has a vSphere 6 Enterprise Plus license and I have updated servers this way in the past at the server console window.  The Powercli interface is giving me problems.

                  • 6. Re: Updating an ESXi server with ESXcli software.vib.update and the cmdlet hangs
                    LucD Guru
                    Community WarriorsUser ModeratorsvExpert

                    What could also be interesting is to do the same esxcli command from a SSH session to the ESXi node.
                    That way we might be able to determine if it is a problem with esxcli, the patch or the Get-EsxCli cmdlet.

                    • 7. Re: Updating an ESXi server with ESXcli software.vib.update and the cmdlet hangs
                      MCioe Enthusiast

                      I tried the esxcli.software.vib.upate command at the console window of my ESXi server (I think my network firewall was keeping me from creating an SSH session).  The command worked at the command line.

                       

                      It hangs consistently when I run it from the Windows ISE debugger and when I run the script at the Powershell command line.

                       

                      It seems to work ok when I type the individual commands by hand at the Powershell command/console window.

                       

                      So the script seems to be the culprit.  Could the software.vib.update command be waiting for other input and that's why it's hanging?

                      • 8. Re: Updating an ESXi server with ESXcli software.vib.update and the cmdlet hangs
                        LucD Guru
                        vExpertCommunity WarriorsUser Moderators

                        So when you run the script line-by-line from the PS prompt it works?
                        Can you perhaps attach (bottom right Attach button) the script file?

                        • 9. Re: Updating an ESXi server with ESXcli software.vib.update and the cmdlet hangs
                          MCioe Enthusiast

                          I don't know if I can attach the script, I would have to run it by mgmt.

                           

                          One thing I was thinking of that isn't reflected in the log file is that there is a space in my datastore name. I set it to datastore1 in the file but it's really /vmfs/volumes/my datastore/Patches.  I was thinking of playing around with quotes in the depot name tomorrow.

                          • 10. Re: Updating an ESXi server with ESXcli software.vib.update and the cmdlet hangs
                            LucD Guru
                            Community WarriorsUser ModeratorsvExpert

                            That could indeed be a possible reason that it would fail.
                            But what is the difference than when you run it line-by-line from the prompt?
                            Or did you use quotes there? And not in the script?

                            • 11. Re: Updating an ESXi server with ESXcli software.vib.update and the cmdlet hangs
                              MCioe Enthusiast

                              I did not use quotes in the command line, so I don't know why it works there but not in the script.  I will try to rebuild that script in a way that I can post tomorrow. Who knows, I may stumble across the problem.

                               

                              I'm also going to try creating a datastore without spaces in the name and see what happens then.

                               

                              Thanks for the support.

                              • 12. Re: Updating an ESXi server with ESXcli software.vib.update and the cmdlet hangs
                                MCioe Enthusiast

                                As expected, when I tried to pull out the code into a single, simple script it works fine.

                                 

                                I did change it up so that I added the line

                                      $esxcli.software.vib.list.invoke()

                                before the

                                     $esxcli.software.vib.update.invoke($esxCliArgs)

                                 

                                and it hung at the vib.list command.

                                 

                                So it doesn't appear to be the update command, but the $esxcli interface.

                                 

                                This code is part of a larger script and I have moved it around in case some powershell object/behavior

                                from the larger script was blocking the ESXcli interface, but no luck so far.

                                • 13. Re: Updating an ESXi server with ESXcli software.vib.update and the cmdlet hangs
                                  LucD Guru
                                  vExpertCommunity WarriorsUser Moderators

                                  Did you, or can you, reboot that ESXi node?
                                  Or restart the management services ('services.sh restart' or via the DCUI)?

                                  • 14. Re: Updating an ESXi server with ESXcli software.vib.update and the cmdlet hangs
                                    MCioe Enthusiast

                                    Yes, I rebooted everything.

                                     

                                    In the end the only way I could get it to work in the master script that I have was to embed the code in a job.

                                     

                                    e.g.

                                    $server = 10.10.10.1

                                    $vibPath = /vmfs/volumes/my datastore/patches/ESXi650xxx.zip

                                     

                                    $updateBlock =

                                    {

                                       Param($server, $vibPath)

                                       $esxcli = get-esxcli -server $server -V2    #### HAD to do this in the scriptblock, it didn't work with $esxcli as an argument.

                                       $esxcliArgs = $esxcli.software.vib.update.createargs()

                                       $esxcliArgs.depot = $vibPath

                                       $esxcliArgs.nosigcheck = $true

                                       $esxcliArgs.force = $true

                                       $esxcli.software.vib.update.invoke($esxcliArgs)

                                    }

                                     

                                    $updateJob = start-job "update-esxi" -scriptblock { $updateBlock }

                                     

                                    #looped until job was done, very fast, though

                                    $status = get-job -name "update-esxi"

                                    remove-job -job $updateJob

                                     

                                    Clearly something in my script was blocking the command, not sure what it was, but I did eventually get it going.

                                     

                                    Thanks for all the suggestions