vmware-archive / rvc

RVC is a Linux console UI for vSphere, built on the RbVmomi bindings to the vSphere API.
MIT License
240 stars 48 forks source link

vmrc on non 32bit platforms. #12

Open barn opened 13 years ago

barn commented 13 years ago

The vmrc stuff is hardcoded to 32bit, there also doesn't seem to be a 64bit version available from the same URL.

I've stolen the vmware-vmrc-linux-x64.xpi off of my Vcenter, and it works, just frustrating to have to do it all manually and hack the files directly to make it use it.

rlane commented 13 years ago

Excerpts from barn's message of 2011-05-20 17:05:36 -0400:

The vmrc stuff is hardcoded to 32bit, there also doesn't seem to be a 64bit version available from the same URL.

I've stolen the vmware-vmrc-linux-x64.xpi off of my Vcenter, and it works, just frustrating to have to do it all manually and hack the files directly to make it use it.

Originally I installed a 64 bit VMRC if possible, but for some reason that was less reliable than always installing 32 bit. I'll upload a 64-bit VMRC to the github downloads. Unfortunately the firewall here breaks the upload widget so I'll have to do it at home.

barn commented 13 years ago

On Fri, May 20, 2011 at 02:17:19PM -0700, rlane wrote:

Originally I installed a 64 bit VMRC if possible, but for some reason that was less reliable than always installing 32 bit. I'll upload a 64-bit VMRC to the github downloads. Unfortunately the firewall here breaks the upload widget so I'll have to do it at home.

On my: Linux natty 2.6.38-8-server #42-Ubuntu SMP Mon Apr 11 03:49:04 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

the 32-bit versions don't run for me. I blame the ELFs, which is why I went looking for it.

Maybe I need to install some libraries to get 32bit stuff happy on top of libxi6.

Thanks!

ben

rlane commented 13 years ago

Excerpts from barn's message of 2011-05-20 17:19:33 -0400:

Maybe I need to install some libraries to get 32bit stuff happy on top of libxi6.

What does "ldd /tmp/vmware-vmrc-linux-x86-3.0.0-309851/plugins/bin/vmware-vmrc" say? Maybe look for libraries ldd says are not found and aren't shipped with VMRC.

barn commented 13 years ago

On Fri, May 20, 2011 at 02:24:17PM -0700, rlane wrote:

What does "ldd /tmp/vmware-vmrc-linux-x86-3.0.0-309851/plugins/bin/vmware-vmrc" say? Maybe look for libraries ldd says are not found and aren't shipped with VMRC.

[ben@natty:/tmp]% ls -la plugins/bin/vmware-vmrc 1 -rwxr-xr-x 1 ben ben 2113428 2010-10-11 20:01 plugins/bin/vmware-vmrc [ben@natty:/tmp]% file plugins/bin/vmware-vmrc plugins/bin/vmware-vmrc: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.2.5, stripped [ben@natty:/tmp]% ldd -v plugins/vmware-vmrc
not a dynamic executable

ben

rlane commented 13 years ago

[ben@natty:/tmp]% ldd -v plugins/vmware-vmrc

This should be plugins/bin/vmware-vmrc.

barn commented 13 years ago

On Fri, May 20, 2011 at 02:33:57PM -0700, rlane wrote:

This should be plugins/bin/vmware-vmrc.

Sorry, i'm multitasking badly here. It makes no odds:

[ben@natty:/tmp]% file plugins/bin/vmware-vmrc plugins/bin/vmware-vmrc: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.2.5, stripped [ben@natty:/tmp]% ldd plugins/bin/vmware-vmrc not a dynamic executable

ben

rlane commented 13 years ago

Excerpts from barn's message of 2011-05-20 17:35:29 -0400:

[ben@natty:/tmp]% ldd plugins/bin/vmware-vmrc not a dynamic executable

Weird. Here's what I get:

rlane-desktop ~ % file /tmp/vmware-vmrc-linux-x86-3.0.0-309851/plugins/bin/vmware-vmrc /tmp/vmware-vmrc-linux-x86-3.0.0-309851/plugins/bin/vmware-vmrc: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.2.5, stripped rlane-desktop ~ % sha1sum /tmp/vmware-vmrc-linux-x86-3.0.0-309851/plugins/bin/vmware-vmrc 38ef89f64c16e000d876f49210af9bbd0013f773 /tmp/vmware-vmrc-linux-x86-3.0.0-309851/plugins/bin/vmware-vmrc rlane-desktop ~ % ldd /tmp/vmware-vmrc-linux-x86-3.0.0-309851/plugins/bin/vmware-vmrc linux-gate.so.1 => (0xf771b000) libX11.so.6 => /usr/lib32/libX11.so.6 (0xf75da000) libXext.so.6 => /usr/lib32/libXext.so.6 (0xf75cc000) libXi.so.6 => /usr/lib32/libXi.so.6 (0xf75bf000) libstdc++.so.6 => /usr/lib32/libstdc++.so.6 (0xf74d1000) libXinerama.so.1 => /usr/lib32/libXinerama.so.1 (0xf74cd000) libXau.so.6 => /usr/lib32/libXau.so.6 (0xf74ca000) libXcursor.so.1 => /usr/lib32/libXcursor.so.1 (0xf74c1000) libXrandr.so.2 => /usr/lib32/libXrandr.so.2 (0xf74ba000) libdl.so.2 => /usr/lib32/libdl.so.2 (0xf74b5000) libm.so.6 => /usr/lib32/libm.so.6 (0xf748a000) libpthread.so.0 => /usr/lib32/libpthread.so.0 (0xf746f000) librt.so.1 => /usr/lib32/librt.so.1 (0xf7466000) libexpat.so.0 => not found libfontconfig.so.1 => /usr/lib32/libfontconfig.so.1 (0xf7438000) libfreetype.so.6 => /usr/lib32/libfreetype.so.6 (0xf73b3000) libXrender.so.1 => /usr/lib32/libXrender.so.1 (0xf73aa000) libXft.so.2 => /usr/lib32/libXft.so.2 (0xf7398000) libgio-2.0.so.0 => /usr/lib32/libgio-2.0.so.0 (0xf726c000) libglib-2.0.so.0 => /usr/lib32/libglib-2.0.so.0 (0xf717e000) libgmodule-2.0.so.0 => /usr/lib32/libgmodule-2.0.so.0 (0xf717a000) libgobject-2.0.so.0 => /usr/lib32/libgobject-2.0.so.0 (0xf712b000) libgthread-2.0.so.0 => /usr/lib32/libgthread-2.0.so.0 (0xf7126000) libatk-1.0.so.0 => /usr/lib32/libatk-1.0.so.0 (0xf710b000) libpango-1.0.so.0 => /usr/lib32/libpango-1.0.so.0 (0xf70ca000) libpangoft2-1.0.so.0 => /usr/lib32/libpangoft2-1.0.so.0 (0xf70a3000) libpangoxft-1.0.so.0 => /usr/lib32/libpangoxft-1.0.so.0 (0xf709b000) libpangox-1.0.so.0 => /usr/lib32/libpangox-1.0.so.0 (0xf7090000) libgdk-x11-2.0.so.0 => /usr/lib32/libgdk-x11-2.0.so.0 (0xf6fe2000) libgdk_pixbuf-2.0.so.0 => /usr/lib32/libgdk_pixbuf-2.0.so.0 (0xf6fc0000) libgtk-x11-2.0.so.0 => /usr/lib32/libgtk-x11-2.0.so.0 (0xf6b66000) libsigc-2.0.so.0 => not found libgiomm-2.4.so.1 => not found libglibmm-2.4.so.1 => not found libglibmm_generate_extra_defs-2.4.so.1 => not found libatkmm-1.6.so.1 => not found libpangomm-1.4.so.1 => not found libgdkmm-2.4.so.1 => not found libgtkmm-2.4.so.1 => not found libart_lgpl_2.so.2 => not found libxml2.so.2 => not found librsvg-2.so.2 => not found libsexymm.so.2 => not found libsexy.so.2 => not found libview.so.2 => not found libarchive.so.2 => not found libz.so.1 => /usr/lib32/libz.so.1 (0xf6b4d000) libXdmcp.so.6 => /usr/lib32/libXdmcp.so.6 (0xf6b48000) libXfixes.so.3 => /usr/lib32/libXfixes.so.3 (0xf6b43000) libpangocairo-1.0.so.0 => /usr/lib32/libpangocairo-1.0.so.0 (0xf6b38000) libcairo.so.2 => /usr/lib32/libcairo.so.2 (0xf6a98000) libcairomm-1.0.so.1 => not found libpng12.so.0 => not found libvmwarebase.so.0 => not found libvmwareui.so.0 => not found libgvmomi.so.0 => not found libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf6a7b000) libc.so.6 => /usr/lib32/libc.so.6 (0xf6916000) /lib/ld-linux.so.2 (0xf771c000) libxcb.so.1 => /usr/lib32/libxcb.so.1 (0xf68fe000) libexpat.so.1 => /usr/lib32/libexpat.so.1 (0xf68d5000) libpcre.so.0 => /usr/lib32/libpcre.so.0 (0xf6898000) libresolv.so.2 => /usr/lib32/libresolv.so.2 (0xf6880000) libXcomposite.so.1 => /usr/lib32/libXcomposite.so.1 (0xf687d000) libXdamage.so.1 => /usr/lib32/libXdamage.so.1 (0xf687a000) libpixman-1.so.0 => /usr/lib32/libpixman-1.so.0 (0xf680e000) libpng14.so.14 => /usr/lib32/libpng14.so.14 (0xf67e7000)

barn commented 13 years ago

On Fri, May 20, 2011 at 02:39:30PM -0700, rlane wrote:

Weird. Here's what I get:

rlane-desktop ~ % sha1sum /tmp/vmware-vmrc-linux-x86-3.0.0-309851/plugins/bin/vmware-vmrc 38ef89f64c16e000d876f49210af9bbd0013f773 /tmp/vmware-vmrc-linux-x86-3.0.0-309851/plugins/bin/vmware-vmrc

[ben@natty:/tmp]% sha1sum plugins/bin/vmware-vmrc 38ef89f64c16e000d876f49210af9bbd0013f773 plugins/bin/vmware-vmrc

Same file...

This is Ubuntu 11.04, maybe they do something dumb with their libraries.

So, if you:

sudo apt-get install ia32-libs

then it works, well, ldds:

[ben@natty:/tmp]% ldd plugins/bin/vmware-vmrc
linux-gate.so.1 => (0xf77c9000) libX11.so.6 => /usr/lib32/libX11.so.6 (0xf7699000) libXext.so.6 => /usr/lib32/libXext.so.6 (0xf768a000) libXi.so.6 => /usr/lib32/libXi.so.6 (0xf767b000) libstdc++.so.6 => /usr/lib32/libstdc++.so.6 (0xf7590000) libXinerama.so.1 => /usr/lib32/libXinerama.so.1 (0xf758c000) libXau.so.6 => /usr/lib32/libXau.so.6 (0xf7588000) libXcursor.so.1 => /usr/lib32/libXcursor.so.1 (0xf757d000) libXrandr.so.2 => /usr/lib32/libXrandr.so.2 (0xf7575000) libdl.so.2 => /lib32/libdl.so.2 (0xf7571000) libm.so.6 => /lib32/libm.so.6 (0xf754b000) libpthread.so.0 => /lib32/libpthread.so.0 (0xf7532000) librt.so.1 => /lib32/librt.so.1 (0xf7528000) libexpat.so.0 => not found libfontconfig.so.1 => /usr/lib32/libfontconfig.so.1 (0xf74f9000)

and so on...

ben