Testing IOPS in VMware

23 04 2018

Take a test vm and add a new spare hard disk. Don’t use the operating system disk or any other with is already in use.

Limit the IOPS in that disk to 17, for example. Do that in the menu of the vm under Edit Configuration > Hard Disk (the new one) > Limit IOPS > Custom > 17

Create a partition, format it and mount, in this case, under “/mnt/sdb1”

In one terminal, launch a basic dd which write to that directory:
# while :; do dd if=/dev/zero of=/mnt/sdb1/test bs=1k count=1; done

In other terminal, watch how iostat report the exact “IOps” in the “tps” column:

# iostat 1 /dev/sdb
avg-cpu: %user %nice %system %iowait %steal %idle
1.50 0.00 0.50 49.00 0.00 49.00
Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn
sdc 17.00 0.00 84.00 0 84

If you have a graphic monitoring system, like Prometheus + Grafa + Node Exporter Full, check it in the graphs:

iops vmware

iops vmware


Increase filesystem without lvm in VMWare

4 12 2017

This method allow to increase a filesystem without using lvm, a simple virtual disk assigned to a virtual machine. It works if it is the root partition too. It doesn’t require reboot.

Note: Only works if the filesystem partition to grow is the last partition of the disk:

0.- Make a clone of the virtual machine for backup.

1.- Resize virtual disk in VMWare.

2.- Inside the vm, check the scsi connected devices:
# ls /sys/class/scsi_device/
0:0:0:0 2:0:0:0

3.- Force a reescan:
# echo 1 > /sys/class/scsi_device/2\:0\:0\:0/device/rescan
# echo 1 > /sys/class/scsi_device/0\:0\:0\:0/device/rescan

4.- Move the GTP backup partition table to the real end of the resized disk:
# gdisk /dev/sda
Command (? for help):
Command (? for help):
Relocating backup data structures to the end of the disk
Expert command (? for help):
Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
Do you want to proceed? (Y/N):

5.- Notify the partition change:
# partprobe

6.- Delete the target partition and recreate it using the new extra espace. This is only to define the new end of the partition:
# gdisk /dev/sda
Command (? for help):
Partition number (1-3):
Command (? for help):
Partition number (3-128, default 3):
First sector (34-73400286, default = 2222080) or {+-}size{KMGTP}:
Last sector (2222080-73400286, default = 73400286) or {+-}size{KMGTP}:
Current type is 'Linux filesystem'
Hex code or GUID (L to show codes, Enter = 8300):
Changed type of partition to 'Linux filesystem'
Command (? for help):
Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
Do you want to proceed? (Y/N):

7.- Notify the partition change:
# partprobe

8.- Finally, grow the filesystem:
# resize2fs /dev/sda3

Install VMware Horizon Client in Debian 8 Jessie

24 02 2017

Download the linux client from the VMware website:


The downloaded file is a bash script, execute it from a privileged user:

# bash VMware-Horizon-Client-4.3.0-4710754.x64.bundle

Install dependencies:

# apt-get install libudev-dev libffi-dev libglibmm-2.4-dev

Before finish the install, click into the “Scan” button. If libffi.so.5 is missing and you have libffi.so.6 only (usually in a modern Debian), create a symlink for bypass:

cd /usr/lib/x86_64-linux-gnu && ln -s libffi.so.6 libffi.so.5

Probably, if you execute now the client, it doesn’t start because the following:

$ vmware-view
/usr/lib/vmware/view/bin/vmware-view: error while loading shared libraries: libudev.so.0: cannot open shared object file: No such file or directory

Solve that creating a simlink:

# cd /lib/x86_64-linux-gnu && ln -s libudev.so.1 libudev.so.0

And run!:

$ vmware-view

Install official vmware-view-client in Debian 8 Jessie

28 04 2015

As 2017, this document is deprecated, please, follow the method indicated here: https://elhombrequereventodeinformacion.wordpress.com/2017/02/24/1969/


For x64 systems aren’t available the official pacakge of Vmware View Client. The only solution is make the trick with an old Ubuntu version package and the multiarch support of Debian.

First, add the x86 multiarch support:
dpkg --add-architecture i386
apt-get update

Install Gdebi for an easy dependency resolution:
apt-get install gdebi
Download libssl and vmware-view-client from Ubuntu site or from my github account:
wget 'http://archive.canonical.com/ubuntu/pool/partner/v/vmware-view-client/vmware-view-client_2.2.0-0ubuntu0.12.04_i386.deb'
wget 'http://mirrors.kernel.org/ubuntu/pool/universe/o/openssl098/libssl0.9.8_0.9.8o-7ubuntu3.2_i386.deb'
wget 'https://github.com/rfrail3/misc/blob/master/vmware/vmware-view-client_2.2.0-0ubuntu0.12.04_i386.deb?raw=true'
wget 'https://github.com/rfrail3/misc/blob/master/vmware/libssl0.9.8_0.9.8o-7ubuntu3.1_i386.deb?raw=true'

Install the packages and accept dependencies:
gdebi libssl0.9.8_0.9.8o-7ubuntu3.1_i386.deb
gdebi vmware-view-client_2.2.0-0ubuntu0.12.04_i386.deb

If all was ok, the new VMware View Client is available under your desktop menu.

Instalar Vmware View Client en Debian x64

13 12 2013

Si se tiene un sistema linux x64 y se pretende instalar Vmware View Client tendremos el principal problema de que no se han publicado un cliente oficial para esta arquitectura.

Como solución, teniendo Debian 7, podemos habilitar multiarch para permitir la instalación de paquetes x86 y bajar algún que otro paquete de ubuntu para finalmente solventar las dependencias.

Primero habilitamos multiarch:
dpkg --add-architecture i386
apt-get update

Instalamos Gdebi, para facilitar la resolución de dependencias:
apt-get install gdebi

Descargar vmware-view-client_2.1.0-0ubuntu0.12.04_i386.deb desde alguno de estos sitios:

Descargar libssl0.9.8_0.9.8o-7ubuntu3.1_i386.deb desde alguno de estos sitios:

Instalar libssl y vmware view:
# gdebi libssl0.9.8_0.9.8o-7ubuntu3.1_i386.deb
# gdebi vmware-view-client_2.1.0-0ubuntu0.12.04_i386.deb

Si todo ha ido bien, ya tendremos disponible el acceso desde Aplicaciones > Internet > VMware View Client


Añadir un disco duro nuevo a una máquina virtual de VMWare sin reiniciar

23 05 2012

Para añadir un disco duro nuevo a una máquina virtual de VMWare deberemos añadir el disco y después, ejecutar lo siguiente en la máquina linux:

echo "- - -" > /sys/class/scsi_host/host0/scan
echo "- - -" > /sys/class/scsi_host/host1/scan
echo "- - -" > /sys/class/scsi_host/host2/scan

Quizá también pueda interesar:

Instalar VMware VMRC en Linux

26 10 2011

Si hemos instalado Vsphere Client en su versión web y necesitamos instalar VMWare VMRC para gestionar mejor las instacias, deberemos descagar el archivo que nos proporciona la propia web de Vsphere, cambiar los permisos y finalmente instalar:

# chmod 777 VMware-VMRC.x86_64.bundle
# ./VMware-VMRC.x86_64.bundle

Sólo funciona con firefox en alguna versión superir a la 3.5, las rutas que proporciona el asistente suelen ser las correctas si hemos instalado firefox de la manera habitual.