VMWare Server 2.0 Console Failure

The latest VMWare Server is only supporting Web Access for configuration including console access to a Virtual Machine.
There is a Firefox Plugin for the remote console, but that did not work in my setup. The Web Access will no longer complain about a missing plugin after installation, but the console will not start either.
While searching for a fix, I also found instructions to run the remote console in the command line. Combining this with an environment setting for GTK, I am now able to run a remote console.

My solution is starting with the normal installation of the Firefox Plugin. If that's available the following script should start a remote console from command line:

#!/bin/bash
################################################################################
# Call VMWare Server's Remote Console in a clean GTK setup.
################################################################################

# Clean GTK setup for VMWare
export VMWARE_USE_SHIPPED_GTK=yes

# Find console executable in Firefox plugins.
vmrc="$(find "$HOME/.mozilla/firefox" -name vmware-vmrc -type f -perm -111 | tail -1)"
[ -x "$vmrc" ] || exit 1

set -x
cd "$(dirname "$vmrc")" && "$vmrc" -h 127.0.0.1:8333

It should also be possible to run Firefox by VMWARE_USE_SHIPPED_GTK=yes firefox in your Linux command line to fix the GTK issue.

Technorati Tags:Technorati Tags:

Comments

Successful Installation of VMware 2.0.2 on Ubuntu 9.04 x86_64

Hi
I greatly appreciate your contributions, comments and technical advices in sharing and contributing
the script so that the VMware-server-2.0.2-203138.x86_64 can be installed successfully without too much difficulties.
Spirit of Open-Source in Linux world LIVES!
Thank you
Alexander

Finally - it works!

Thanks for this magic script - I downloaded it, linked my tray icon to it - and it works flawlessly in my environment (Ubuntu Karmic 32bit on a AMD Athlon X2 Dual Core)!

path to vmware?

how do I find out my path? I've tried a few but was no luck. I downloaded the vmware server to Downloads and when I sudo ./vmware-server-2.0.x-kernel-2.6.3x-install.sh [PATH _TO_VMWARE_ARCHIVE].. couldn't find the path.

Can you help?

couldn't find the path - misleading error message?

Perhaps you are just getting a misleading error message. Before further investigations, can you please check that the script vmware-server-2.0.x-kernel-2.6.3x-install.sh is executable?
You can also just prepend a call to the shell, thus using a command like sudo /bin/bash vmware-server-2.0.x-kernel-2.6.3x-install.sh [PATH_TO_VMWARE_ARCHIVE] instead.

VMWare 2.0.x Install script

A beautifully seamless script, weaved in with the standard installation script. As far as I can tell, not a single problem...installed on Ubuntu Karmic on AMD-64 workstation...

Outstanding Work

Thank you guys for doing the dirty work and making my life easier.

problem after mounting /home/user on another disk

Hello,

Fisrt of all thank you for the script, it did great job until i decided to mount my home folder on another disk...
Now when i'm launching the script i get this error :

demonipuch@ubuntu:~$ ./Bureau/start-VMware-console.sh
++ dirname /home/demonipuch/.mozilla/firefox/71d3proa.default/extensions/VMwareVMRC@vmware.com/plugins/bin/vmware-vmrc
+ cd /home/demonipuch/.mozilla/firefox/71d3proa.default/extensions/VMwareVMRC@vmware.com/plugins/bin
+ /home/demonipuch/.mozilla/firefox/71d3proa.default/extensions/VMwareVMRC@vmware.com/plugins/bin/vmware-vmrc -h 127.0.0.1:8333
/home/demonipuch/.mozilla/firefox/71d3proa.default/extensions/VMwareVMRC@vmware.com/plugins/bin/vmware-vmrc: error while loading shared libraries: libexpat.so.0: cannot open shared object file: No such file or directory

libexpat.so.0 actually exists in the folder /home/demonipuch/.mozilla/firefox/71d3proa.default/extensions/VMwareVMRC@vmware.com/plugins/lib

What's wrong with the script and how can i fix it please??

nevermind, i got it working

nevermind, i got it working now...
i had to add those lines


VMLIB=$(dirname "$vmrc")
VMLIB=$(dirname "$VMLIB")/lib

export LD_LIBRARY_PATH=$VMLIB/libexpat.so.0:$VMLIB/libsexymm.so.2:$VMLIB/libview.so.2:$VMLIB/libvmwarebase.so.0:$VMLIB/libvmwareui.so.0:$VMLIB/libgvmomi.so.0

libsexy

Hi,

It works only this solution, extended with:
$VMLIB/libsexy.so.2

Ubuntu 10.04 LTS Lucid Lynx 64bit
VMware Server 2.0.2-203138
Firefox 3.6.3
Kernel 2.6.32-22

Thanks for your help! :)

Best regards,
Simon

VMWare Plugin LD_LIBRARY_PATH

I am wondering, if the more general definition will also work:

export LD_LIBRARY_PATH="$(dirname "$vmrc")/lib"

Can you check that please?

Pingback

[...] me a Kudos line in here and one for Holger here. If the solution worked well for you please share this info wherever you [...]

vmware script

Great work!!!
This save me alot of work :-)

Great job

Thanks a lot. It worked like a charm on 9.10 64bit...
Christophe Lize

Pingback

[...] me a Kudos line in here and one for Holger here. If the solution worked well for you please share this info wherever you [...]

thank you

big time help on ubuntu x64 9.10 server

vmware server modules build

http://radu.cotescu.com/2009/10/30/how-to-install-vmware-server-2-0-x-on...

Installation works fine. Great, great job.

Karmic Coala x86_64,
Updated Kernel 2.6.31-14-generic
VMware Server 2.0.2-203138

VMWare Console's GTK

In the meantime I got some more details about this issue (yes, I admit, that I used GTK-clients in KDE using appropriate schemes):

  • Starting Firefox with a QT-related GTK scheme will break the VMWare Server Console, carping Glib::FileError.
  • Setting VMWARE_USE_SHIPPED_GTK=yes in the environment before starting Firefox will fix the problem, the VMWare plugin will not use my GTK setting.
  • Using another GTK scheme (not QT or QTCurve) will also solve this issue.