VMware Cloud Community
yozh
Enthusiast
Enthusiast

ESXi 5 esxcli installation of VIBs fails

Well to tell you the thruth it doesnt even start.....

I`m trying to install 1000v VIB via CLI directly on the host via SSH.

Here is what I get

[CODE]

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

Error: Unknown command or namespace software vib install /tmp/VEM500-201108271.zip

[/CODE]

Even to list installed VIBs.

[CODE]

esxcli software vib list
Error: Unknown command or namespace software vib list

[/CODE]

What am I doing wrong ? This is a new ESXi 5 install (upgrade from 4.1)

33 Replies
Cr0n_J0b
Contributor
Contributor

Same issue here.  I'm just trying to patch the server.  I don't have update manager and I'm using the same CLI tools that I had from the 4.1 days.

Reply
0 Kudos
Dave_Mishchenko
Immortal
Immortal

If you're doing this at the console you'll want to use one of the options to specify a VIB file -  -n/--vibname or -v/--viburl.

Remotely, you'll want to update the version of the vCLI that you're using.  esxcli has been significantly enhanced in the 5.0 release.

Reply
0 Kudos
john23
Commander
Commander

check this blog....

http://virtualvm.wordpress.com/2011/09/13/patching-in-esxi-5-0/

Thanks -A Read my blogs: www.openwriteup.com
Reply
0 Kudos
yozh
Enthusiast
Enthusiast

I`m really not sure what I did last time, but I`m trying to upgrade to a VIB on my ESXi and its still not working, from vCLI or shell

Error: Unknown command or namespace software vib list

PLease help, as I need to update ASAP.

Reply
0 Kudos
admin
Immortal
Immortal

Can you try running

esxcli software vib list

and if it fails look through /var/log especially esxcli.log and hostd.log and post any related messages?

Reply
0 Kudos
yozh
Enthusiast
Enthusiast

/bin # esxcli software vib list
Error: Unknown command or namespace software vib list
/bin # more /var/log/esxcli.log
[root ERROR] Unknown command or namespace software vib list
/bin #
Reply
0 Kudos
admin
Immortal
Immortal

What does

grep -r ERROR /var/log

give you?

Reply
0 Kudos
admin
Immortal
Immortal

Also can you post the output of

esxcli --help

it should list the available namespaces

Reply
0 Kudos
yozh
Enthusiast
Enthusiast

See below, I remmber it was something where I had to specify something like, esxcli IMAGE_or_something software that was for vem-cmd, never mind

/bin # grep -r ERROR /var/log
/var/log/vmware/vua-1.log:-->       <result>ERROR</result>
/var/log/vmware/vua-1.log:-->       <result>ERROR</result>
/var/log/vmware/vua-1.log:--> ERROR:root:Mount failed: (256) mount: applet not found
/var/log/vmware/vua-1.log:-->       &lt;result&gt;ERROR&lt;/result&gt;
/var/log/vmware/vua-1.log:-->       &lt;result&gt;ERROR&lt;/result&gt;
/var/log/vmware/vua-1.log:--> ERROR:root:Mount failed: (256) mount: applet not found
/var/log/vmware/vua.log:-->       <result>ERROR</result>
/var/log/vmware/vua.log:-->       <result>ERROR</result>
/var/log/vmware/vua.log:--> ERROR:root:Mount failed: (256) mount: applet not found
/var/log/vmware/vua.log:-->       &lt;result&gt;ERROR&lt;/result&gt;
/var/log/vmware/vua.log:-->       &lt;result&gt;ERROR&lt;/result&gt;
/var/log/vmware/vua.log:--> ERROR:root:Mount failed: (256) mount: applet not found
/var/log/.vmsyslogd.err:2012-01-17T02:46:11.592Z vmsyslog.main            : ERROR   ] reloading (2642)
/var/log/esxcli.py.log:[root ERROR] Unknown command or namespace software vib list
/var/log/syslog.log:2012-01-28T11:14:35Z sfcb-vmware_base[113384]: ERROR READING FROM SOCKET
/var/log/shell.log:2012-02-29T18:47:10Z shell[1877788]: vmgrep -r ERROR /var/log
/var/log/shell.log:2012-02-29T18:47:10Z shell[1877788]: grep -r ERROR /var/log
/var/log/esxcli.log:[root ERROR] Unknown command or namespace vm
/bin #
Reply
0 Kudos
yozh
Enthusiast
Enthusiast

/bin # esxcli --help
Usage: esxcli [options] {namespace}+ {cmd} [cmd options]
Options:
  --formatter=FORMATTER
                        Override the formatter to use for a given command. Available
                        formatter: xml, csv, keyvalue
  --debug               Enable debug or internal use options
  --version             Display version information for the script
  -?, --help            Display usage information for the script
/bin #
Reply
0 Kudos
admin
Immortal
Immortal

Ok, somehow the esxcli infrastructure doesn't find the namespace plugins. Can you run this command

find /usr/lib/vmware/ | grep -i esxcli

and post the result?

Reply
0 Kudos
yozh
Enthusiast
Enthusiast

REALLY THANK YOU for helping me...

/bin # find /usr/lib/vmware/ | grep -i esxcli
/usr/lib/vmware/esxcli
/usr/lib/vmware/esxcli/ext
/usr/lib/vmware/esxcli/ext/cisco.xml
/usr/lib/vmware/esxcli/ext/esxcli-syslog.xml
/usr/lib/vmware/esxcli/ext/esxcli-software.xml
/usr/lib/vmware/esxcli/libfcoe.so
/usr/lib/vmware/esxcli/libvms.so
/usr/lib/vmware/esxcli/libhardware.so
/usr/lib/vmware/esxcli/libsystem.so
/usr/lib/vmware/esxcli/libnetwork.so
/usr/lib/vmware/esxcli/libcore-storage.so
/usr/lib/vmware/esxcli/int
/usr/lib/vmware/esxcli/int/ext
/usr/lib/vmware/esxcli/int/ext/hostprofile.xml
/usr/lib/vmware/esxcli/int/libdebug.so
/usr/lib/vmware/esxcli/int/libboot.so
/usr/lib/vmware/esxcli/int/libsched.so
/usr/lib/vmware/esxcli/int/libnetworkinternal.so
/usr/lib/vmware/esxcli/int/libcore-storage-internal.so
/usr/lib/vmware/esxcli/libiscsi.so
/usr/lib/vmware/hostd/docroot/esxcli.css
/usr/lib/vmware/hostd/cgi-bin/esxcli.cgi
/usr/lib/vmware/esxcli-software
/bin #
Reply
0 Kudos
admin
Immortal
Immortal

Hmm that looks all correct. Just to verify my assumption you are running in a root shell right? Can you type

who

and post the output?

Reply
0 Kudos
yozh
Enthusiast
Enthusiast

I`m on the root shell, I also tried from vCLI and get exactly same results

/bin # who
USER       TTY              IDLE      TIME            HOST
root       char/pty/t1      00:00     Feb 17 21:07:08 win7quad.lan
root       char/pty/t2      00:00     Feb 29 18:18:52 win7quad.lan
/bin #
Reply
0 Kudos
yozh
Enthusiast
Enthusiast

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 ?

Reply
0 Kudos
admin
Immortal
Immortal

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

Reply
0 Kudos
yozh
Enthusiast
Enthusiast

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.....

Reply
0 Kudos
admin
Immortal
Immortal

[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?

Reply
0 Kudos
yozh
Enthusiast
Enthusiast

$ 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
Reply
0 Kudos