Login to guest OS hosted on VMWare ESXi 4 on gnu/Linux

Hi and salam,

Recently, I’ve posted my starting project / work on configuring / installing / managing VMWare ESXi 4 . Prior to my knowledge, I don’t know / maybe not enough search / any client based such as vSphere Client that is used on Windows platform, that can be used on gnu/linux base. What I know is using the vSphere Remote Command Line (RCLI) on gnu/linux, and that is quite tedious compare to the GUI – application vSphere Client. This post is about VMware Remote console plug-in, that is quite cool for me :)

While finding the way to install Vmware Server 2.0.2 x86_64 on Ubuntu 9.10 64bit, I’ve stumbled upon a bash script vmware-client-start.sh that is used to login into vmware server.. Maybe this is something that Vmware expert already knows, for a newb like me, I just know that script can also be used to login into an ESXi 4 server. It stated in the login popup that this can also be used to login into Vmware ESX 3.0, Vmware VirtualCenter 2.0, Vmware Server 2.0 or any later version of this products.

Bash script (Not by me) :

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

# Clean GTK setup for VMWare

export VMWARE_USE_SHIPPED_GTK=yes
export GDK_NATIVE_WINDOWS=true

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

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

set -x
cd “$(dirname “$vmrc”)” && “$vmrc” -h 192.168.1.2:8333

We can change the IP address for our own IP addresses / servers.

The script / plug in can also initiate multi login , to multi OSs and multi servers. Some of the screenshots:

Login page:

login

Snapshot below is for guest OS hosted in VMWare ESXi 4:

freekingawesome

Multi login different server:

multilogin

##P/S : VMware Remote console plug-in is not a VMWare vSphere Client.

##PP/S: This script does not support Vmware Server 1.xxx version

Author: salawank on December 24, 2009
Category: Uncategorized
Tags:

Leave a Reply

Last articles

8 visitors online now
8 guests, 0 members
Max visitors today: 8 at 11:14 am GMT-8
This month: 8 at 09-04-2010 04:05 pm GMT-8
This year: 21 at 03-24-2010 06:49 pm GMT-8
All time: 43 at 10-20-2009 08:17 am GMT-8

salawank is Digg proof thanks to caching by WP Super Cache