If you are looking to install VMware VMTools on multiple Ubuntu or Debian Linux servers and don’t feel like typing commands all day then you can run this bash script to install it automatically so long as you are willing to accept all defaults.

1. Mount VMtools

2. Create script folder

mkdir -p /scripts

3. Create scripting file

vi /scripts/vmware-inst.sh

4. Paste the following into the script

mkdir -p /mnt/vmtools
mkdir -p /tmp/vmtools
mount /dev/cdrom /mnt/vmtools
cp /mnt/vmtools/VM*.gz /tmp/vmtools
cd /tmp/vmtools
tar zxvf VM*.gz
cd vmware-tools-distrib
./vmware-install.pl -d
rmdir /mnt/vmtools
rm -rf /tmp/vmtools
echo Finished installation and cleaned up

5. Change script to execute parameters

chmod +x /scripts/vmware-inst.sh

6. Execute script


Should you have any questions, comments or suggestions, please don’t hesitate to comment below. If you like what you have read, please share it on your favourite social media medium.

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.