So I tend to do this a lot and always have to Google the procedure. One would think I would make a script to sort this out * shrugs shoulders.
I have seen the good the bad and just downright useless tutorials for this and hence I am posting my own working version ( I know this because I did this just a few minutes ago). From what I can gather it should work for Ubuntu 11.10 – 12.10 without any hassle.
Use Install vmWareTools option in vmWare Client to attach media:(see the pic)
- Update the server
sudo apt-get -y update
sudo apt-get -y upgrade
- Create the mount point
sudo mkdir -p /media/cdrom
sudo mkdir -p /media/cdrom
- Mount the ISO
sudo mount /dev/cdrom /media/cdrom
sudo mount /dev/cdrom /media/cdrom
You should see the message: mount: block device /dev/sr0 is write-protected, mounting read-only
- Change Directory
cd /media/cdrom
cd /media/cdrom
- Copy the tar file to your /tmp directory
sudo cp VM*.tar.gz /tmp
sudo cp VM*.tar.gz /tmp
- Install Build tools if necessary
sudo apt-get -y install linux-headers-server build-essential
sudo apt-get -y install linux-headers-server build-essential
- Change Directory
cd /tmp
cd /tmp
- Unmount the ISO
sudo umount /media/cdrom
sudo umount /media/cdrom
- Expand the tar
sudo tar xzvf VM*.tar.gz
sudo tar xzvf VM*.tar.gz
- Change Directory
cd vmware-tools-distrib
cd vmware-tools-distrib
- To prevent a potential error in the install script on Ubuntu 11.10+, create a special directory, this will make things easier in case you get an error message “Unable to create symlink “/usr/lib64/libvmcf.so” pointing to file ”/usr/lib/vmware-tools/lib64/libvmcf.so/libvmcf.so”.
sudo mkdir -p /usr/lib64
sudo mkdir -p /usr/lib64
- Run the Install Script. The -d flag automatically answers the default to all questions. To customize it, just omit the -d.
sudo ./vmware-install.pl -d
sudo ./vmware-install.pl -d
- Reboot
sudo reboot
Awesome 😀 Now things should be installed and working, well that is unless something went wrong somewhere 🙁
Leave a Reply