Blog Archives
#VMware Fusion: Script to Easily Install VMware Tools [OUTDATED]
If you run a linux guest VM, every time you update the kernel you need to reinstall VMwareTools for optimal performances.
After selecting Virtual Machine > Install VMware Tools you need to untar the archive and then run a script that ask you many question, etc.
This can be very tedious, so this is a little script that minimize typing:
#!/bin/bashtar xzf /media/VMware\ Tools/VMwareTools-*.tar.gz -C /tmpumount /media/VMware\ Toolssudo /tmp/vmware-tools-distrib/vmware-install.pl -dmkdir -pv ~/Desktop/VMwareSharedrm -v ~/Desktop/VMwareShared/*if [ -d /mnt/hgfs ]thenln -sv /mnt/hgfs/* ~/Desktop/VMwareShared/fivmware-userVMware now recommends to use the open-vm-tools-desktop provided by the Linux distribution of your choice.
NOTE: -d option implies default answers to install script (most of the time they are ok)
NOTE2: the script create a directory on Desktop with all directories shared by the host system with the VM
NOTE3: this script has been tested only on Ubuntu 12.04 LTS
NOTE4: this script install native VMware Tools, if you want you can install open tools instead, but you can’t install both at the same time!