Friday, September 23, 2011

Hidden VAAI Command

Link to original Scott Lowe article.


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

Friday, September 02, 2011

Running VMWare Remote Console outside the browser

I found this solution at

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
cd ~
mkdir -p bin/vmwareconsole # make directory bin in your own homedir
cd bin/vmwareconsole
unzip /tmp/
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

or from CD/DVD media

yum --disablerepo=\* --enablerepo=c6-media install

VMware-vmrc Documentation



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



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

Example: vmware-vmrc -h -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'),

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'),

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

it creates new /etc/X11/xorg.conf

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

Other useful links