In Ubuntu the simplest way to install the VMware tools is through apt.
sudo apt-get install open-vmware-tools
Shouldn’t have to do anything else.
You can also install the tools by hitting Install VMware tools from either the web UI, or vShpere. This will mount a virtual CD on the OS, you can then copy the contents to a local directory in the vm. You can then proceed to install them by extracting the tar file with
tar -xzf VMware*
cd into the new directory
Install kernel headers, dkms, etc
dnf -y kernel-headers kernel-devel dkms gcc gcc-c++
Reboot the VM
Mount the Guest Additions by going to menu > Devices > Insert Guest Additions CD image… or you can hit “Host + D”.
The Host key is typically the Right Ctrl(On Windows) or CMD(On OS X) key.
Installing the Guest Additions
Via the GUI
Mount the Guest Additions from your file browser, and then launch the “VBoxLinuxAdditions.run”.
You will need root privileges, so either launch your file browser as root, or drag and drop the “VBoxLinuxAdditions.run”, into a root terminal and hit Enter.
Via Command Line
sudo mount /dev/cdrom /tmp/vbox
If you run into any errors, try ejecting, and remounting the Guest Additions cd.
1. Open a terminal and change to the root user
2. Then cd into the following directory
3. Install wget.
yum install wget
4. Download the repo files with wget.
5. Install the dependencies.
yum install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms
6. Update your computer.
7. Install VirtualBox.
yum install VirtualBox-4.2
8. Add the VirtualBox user to the vboxusers group
usermod -a -G vboxusers user_name
9. Reboot your computer.
10. Enjoy. If you run into problems try the following.
I have created a script that will do all this for you, download here. All you need to do is the following 3 commands.
chmod +x fedora-vb-installer.sh