Growing a Virtual Disk from the command line

Use the command: vmkfstools -X xxG -X - Grow the virtual disk. xxG and xxM - GB or MB in size.

October 25, 2013 · 1 min · Jahnin Rajamoni

How to create VMDK descriptor files the easy way

How do you create the vmdk descriptor file when you have just the flat vmdk file? Find the size of the -flat.vmdk file. "ls -l" will list the files and their sizes Use vmkfstools to create a thin vmdk disk with the same size as the “-flat.vmdk disk in a temporary folder” syntax: "vmkfstools -c m -d thin -a lsilogic /tmp/[filename]" -c : can be specified in kilobytes, megabytes or gigabytes....

October 25, 2013 · 1 min · Jahnin Rajamoni

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