Friday, September 23, 2011

Hidden VAAI Command

Link to original Scott Lowe article.

COPY

As some of you are probably already aware, one of the storage-related features added to vSphere 5 is support for the SCSI UNMAP command. While you would normally want this functionality enabled, there could be instances where you might want to disable this functionality. Unfortunately, there’s no option in the user interface to enable or disable SCSI UNMAP support.

However, you can use esxcli to enable or disable UNMAP support:

esxcli system advcfg setvalue --int-value [0|1] --option /VMFS3/EnableBlockDelete

Setting this value to 0 disables SCSI UNMAP support; setting the value to 1 enables it.

Many thanks to Cormac Hogan of VMware and Cody Hosterman of EMC for their help with this command.

EMC Storage and Backup solutions for VMware

ftp://Bloglink:vgeekb1og@vspecialist.emc.com/Events/VMworld/2011/Americas/Sessions/SPO3977/SPO3977_sakac_final_v1.2_w_fonts.pptx

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


.