Now that Ubuntu 9.04 has gone into beta I decided to build up a quick VM for random testing purposes. Installation is very straightforward: simply download the x86 or AMD64 CD image and install. However, since this is a beta things are in heavy flux — I would highly recommend upgrading to the latest packages before installing the VMware Tools since several bugs (like the infinitely multiplying window when mounting the VMWare Tools image) have been fixed.
Select “Install VMware Tools” from the Virtual Machine menu and then copy the tar to your Ubuntu desktop. Running the vmware-install.pl as superuser will net you a mostly functional system, but drag/drop files and mouse ungrab will not work.1
To get VMHGFS working (drag/drop file sharing), you will need to follow these instructions:
Navigate to vmware-tools-distrib/lib/modules/source and untar vmhgfs.tar. Inside the vmhgfs-only directory that is created there is a file called page.c.
Edit this file and do the following2
- page = __grab_cache_page(mapping, index);
+ page = grab_cache_page_write_begin(mapping, index, flags);
Move the vmhgfs.tar file to vmhgfs-old.tar and create a new tar with the modified file
tar cvf vmhgfs.tar vmhgfs-only
Run the vmware-install.pl script (as superuser)
At this time I haven’t managed to get mouse ungrab working, but let me know if you figure out a way! The vmmouse driver for X.org is available via apt-get install xserver-xorg-input-vmmouse, but does not appear to work any better than the one that comes with VMware Tools 7.9.3. Hopefully a driver compatible with X.org 7.5 shows up soon.
You may need to run sudo apt-get install build-essential to get the basic build environment. I don’t remember if I did this when building mine. ↩
For those unfamiliar with diff syntax, remove the first line and replace it with the second line. ↩