All credit goes to
Mufassa for coming up with the excellent approach to installing VMware Tools on recent Linux distros. I turned it into a
step-by-step post on my blog.
In summary:
• Install any dependencies not shipped with a default Ubuntu install (build-essentials, libgtk2.0-dev, libproc-dev, libdumbnet-dev, xorg-dev)
• Get the official and open tools, and extract them
• Compile the open tools
• Rename and tar them as expected by the official tools
• Overwrite the official tools archives with the open ones
• Install them using the official tools install script
First, you’ll need to add several packages, either via Synaptic or apt-get:
• build-essentials, libgtk2.0-dev, libproc-dev, libdumbnet-dev
• xorg-dev
OR libX11-dev, libxinerama-dev, libxrandr-dev, libxtst-dev
A couple of these are new - libdumbnet and libproc were added as dependencies in the 2008-04-14 version of the tools, so other guides you see likely won’t list these.
Next, download and untar both the open tools and the official ones:
•
Open VM Tools at SourceForge
• Official Tools are included on an iso that can be mounted via the standard VMware GUI - when mounted you want the tar.gz, not the rpm.
• Move these somewhere convenient; I recommend the desktop.
• Use “tar -xvzf file.tar” on each to expand.
Compile the open tools (if you have your dependencies straightened out, this should be fast and easy):
1) cd open-vm-tools-*/
2) ./configure && make
Next, package up the compiled modules:
3) cd modules/linux/
4) for dir in *; do mv ${dir} ${dir}-only; tar cf ../../../vmware-tools-distrib/lib/modules/source/${dir}.tar ${dir}-only; mv ${dir}-only ${dir}; done
5) cd ../../../
Finally, install the updated tools:
6) cd vmware-tools-distrib
7) ./vmware-install.pl
A few notes:
• If you disabled Shared Folders in your VM config, you’ll see a message “Mounting HGFS shares: failed”. Just enable shared folders and reboot.
• Networking does not seem to properly configure itself when on the default “roaming” mode. I’m honestly not sure what is wrong here, but switching it to manual configuration with DHCP or static IP works fine.
• While this was all done on Ubuntu 8.04, I expect it will work fine in the future for new Linux versions and distributions.
Enjoy!
This document was generated from the following thread:
VMWare Fusion 1.1.2 and Ubuntu 8.04/Linux 2.6.24 - Step By Step
diamonds,
Thanks for the post. I really can't believe this problem has existed for so darn long, and that there is no definitive solution on Google, or on the VMware forum. There has got to be a scary amount of lost productivity because of this annoyance.
I followed your step-by-stepguide , which did allow me to compile the openvm sources. Thanks again! (I still can't get the sources provided by VMware in the VMware Tools archive to compile. Gross.)
When I was trying to compile under Ubuntu 8.04, I may have selected the wrong X libs. I didn't see any instructions on how to select (correctly) between xorg-dev and libX11-dev. It was also a little ambiguouse whether you were saying xorg-dev or the four other dev sources (libX11-dev, libxinerama-dev, libxrandr-dev, libxtst-dev). I read it as just the 2 alternatives (xorg-dev or libX11-dev).
I selected libX11-dev the first time. There were only 2 hiccups: The first was that half way through the ./configure it barked about missing ICU.org sources. I added libicu-dev to the long list of sources to install and then ./configure && make sailed without warnings.
The second hiccup was that the "for dir ... done" didn't work. The latest VMware Tools from VMwarer is VMwareTools-1.0.5-80187.tar.gz. When that untars (with tar -xzvf), the vmware-tools-distrib/lib/modules/source/*.tar files come out read-only (444). Tar won't crush them unless you chmod 644 them first.
Then, everything seemed to work, but (after re-booting), the stupid mouse won't release unless I tap Ctl+Alt. According to the Server Console, that indicates VMware Tools isn't running in the guest. I verified /usr/sbin/vmware-guestd is running and vmware-checkvm returns: VMware software version 6 (good)
That's it from the battlefront. I sure hope someone else has more luck than me.
I've just tried to recompile the