1 2 3 Previous Next 33 Replies Latest reply on Sep 22, 2018 11:22 PM by TTyz Go to original post
      • 15. Re: ESXi 5 esxcli installation of VIBs fails
        yozh Novice

        Not sure what to do, or how it cant find the plugins.... is it something with the paths ? I need to patch this to the ESXi500-201112001.zip, is there anyother way to do it ?

        • 16. Re: ESXi 5 esxcli installation of VIBs fails
          Novice

          Let me think this through a bit. I'll try to get back to you soon.

          • 17. Re: ESXi 5 esxcli installation of VIBs fails
            yozh Novice

            Thanks, I`m really stuck here, I have been searching all day and cant find anything regarding this at all... I`m alsmost thinking I have to reinstall the ESXi, but I have to avoid that at all costs.....

            • 18. Re: ESXi 5 esxcli installation of VIBs fails
              Novice

              [Edit] In case that wasn't clear you have to run the below command from a Linux box not on the ESX server [/Edit]

               

              Let's try and debug this a bit more. You need to verify that the plugins are healthy. The easiest way to do that is to run readelf -h on them from a Linux system. If you run this in a bash shell

               

              MYSRV="root@<your server IP>"; for f in $(ssh $MYSRV "find /usr/lib/vmware/ -type f | grep esxcli"); do scp $MYSRV:$f /tmp; readelf -h /tmp/$(basename $f); rm -f /tmp/$(basename $f); done 2> /dev/null

               

              that should do the trick. It helps your wrist if you have ssh keys setup so that you don't have to type your password for every ssh access. Once you are done, can you post the output?

              • 19. Re: ESXi 5 esxcli installation of VIBs fails
                yozh Novice
                $ MYSRV="root@192.168.1.225"; for f in $(ssh $MYSRV "find /usr/lib/vmware/ -type f | grep esxcli"); do scp $MYSRV:$f /tmp; readelf -h /tmp/$(basename $f); rm -f /tmp/$(basename $f); done 2> /dev/null
                cisco.xml                                                                                             100% 2244     2.2KB/s   00:00
                esxcli-syslog.xml                                                                                     100% 7937     7.8KB/s   00:00
                esxcli-software.xml                                                                                   100%   44KB  44.3KB/s   00:00
                libfcoe.so                                                                                            100%  110KB 109.5KB/s   00:00
                ELF Header:
                  Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
                  Class:                             ELF32
                  Data:                              2's complement, little endian
                  Version:                           1 (current)
                  OS/ABI:                            UNIX - System V
                  ABI Version:                       0
                  Type:                              DYN (Shared object file)
                  Machine:                           Intel 80386
                  Version:                           0x1
                  Entry point address:               0x8b60
                  Start of program headers:          52 (bytes into file)
                  Start of section headers:          111080 (bytes into file)
                  Flags:                             0x0
                  Size of this header:               52 (bytes)
                  Size of program headers:           32 (bytes)
                  Number of program headers:         6
                  Size of section headers:           40 (bytes)
                  Number of section headers:         27
                  Section header string table index: 26
                libvms.so                                                                                             100%   61KB  61.5KB/s   00:00
                ELF Header:
                  Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
                  Class:                             ELF32
                  Data:                              2's complement, little endian
                  Version:                           1 (current)
                  OS/ABI:                            UNIX - System V
                  ABI Version:                       0
                  Type:                              DYN (Shared object file)
                  Machine:                           Intel 80386
                  Version:                           0x1
                  Entry point address:               0x57e0
                  Start of program headers:          52 (bytes into file)
                  Start of section headers:          61888 (bytes into file)
                  Flags:                             0x0
                  Size of this header:               52 (bytes)
                  Size of program headers:           32 (bytes)
                  Number of program headers:         6
                  Size of section headers:           40 (bytes)
                  Number of section headers:         27
                  Section header string table index: 26
                libhardware.so                                                                                        100%  294KB 293.6KB/s   00:00
                ELF Header:
                  Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
                  Class:                             ELF32
                  Data:                              2's complement, little endian
                  Version:                           1 (current)
                  OS/ABI:                            UNIX - System V
                  ABI Version:                       0
                  Type:                              DYN (Shared object file)
                  Machine:                           Intel 80386
                  Version:                           0x1
                  Entry point address:               0x10a50
                  Start of program headers:          52 (bytes into file)
                  Start of section headers:          299608 (bytes into file)
                  Flags:                             0x0
                  Size of this header:               52 (bytes)
                  Size of program headers:           32 (bytes)
                  Number of program headers:         6
                  Size of section headers:           40 (bytes)
                  Number of section headers:         27
                  Section header string table index: 26
                libsystem.so                                                                                          100%  910KB 910.2KB/s   00:00
                ELF Header:
                  Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
                  Class:                             ELF32
                  Data:                              2's complement, little endian
                  Version:                           1 (current)
                  OS/ABI:                            UNIX - System V
                  ABI Version:                       0
                  Type:                              DYN (Shared object file)
                  Machine:                           Intel 80386
                  Version:                           0x1
                  Entry point address:               0x3a670
                  Start of program headers:          52 (bytes into file)
                  Start of section headers:          931000 (bytes into file)
                  Flags:                             0x0
                  Size of this header:               52 (bytes)
                  Size of program headers:           32 (bytes)
                  Number of program headers:         6
                  Size of section headers:           40 (bytes)
                  Number of section headers:         27
                  Section header string table index: 26
                libnetwork.so                                                                                         100% 1611KB   1.6MB/s   00:01
                ELF Header:
                  Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
                  Class:                             ELF32
                  Data:                              2's complement, little endian
                  Version:                           1 (current)
                  OS/ABI:                            UNIX - System V
                  ABI Version:                       0
                  Type:                              DYN (Shared object file)
                  Machine:                           Intel 80386
                  Version:                           0x1
                  Entry point address:               0x62c70
                  Start of program headers:          52 (bytes into file)
                  Start of section headers:          1648176 (bytes into file)
                  Flags:                             0x0
                  Size of this header:               52 (bytes)
                  Size of program headers:           32 (bytes)
                  Number of program headers:         6
                  Size of section headers:           40 (bytes)
                  Number of section headers:         27
                  Section header string table index: 26
                libcore-storage.so                                                                                    100% 1787KB   1.7MB/s   00:00
                ELF Header:
                  Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
                  Class:                             ELF32
                  Data:                              2's complement, little endian
                  Version:                           1 (current)
                  OS/ABI:                            UNIX - System V
                  ABI Version:                       0
                  Type:                              DYN (Shared object file)
                  Machine:                           Intel 80386
                  Version:                           0x1
                  Entry point address:               0x5b930
                  Start of program headers:          52 (bytes into file)
                  Start of section headers:          1828464 (bytes into file)
                  Flags:                             0x0
                  Size of this header:               52 (bytes)
                  Size of program headers:           32 (bytes)
                  Number of program headers:         6
                  Size of section headers:           40 (bytes)
                  Number of section headers:         27
                  Section header string table index: 26
                hostprofile.xml                                                                                       100% 2261     2.2KB/s   00:00
                libdebug.so                                                                                           100%   49KB  49.5KB/s   00:00
                ELF Header:
                  Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
                  Class:                             ELF32
                  Data:                              2's complement, little endian
                  Version:                           1 (current)
                  OS/ABI:                            UNIX - System V
                  ABI Version:                       0
                  Type:                              DYN (Shared object file)
                  Machine:                           Intel 80386
                  Version:                           0x1
                  Entry point address:               0x50d0
                  Start of program headers:          52 (bytes into file)
                  Start of section headers:          49604 (bytes into file)
                  Flags:                             0x0
                  Size of this header:               52 (bytes)
                  Size of program headers:           32 (bytes)
                  Number of program headers:         6
                  Size of section headers:           40 (bytes)
                  Number of section headers:         27
                  Section header string table index: 26
                libboot.so                                                                                            100% 2038KB   2.0MB/s   00:01
                ELF Header:
                  Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
                  Class:                             ELF32
                  Data:                              2's complement, little endian
                  Version:                           1 (current)
                  OS/ABI:                            UNIX - System V
                  ABI Version:                       0
                  Type:                              DYN (Shared object file)
                  Machine:                           Intel 80386
                  Version:                           0x1
                  Entry point address:               0x19e70
                  Start of program headers:          52 (bytes into file)
                  Start of section headers:          1995972 (bytes into file)
                  Flags:                             0x0
                  Size of this header:               52 (bytes)
                  Size of program headers:           32 (bytes)
                  Number of program headers:         6
                  Size of section headers:           40 (bytes)
                  Number of section headers:         38
                  Section header string table index: 35
                libsched.so                                                                                           100%  226KB 225.6KB/s   00:00
                ELF Header:
                  Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
                  Class:                             ELF32
                  Data:                              2's complement, little endian
                  Version:                           1 (current)
                  OS/ABI:                            UNIX - System V
                  ABI Version:                       0
                  Type:                              DYN (Shared object file)
                  Machine:                           Intel 80386
                  Version:                           0x1
                  Entry point address:               0xf200
                  Start of program headers:          52 (bytes into file)
                  Start of section headers:          229956 (bytes into file)
                  Flags:                             0x0
                  Size of this header:               52 (bytes)
                  Size of program headers:           32 (bytes)
                  Number of program headers:         6
                  Size of section headers:           40 (bytes)
                  Number of section headers:         27
                  Section header string table index: 26
                libnetworkinternal.so                                                                                 100%  510KB 509.6KB/s   00:01
                ELF Header:
                  Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
                  Class:                             ELF32
                  Data:                              2's complement, little endian
                  Version:                           1 (current)
                  OS/ABI:                            UNIX - System V
                  ABI Version:                       0
                  Type:                              DYN (Shared object file)
                  Machine:                           Intel 80386
                  Version:                           0x1
                  Entry point address:               0x8020
                  Start of program headers:          52 (bytes into file)
                  Start of section headers:          493348 (bytes into file)
                  Flags:                             0x0
                  Size of this header:               52 (bytes)
                  Size of program headers:           32 (bytes)
                  Number of program headers:         6
                  Size of section headers:           40 (bytes)
                  Number of section headers:         38
                  Section header string table index: 35
                libcore-storage-internal.so                                                                           100%   46KB  45.5KB/s   00:00
                ELF Header:
                  Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
                  Class:                             ELF32
                  Data:                              2's complement, little endian
                  Version:                           1 (current)
                  OS/ABI:                            UNIX - System V
                  ABI Version:                       0
                  Type:                              DYN (Shared object file)
                  Machine:                           Intel 80386
                  Version:                           0x1
                  Entry point address:               0x5260
                  Start of program headers:          52 (bytes into file)
                  Start of section headers:          45540 (bytes into file)
                  Flags:                             0x0
                  Size of this header:               52 (bytes)
                  Size of program headers:           32 (bytes)
                  Number of program headers:         6
                  Size of section headers:           40 (bytes)
                  Number of section headers:         27
                  Section header string table index: 26
                libiscsi.so                                                                                           100% 1646KB   1.6MB/s   00:01
                ELF Header:
                  Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
                  Class:                             ELF32
                  Data:                              2's complement, little endian
                  Version:                           1 (current)
                  OS/ABI:                            UNIX - System V
                  ABI Version:                       0
                  Type:                              DYN (Shared object file)
                  Machine:                           Intel 80386
                  Version:                           0x1
                  Entry point address:               0x46b90
                  Start of program headers:          52 (bytes into file)
                  Start of section headers:          1684720 (bytes into file)
                  Flags:                             0x0
                  Size of this header:               52 (bytes)
                  Size of program headers:           32 (bytes)
                  Number of program headers:         6
                  Size of section headers:           40 (bytes)
                  Number of section headers:         27
                  Section header string table index: 26
                esxcli.css                                                                                            100% 1851     1.8KB/s   00:00
                esxcli.cgi                                                                                            100%   33     0.0KB/s   00:00
                esxcli-software                                                                                       100%   15KB  15.3KB/s   00:00
                • 20. Re: ESXi 5 esxcli installation of VIBs fails
                  yozh Novice

                  I spent all day searching I dont see anything regarding my issue anywhere... How is that possible ? Originaly I went from 4.1 to 5 as an upgrade, I`m assuming something went wrong there..... I was never able to use that command esxcli

                  • 21. Re: ESXi 5 esxcli installation of VIBs fails
                    yozh Novice

                    Is this proper ?

                     

                     

                    lrwxrwxrwx    1 root     root                 15 Aug 19  2011 esxcli -> /sbin/esxcli.py
                    lrwxrwxrwx    1 root     root                 12 Aug 19  2011 esxcli.cgi -> /sbin/esxcli
                    -r-xr-xr-x    1 root     root              69766 Aug 19  2011 esxcli.py
                    • 22. Re: ESXi 5 esxcli installation of VIBs fails
                      Novice

                      I agree, I was trying to help you figure out what went wrong. At this point this seems beyond typing in some easy commands it's probably best if you file a SR.

                      • 23. Re: ESXi 5 esxcli installation of VIBs fails
                        yozh Novice

                        ok, thanks for the help, we will try a full reinstall tonight and then an SR it is...

                        • 24. Re: ESXi 5 esxcli installation of VIBs fails
                          ggathagan Novice

                          This is waaaaay after the fact on this issue, but hopefully this will help others who have run into this problem:

                           

                          If you are lazy like me, you cut-and-paste the command for the update, for instance:

                           

                          esxcli software vib install –d /vmfs/volumes/datastore1/patch/update-from-esxi5.0-5.0_update02.zip

                           

                           

                          For some bizarre reason, the dash in front of the "-d" command is not interpreted correctly when you cut and paste to an SSH session with an ESXi host.

                           

                          So either type it all out manually, or replace the dash after you've cut and pasted the command.

                          It won't look any different, but it's solved the problem for me every time.

                           

                          In fact, the resaon I'm submitting this is so that it's out there the next time I forget and do a search for "Unknown command or namespace".

                          • 25. Re: ESXi 5 esxcli installation of VIBs fails
                            FCHip Lurker

                            Here's the solution for me

                            Apply this syntax:

                             

                            esxcli software vib install --depot=/path/to/package.zip

                             

                            For example:

                            esxcli software vib install --depot=/tmp/dell/OM-SrvAdmin-Dell-Web-7.1.0-5304.VIB-ESX50i_A00.zip

                             

                            To install Dell Open Manage.

                             

                            Regards.

                            • 26. Re: ESXi 5 esxcli installation of VIBs fails
                              JoshZitting Lurker

                              That did it for me!!! Stupid little fix! thanks for all the help!!!

                              • 27. Re: ESXi 5 esxcli installation of VIBs fails
                                ddawson100 Novice

                                ggathagan's fix worked for me. Pesky little dash. I had cut and paste from our internal wiki that I created when updating one standalone host. Tried another host and it failed. Was really puzzled until I used the same command but this time replacing the pasted dash with a manually entered dash.

                                • 28. Re: ESXi 5 esxcli installation of VIBs fails
                                  sebek Enthusiast

                                  First, unpack the archive, then add -v, so it should look like esxcli software vib install -v /path_to_vib_file. For best effect, put the binaries on shared vmfs, it will be available for every esx box in the cluster.

                                  • 29. Re: ESXi 5 esxcli installation of VIBs fails
                                    JPM300 Expert

                                    Here is the KB with installing patches from CLI

                                     

                                    VMware KB: Installing patches on an ESXi 5.x host from the command line

                                     

                                    Try:

                                     

                                    esxcli software vib install -d /tmp/VEM500-201108271.zip

                                     

                                    and make sure you have full acess to the folder, seeing as your probably logged in as Root you should be good to go.