Saturday, April 4, 2009

Ubuntu 9.04 (beta) In VMware Fusion




Ubuntu 9.04 (beta) In VMware Fusion

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:

Anonymous said...

Very beauty skin...
welcome linux

Anonymous said...

"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

Anonymous said...

Thank you! You patch also works with my vmware workstation 6.5.2.

Anonymous said...

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.

Anonymous said...

Grateful thanks for this fix to page.c from a noob.

;-)

Anonymous said...

Agreed - thanks for the hgfs fix!!

prayeramedic on May 7, 2009 6:39 PM said...

I can't get this to work at all. I can't get VMWare tools to install at all. What gives?

Anonymous said...

"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??

Anonymous said...

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 :-)

Anonymous said...

Works like a charm. And the non-availability of filesharing across the Mac and Ubuntu was a real PITA. Thx.

Anonymous said...

Hey thanks. I've tried some other "solutions" but yours worked and was most clearly explained. Wish I had found ti two days ago.

Anonymous said...

I don't have the page.c file in the directory indicated.

Anonymous said...

Hmm they are using an old version of VMware-Tools this is not available in v. 7.7.5

Anonymous said...

I fixed mine using this nice little install script:
http://chrysaor.info/?page=faq#ubuntu904_tools

Anonymous said...

Thanks a bunch... what a life saver!

Anonymous said...

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!

Anonymous said...

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.

Anonymous said...

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.

mike said...

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/.

David Liu on July 8, 2009 12:37 PM said...

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

mike said...

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?

David Liu on July 8, 2009 1:36 PM said...

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

mike said...

we have workstation 5.5.6, I will look into that if you know it will work

Post a Comment

 

Followers

Recommended Gadget

  • ads
  • ads
  • ads
  • ads

Shooping Laptop Here!!! Copyright © 2009 Gadget Blog is Designed by Ipietoon Sponsored by Online Business Journal