Note: This is an update of my earlier set of instructions about installing Ubuntu Dapper as a guest operating system on VMware.
This time I'm using VMware Workstation 5.5.3 build-34685 and Ubuntu Dapper as the host operating system. I am installing Ubuntu Edgy 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). This prevents the virtual machine booting from the CD image in future (you can delete the image once you've completed the install, if you want).
- Boot into Ubuntu. You are now using the hard disk installation rather than the Live CD image.
- Upgrade all the packages on the system. You do this by clicking on the orange asterisk icon on the right-hand side of the top menu bar. You'll also need the networking to be up to do this. It takes quite a while, but it's worth doing.
- 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).
- The installation requires a recent gcc and the Linux headers. Fortunately, these both appear to be installed by default on Edgy, so you don't need to do anything (unlike the previous set of instructions for Dapper).
- It's worth creating a symlink to your kernel source to make the installer run more smoothly (it looks for /usr/src/linux and complains if it's not there):
ln -s /usr/src/linux-headers-`uname -r` /usr/src/linux
- 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/7.0/vmmouse_drv.so /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".
- To get copy and paste working, you have to run vmware-toolbox inside the virtual machine; to get the "Autofit Guest" feature requires the vmware-user program to be running in the virtual machine. You can enable both of these applications to start when your Edgy virtual machine starts like so:
- First, you need to symlink a couple of VMware libraries so that Ubuntu knows where to find them (for running vmware-user). At a command prompt, run this command:
ln -st /usr/lib /usr/lib/vmware-tools/lib32/lib*/lib*
- Go to the main Ubuntu menu (inside the virtual machine) and select System > Preferences > Sessions. Then select the Startup Programs tab.
- Click on the Add button and type vmware-user in the text box. Click on OK.
- Click on the Add button and type vmware-toolbox --minimize in the text box. Click on OK. Note that this window must always be open for cut and paste between the guest OS and the host one to work. If you want to push it into the system tray, you could use AllTray to do that. There is an --iconify flag for this command, which should presumably turn it into an icon, but it doesn't seem to work for me.
- 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 "1280x768" "1024x768" "800x600" "640x480"
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!
Credits: Thanks to Sean Flanigan for extra tips on enabling cut and paste and guest window resizing.