VMDK Disk types

zeroedthick (default) – Space required for the virtual disk is allocated during creation. Any data remaining on the physical device is not erased during creation, but is zeroed out on demand at a later time on first write from the virtual machine. eagerzeroedthick – Space required for the virtual disk is allocated at creation time. In contrast to zeroedthick format, the data remaining on the physical device is zeroed out during creation....

October 25, 2013 · 2 min · Jahnin Rajamoni

Customizing the logon screens in ESXi

In order to post a message before the user logs in, edit the /etc/issue file and insert your custom text! To post a message after login, edit the message of the day file, i.e. /etc/motd and insert your custom text! To output custom text on the DCUI, from the vSphere Client, navigate to: Host -> Configuration -> Software -> Advanced Settings -> Annotations ->Add text to Annotations.WelcomeMessage

October 10, 2012 · 1 min · Jahnin Rajamoni

Removing parameters from multiple VMX files

Had a customer who wanted to remove parameters from multiple VMX files. The parameters were added in by vShield and we were unable to power on the VM Wrote the following script to search and remove the parameter for all the VMs registered on each ESXi host: vmlist=`hostname`.vmlist grep -i vmx /etc/vmware/hostd/vmInventory.xml | sed 's///g' | sed 's/<\/vmxCfgPath>//g' > $vmlist for i in `cat $vmlist` do echo " " echo Filename:$i echo Backing up VMX....

April 5, 2012 · 1 min · Jahnin Rajamoni

Adding the same annotations to multiple vmx files?

Here is a script you can run on the ESXi host to add an annotation into multiple vmx files: SAVEIFS=$IFS IFS=$(echo -en "\\n\\b") for i in \`find /vmfs/volumes/ -name \*.vmx\` do echo Filename:$i echo Backing up VMX... cp $i $i.bak echo Backup complete... echo adding the annotation: echo "annotation = \\"<Fill the annotation text here without the angle braces>\\"" >> $i echo Update done... read -p "Hit any key to continue....

October 18, 2011 · 1 min · Jahnin Rajamoni

Script to modify a parameter in multiple files

I had to change the svga.vramsize paramter across multiple vmx files on multiple datastores. So here is how i got it done: SAVEIFS=$IFS IFS=$(echo -en "\n\b") for i in `grep -l -i ‘svga.vramSize = "40968192"’ /vmfs/volumes/*/*/*.vmx` do echo Filename:$i echo Backing up VMX... cp $i $i.bak echo Backup complete... echo Current Parameter: grep -i svga.vramsize $i echo Updating VMX... sed -i 's/svga.vramSize = "40968192"/svga.vramSize = "31457280"/g' $i echo Update done... echo New Parameter: grep -i svga....

October 18, 2011 · 1 min · Jahnin Rajamoni