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. ↩
Skin Ubuntu!!!




www.ubuntu.com





23 comments:
Very beauty skin...
welcome linux
"Edit this file and do the following2
- page = __grab_cache_page(mapping, index);
+ page = grab_cache_page_write_begin(mapping, index, flags);"
Do you mean to add these two lines? If so, where
Thank you! You patch also works with my vmware workstation 6.5.2.
My mouse ungrab was also not working but I already had xserver-xorg-input-vmmouse installed and the xorg.conf edits mentioned in the other comment's link didn't fix it either.
What did work for me was to:
sudo apt-get remove xserver-xorg-input-vmmouse
and then
sudo apt-get install xserver-xorg-input-vmmouse
I then logged out, restarted the Xserver and now the mouse is getting released automatically just fine when pointer is moved outside the VMware fusion client's window.
Grateful thanks for this fix to page.c from a noob.
;-)
Agreed - thanks for the hgfs fix!!
I can't get this to work at all. I can't get VMWare tools to install at all. What gives?
"Edit this file and do the following2
- page = __grab_cache_page(mapping, index);
+ page = grab_cache_page_write_begin(mapping, index, flags);"
Do you mean to add these two lines? If so, where
I am not sure either, do you add these two lines to the file??
It means: remove the line with the '-' sign in front of it and add the one with '+' in front of it. Without the signs! These are only for guidance.
So, open the file, search for "page = __grab_cache_page(mapping, index);" and *replace* it with "page = grab_cache_page_write_begin(mapping, index, flags);" This is what he means :-)
Works like a charm. And the non-availability of filesharing across the Mac and Ubuntu was a real PITA. Thx.
Hey thanks. I've tried some other "solutions" but yours worked and was most clearly explained. Wish I had found ti two days ago.
I don't have the page.c file in the directory indicated.
Hmm they are using an old version of VMware-Tools this is not available in v. 7.7.5
I fixed mine using this nice little install script:
http://chrysaor.info/?page=faq#ubuntu904_tools
Thanks a bunch... what a life saver!
This will teach me to check for compatibility before installing the latest version of anything. Thanks for the help, it was definitely something I wasn't going to figure out!
Nice fix. It worked really well. To install the mouse drivers, just do:
sudo apt-get install xserver-xorg-input-vmmouse
in a terminal window and that will fix the mouse issue.
my page.c file doesn't contain the line grab_cache lines?
Do I have an old version of the tools? I don't get a download when I click install VMWare tools - only the .tar file in the Archive viewer.
Do i need to download a later version of the tools? If so, where can i get these? many thanks.
I have vmware workstation 5.5.6 and this patch doesn't work for me. I was able to fix the mouse issue, but really would prefer to be able to access my winDrive via /mnt/hgfs/.
Hi guys,
VMware Fusion 2.0.5 fixes these issues with Ubuntu 9.04 guest. Download it at http://www.vmware.com/dowload/fusion/.
David Liu
VMware
David
I did a quick read of VMware Fusion, first of all it will cost money and second it seems to be of use only for Mac users. Am I correct in this observation?
Mike: if you have an existing VMware Fusion license, the 2.0.5 update is free. And yes, VMware Fusion is only for Mac.
For getting Ubuntu 9.04 work in VMware Workstation, please check out our blog at http://blogs.vmware.com/workstation/2009/04/ubuntu-904-jaunty-jackalope-on-vmware-workstation-652.html
we have workstation 5.5.6, I will look into that if you know it will work
Post a Comment