VMWare Tools into Linux via Cli

First got to the Console Virtual Machine > Install VMware Tools.
#Mount the CD drom
sudo mkdir /mnt/cdrom
sudo mount /dev/cdrom /mnt/cdrom

#Run this command to find the exact name of the VMware Tools bundle; the file name varies depending on your version of Fusion:
ls /mnt/cdrom

#Extract contents of cdrom to tmp directory
tar -zxvf /mnt/cdrom/VMwareTools-.tar.gz -C /tmp/

Note: is the version discovered in the previous step which at the time of writing was VMwareTools-8.3.7-341836.tar.gz

#now move into the vmware tools directory in tmp directory.
cd /tmp/vmware-tools-distrib/

#Run the installer with the -d switch to accept defaults.
sudo ./vmware-install.pl -d

Note: The -d switch assumes that you want to accept the defaults. If you do not use -d, press Return to accept the defaults or supply your own answers.

#If the installer can’t find GCC compiler , run
sudo apt-get install gcc

Auto start of vmware tools is essential to a stress free admin life. Run this command to reboot the virtual machine after the installation completes:

#Rebooting to test persistence of the vmware tools across reboots.
sudo reboot

Check if the VMware Tools status shows ‘OK’on the vm summary tab of vSphere server. This method ensure proper permissions for executable and puts the file in startup as well.


Enter SANman!

Openfiler 2.99 Final-

NFS does NOT work:
Portmap and rpcbind are fighting for control. The portmap service has been replaced by rpcbind in most distros, so I don’t think both should be active. Stopping and disabling the portmap service, then restarting the other NFS-related services seems to fix the problem:

# Confirm that mountd is missing (NFSv3 is broken)
rpcinfo -p | grep mountd

# Stop running NFS-related services
service nfslock stop
service nfs stop
service portmap stop
service rpcbind stop

# Make sure NFS-related services start at boot
chkconfig rpcbind on
chkconfig nfs on
chkconfig nfslock on

# Prevent portmap from starting at boot
chkconfig portmap off

# Restart nfs related services without portmap
service rpcbind start
service nfs start
service nfslock start

# Confirm that mountd is available (NFSv3 is working)
rpcinfo -p | grep mountd

NFSv3 mounts (ESXi 4.1u1) should work now. I may be over simplifying the problem, so proceed with caution.

Backup Jobs:

RSYNC documentation:

rsync -avr –inplace –progress –delete /mnt/vol1/store1/vmstore1 /mnt/spare01/backup01/june12/

rsync -avr –inplace –progress –delete /mnt/vol1/store2/vmstore2 /mnt/spare01/backup01/june12/

rsync -avr –inplace –progress –delete /mnt/vol1/store4/iso1 /mnt/spare01/backup01/june12/

rsync -avr –inplace –progress –delete /mnt/vol1/store5/doogie /mnt/spare01/backup01/june12/

rsync -avr –inplace –progress –delete /mnt/vol1/store3/rsync2 /mnt/spare01/backup01/june12/

# rsync -avr –inplace –progress –delete /mnt/vol1/store5/s /mnt/spare01/backup01/june12/


Delete a directory and all of it’s contents:

rm -f -r /mnt/spare01/backup01/june12/*