Note: If you're installing Ubuntu Edgy as a guest OS, I've updated these instructions (as it's easier than Dapper). See this page of instructions instead.
Hmm, not simple. But I've licked it. I'm using VMware Workstation 5.5.1 build-19175 and Ubuntu Dapper as the host operating system. I am installing a second Ubuntu Dapper as the guest operating system. I also worked out how to get the VMware Tools to work. Here's what I did:
- Downloaded the Ubunutu .iso file from http://ubuntu.org/. (I tried to install off CD and failed miserably: it hung when it tried to create the Ubuntu Live CD user.)
- Created a new virtual machine in VMware (I accepted all the defaults). I set the hard disk to 4Gb which should be big enough.
- Edit the virtual machine and set its CD to use an ISO image; point it at the Ubuntu .iso file you downloaded.
- Boot the virtual machine. Press enter when prompted to install Ubuntu. This will boot into the Live CD version of Ubuntu.
- Once in, double-click the "Install" icon on the desktop to install the Live CD image onto the hard disk.
- Follow through the installation procedure.
- When you power off ready for reboot, you can point the CD for the virtual machine back at the physical drive (I used the "Autodetect" setting).
- Boot into Ubuntu. You are now using the hard disk installation rather than the Live CD image.
- Select the VM > Install VMware Tools option from the VMware workstation menu. You should get a CD icon on your Ubuntu desktop; if not, go to Places and choose the CD there.
- Copy the .tar.gz file to your desktop. Right click on it and select "Extract here". This will give you a folder called vmware-tools-distrib.
- Get a console up and cd to the vmware-tools-distrib directory.
- Make yourself root (sudo su).
- There are a few things we're going to need to be able to install the tools, so get those:
apt-get install gcc gcc-3.4 make
- We also need the Linux kernel headers.
apt-get install linux-headers-`uname -r`
- Once they're installed, it's worth creating a symlink to make the installer run more smoothly:
ln -s /usr/src/linux-headers-18.104.22.168-386 /usr/src/linux
- Tell the installer script which compiler to use:
- While you're still in the vmware-tools-distrib directory, run the install script:
I accepted all the default settings and said yes to everything.
- This gets everything (pretty much) working except the mouse. You can fix this like so:
- sudo ln -s /usr/lib/vmware-tools/configurator/XOrg/6.8.x/vmmouse_drv.o /usr/lib/xorg/modules/input/
- Edit /etc/X11/xorg.conf and find the section headed Section "InputDevice", with the line Driver "mouse". Change the Driver "mouse" line so it reads Driver "vmmouse".
- As I'm using a widescreen laptop, I also had to edit the settings for my screen resolution in the Section "Screen", e.g.:
Modes "1280×768" "1024×768" "800×600" "640×480"
This works fine on my IBM Z60t.
- Logout and kill X with Ctrl-Alt-Backspace. This should make all your new settings come alive.
Hurrah! It works!