Install Ubuntu 8.04 using VMware Fusion on Mac OS X
I recently installed Leopard on my Mac and lost a VMWare appliance of Linux (Oracle Enterprise Linux), instrumented with an Oracle database , that i ran before on Mac OS X Tiger using VMWare Fusion beta.
So i decided to install the last release of Ubuntu , Hardy Heron 8.04 :
- Firstly to have a simple platform with a Ruby on Rails stack for testing my current project Sudorace on Linux.
- Secondly i chose Ubuntu and not RedHat EL again (neither CentOS) because i currently do not need an instance of Oracle database for my personal purposes (i follow the YAGNI “You Ain’t Gonna Need It”). Working all business days in a full Oracle environment, i do not need now this kind of environment for my personal purposes; if tomorrow i should have an Oracle database instance, or an App Server, so i will install again the “Enterprise Linux” from Oracle.
I use VMWare Fusion , because i encountered problems while installing Linux with Parallels at a time. It seems Parallels team first focused on running Windows well.
About VMWare:
VMWare is the leader in virtual infrastructures for years. I remember a time near 2003, when we used VMWare to run Linux on a Windows host, for testing an Oracle database & Oracle RAC. VMWare declined the Mac version (VMWare fusion) once Apple switched to x86, but after Parallels.
Register for an evaluation or purchase a license then download VMWare Fusion
Download Ubuntu 8.04
Burn the ISO on a CD-R or keep it on your Hard Drive (you can install Ubuntu with VMWare Fusion from the ISO file)
Create a virtual machine with VMWare Fusion
Launch VMWare Fusion
Click the New button
Click Continue
Choose Linux then Ubuntu, and click Continue

Select name (Ubuntu Hardy Heron) and Location (mine is ~/Library/VMWare)
Specify HDD size
Check “Start virtual machine and install OS now” then choose the ISO file for Ubuntu, or the CD.
Click Finish, then Ubuntu installation starts.
As every Linux install you’ll have a few questions to answer before the installation starts.
Choose the language
Choose the timezone
Choose the keyboard : in my case US English - Mac (i have a qwerty keyboard)
And the installation starts… you can relax ~20 minutes.
Once Ubuntu installed shut down the system, and before next reboot, verify all the devices are well connected
Now the systems starts up.
Enter your login/password you setup during installation
VMWare Tools
Verify you have gcc installed. To install it, launch the command in a Terminal : sudo apt-get install build-essential
Install VMWare Tools :
Choose from the menu Virtual Machine -> Install VMWare Tools
The following packages will be downloaded
Copy VMWareTools-e.x.p-*.tar.gz to /tmp then in a Terminal window untar the tarball (tar xzvf VMWareTools-e.x.p*.tar.gz).
[UPDATE] Thanks for comments.
“It turns out that some changes to the Linux kernel — Ubuntu 8.04 uses Linux 2.6.24 — have introduced some issues that make running Ubuntu in a VMWare virtual machine difficult. Ubuntu will install just fine, but you won’t have access to VMWare Tools, which provides some nice features like shared folders and clipboard syncing.
While VMWare hasn’t released a solution yet, the company did recently open source its VM Tools and there’s already a very nice post in the VMWare forums on how to integrate the needed packages from open-vm-tools into into vmtools.” [Wired]
Install open-vmware-tools
Pre-requisities :
sudo apt-get install build-essential libgtk2.0-dev
sudo apt-get install libproc-dev libdumbnet-dev xorg-dev
cd Desktop/
Download from SourceForge Open VM Tools
Untar open-vm-tools-2008.05.02-90473.tar.gz
cd open-vm-tools-2008.05.02-90473/
./configure && make
cd modules/linux/
In the modules/linux folder we have the vmblock, vmhgfs, vmmemctl, vmsync and vmxnet modules that we need to tar up and place into the official VMware tools tarball:
for i in *; do mv ${i} ${i}-only; tar -cf ${i}.tar ${i}-only; done
cd ../../..mv -f open-vm-tools-2008.04.14-87182/modules/linux/*.tar vmware-tools-distrib/lib/modules/source/
Now we can run the regular VMware tools installer:
cd vmware-tools-distrib
Launch the installation : sudo ./vmware-install.pl
I’ve not compared all the features between a Linux installed on Parallels and Linux installed on VMWare Fusion, but what we can do with VMWare Fusion is the following :
DragDrop Files between Mac OS X & the virtual machine, Copy & Paste text between Mac OS X & the virtual machine, Moving the cursor between Mac OS X & the virtual machine, support for Airport Wireless network, Mounting USB drives, Resizing the Virtual Machine window.
Share Folder:
You can setup a Shared Folder on Mac OS X from VMWare Fusion (Virtual Machine settings)
From Ubuntu, the Public folder will be shown into /mnt/hgfs folder.
Now , if you want to install a complete RoR stack, you should follow the steps i described for the Debian Etch.
[UPDATE] Source for VMWare Tools fixing : Peter Cooper’s blog
Tags: hardy heron, Linux, Mac, open-vm-tools, open-vmware-tools, ubuntu, vmware














April 28, 2008 at 3:15 am
Did you actually get the tools to build? I just installed VMware Fusion 1.1.2 with the tools version 7.6.3-87978 from the menu and all modules failed to build. This is a problem with the 2.6.24 kernel, and as far as I know has not been officially fixed yet.
April 28, 2008 at 8:30 am
Did you have any trouble installing the vmware-tools at all? I am getting a compile error when it tries to compile the vmmemctl module. I am wondering if there is something missing that is needed? Thanks for this great how-to and any help you can give.
May 1, 2008 at 4:40 pm
Hi there. Just had to say thanks for the VM Ware tools part. Followed your directions and took me less then 5 minutes. Keep up the good work and have fun.
May 3, 2008 at 5:46 am
ceres, try this URL:
http://peterc.org/2008/62-how-to-install-vmware-tools-on-ubuntu-hardy-804-under-vmware-fusion.html#comment-262
I followed it to the letter and it all worked out. Literally cut and paste, though I claim I actually had *some* idea of what was going on.
May 3, 2008 at 6:32 am
I’ve just installed it but I can’t get the cursor to move at all.
Did a second installation, same problem
May 5, 2008 at 11:14 pm
dixon1e, thanks! It did the trick!
Some notes:
- actually compiling the source was not required… just downloading and packing up the modules was
- the bash script he created to pack up the source didn’t quite work for me so I just manually renamed all of the module directories to have “-only” at the end and then manually tared the files with out the “-only” at the end, and moved the files over
May 13, 2008 at 6:23 am
Nice guide. Thank you so much.
Just to point out, there is another command called vmware-tools-updater. It also seems to figure out the modules. But I still had problems with drag ‘n drop files from host to guest. This guide helped solve that issue.
Keep up the good work.;;
May 15, 2008 at 2:00 pm
I also needed to
$ sudo apt-get install libicu-dev
to get the ./configure && make to work.
May 21, 2008 at 11:26 am
All work pretty well!
But, I still have a question : have you any idea of how to make the /mnt/hfs/ available for a non super user in linux, and keep file permission unchanged ?
Typing “chmod 770 -R” works find to get access but it dramatically changes permission in MacOSX.
Thanks!!!
May 21, 2008 at 12:20 pm
Thank you so much!!!!
July 10, 2008 at 9:12 am
Thanks a lot!
July 11, 2008 at 9:26 pm
This worked like a charm. Thanks so much!