Friday, September 02, 2011

Running VMWare Remote Console outside the browser

I found this solution at
http://www.geeklab.info/2010/02/running-vmware-remote-console-outside-the-browser/

cd /tmp
IP=the.esx.srv.ip # < fill in esx server ip address here
wget --no-check-certificate https://$IP/ui/plugin/vmware-vmrc-linux-x86.xpi
mv vmware-vmrc-linux-x86.xpi vmware-vmrc-linux-x86.zip
cd ~
mkdir -p bin/vmwareconsole # make directory bin in your own homedir
cd bin/vmwareconsole
unzip /tmp/vmware-vmrc-linux-x86.zip
cd ~/bin
ln -s vmwareconsole/plugins/vmware-vmrc . # make a symlink for easy access
vmware-vmrc # run the console


In 64 bit CentOS I had to install QtGUI library.

yum install libQtGui.so.4

or from CD/DVD media

yum --disablerepo=\* --enablerepo=c6-media install libQtGui.so.4

VMware-vmrc Documentation

http://communities.vmware.com/thread/156057?start=0&tstart=0

Linux:

https://[IP]/ui/plugin/vmware-vmrc-linux-x86.xpi

vmware-vmrc -h [] [-u -p ] -M moid

Windows:

https://[IP]/ui/plugin/vmware-vmrc-win32-x86.exe

vmware-vmrc.exe -h [-u -p ] -M moid

Example: vmware-vmrc -h 1.2.3.4 -u administrator -p 'password' -M vm-481

There are other options. Run vmware-vmrc -help to get help.

The parameter moid is Vmware Managed Object ID which can be retrieved by VMware PERL Toolkit. Here is perl example how to get it:

my %filter_hash = create_hash(Opts::get_option('ipaddress'),
Opts::get_option('powerstatus'),
Opts::get_option('guestos'));

my $vm_views = VMUtils::get_vms ('VirtualMachine',
Opts::get_option ('vmname'),
Opts::get_option ('datacenter'),
Opts::get_option ('folder'),
Opts::get_option ('pool'),
Opts::get_option ('host'),
%filter_hash);


foreach (@$vm_views) {
my $vm_view = $_;
my $moid = $vm_view->get_property('mo_ref')->value;
print "Manage Object ID: $moid\n";
}
Minimal Centos6 for VNC server running vmware-vmrc remotely

yum --disablerepo=\* --enablerepo=c6-media install xorg-x11-server-Xorg xorg-x11-xinit dbus-x11 xorg-x11-drv-ati twm xterm

INSTALL VMWARE TOOLS
it creates new /etc/X11/xorg.conf

yum --disablerepo=\* --enablerepo=c6-media install tigervnc-server
yum install xorg-x11-font*

Other useful links
https://github.com/vmware/rvc/downloads
http://kintoandar.blogspot.com/2011/06/gnome-3-vmware-console-with-vmware-vmrc.html


.

No comments: