Installing Dapper as a guest operating system on VMware

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:

  1. 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.)
  2. Created a new virtual machine in VMware (I accepted all the defaults). I set the hard disk to 4Gb which should be big enough.
  3. Edit the virtual machine and set its CD to use an ISO image; point it at the Ubuntu .iso file you downloaded.
  4. Boot the virtual machine. Press enter when prompted to install Ubuntu. This will boot into the Live CD version of Ubuntu.
  5. Once in, double-click the "Install" icon on the desktop to install the Live CD image onto the hard disk.
  6. Follow through the installation procedure.
  7. 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).
  8. Boot into Ubuntu. You are now using the hard disk installation rather than the Live CD image.
  9. 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.
  10. 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.
  11. Get a console up and cd to the vmware-tools-distrib directory.
  12. Make yourself root (sudo su).
  13. 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
  14. We also need the Linux kernel headers.
    apt-get install linux-headers-`uname -r`
  15. Once they're installed, it's worth creating a symlink to make the installer run more smoothly:
    ln -s /usr/src/linux-headers-2.6.15.23-386 /usr/src/linux
  16. Tell the installer script which compiler to use:
    export CC=/usr/bin/gcc-3.4
  17. While you're still in the vmware-tools-distrib directory, run the install script:
    ./vmware-tools-install.pl
    I accepted all the default settings and said yes to everything.
  18. This gets everything (pretty much) working except the mouse. You can fix this like so:
    1. sudo ln -s /usr/lib/vmware-tools/configurator/XOrg/6.8.x/vmmouse_drv.o /usr/lib/xorg/modules/input/
    2. 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".
  19. 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.
  20. Logout and kill X with Ctrl-Alt-Backspace. This should make all your new settings come alive.

Hurrah! It works!

Comments

I do appreciate the tips and

I do appreciate the tips and surely a good help on my end here, thank you. - Flemings Ultimate Garage

I am not an expert on spam

I am not an expert on spam filtering.auto loan calculator with tax

Worked right for me with a

Worked right for me with a Kubuntu 6.06 32-bit x86 guest on VMware Server 1.0.1 build 26669 on a SuSE 10.0 64-bit AMD host.
here

Same difficulties

We tried twice to do the install....we are now trying again and will let you know how it goes!

can we install in RHEL 6

How to do it on RHEL 6

Worked right for me with a

Worked right for me with a Kubuntu 6.06 32-bit x86 guest on VMware Server 1.0.1 build 26669 on a SuSE 10.0 64-bit AMD host.

I didn't even have to muck with the mouse driver. VMware Tools built and installed without a single error.

Thanks

Yes very nicely explained. Keep on posting!!

Thanks for the step by step

Thanks for the step by step guide for installing operating system on VMware. Thanks for sharing it.

Thank you

Thank you for sharing the useful information

vmware opinion

I'm a big fan of Virtual Machines on Windows / Linux. We use VM a lot at work, it is a huge part of the QA team as it allows to test on cross browsers / and various operating systems.

VMware and Linux

I'm not a big fan of Virtual Machines or Linux. My machine is too slow to accommodate a VM. My mind is too lazy to tweak stuff in Ubuntu using the shell. How do we reconcile these?

VMware and Linux

I forgot to add this: I've tried VMware applications for Windows but they're not no good either.

thanks elliot for the

thanks elliot for the excellent installation guide it was very helpful :)

very useful step by step

very useful step by step guide, thanks

Yes nice and useful tips !

Yes nice and useful tips !

yep

yep..i also agree

Thanks for the Ubuntu 6.10 howto

G'day, for some reason the Edgy page (http://townx.org/installing-ubuntu-6-10-edgy-guest-operating-system-vmwa...) doesn't allow comments.

Anyway, I wanted to thank you for the howto. I've followed some of the other Edgy/VMware guides, but yours are the first that got the mouse ungrab working for me.

However, there were a couple of steps I adapted/added, so I thought I would make a note of them:

16. I had to change "./vmware-tools-install.pl" to "./vmware-install.pl"
17.1 "vmmouse_drv.o" should be "vmmouse_drv.so"
20. To get copy and paste working, you have to run vmware-toolbox, and the "Autofit Guest" feature requires vmware-user. I added these two commands to the session startup using System/Preferences/Session/Startup Programs:
vmware-user
vmware-toolbox --minimize

Unfortunately, you always have to keep the vmware-toolbox window open to keep copy/paste working.
If you have AllTray (http://alltray.sourceforge.net/) installed, you can use "alltray vmware-toolbox" instead, to keep it in the system tray and out of the main task list.

Sean.

vmware-user and missing libraries

I forgot to mention something I had to do to get vmware-user to work in step 20:

sudo ln -s /usr/lib/vmware-tools/lib32/libgdk-1.2.so.0/libgdk-1.2.so.0 /usr/lib
sudo ln -s /usr/lib/vmware-tools/lib32/libgtk-1.2.so.0/libgtk-1.2.so.0 /usr/lib

Sean.

Brilliant! Thanks for the

Brilliant! Thanks for the corrections and the new stuff: I hadn't worked that out for myself, so you've helped me out. If you have a blog or website I can reference, I'll stick a link in to the credit I've added to the page. I've also turned on comments (not sure why they were off in the first place).

Dapper & VMWare Tools

Like previous comment, I needed help getting vmtools to compile in dapper. I am new to Linux/Ubuntu. I was frustrated when the compile failed. The VMWare site was particularly unenlightening. Folks & users there seem to take a special pride in obfuscation and minimalistic advice. Thanks for taking time to share your most excellent and concise advice.

You're most welcome. Glad

You're most welcome. Glad you found it useful. That's precisely why I wrote it up: the existing info. was disorganised and scattered all over the place. Good luck with it.

I didn't even have to muck

I didn't even have to muck with the mouse driver. VMware Tools built and installed without a single error.
VMware Server also installed right away on the SuSE 10.0 64-bit AMD host. I didn't even have to Google up any help for that.

Good stuff. I have to admit

Good stuff. I have to admit I tend to use VirtualBox these days, as I find it easier to get stuff working.

Just saying THANKS!

New to the world of Linux, so getting the Tools up and running was quite a breeze with your tutor.

So thank you!

Best regards,
Maik

You're welcome! Here's to

You're welcome! Here's to much happy Linux-ing.

Worked right for me with a

Worked right for me with a Kubuntu 6.06 32-bit x86 guest on VMware Server 1.0.1 build 26669 on a SuSE 10.0 64-bit AMD host.

I didn't even have to muck with the mouse driver. VMware Tools built and installed without a single error.

Screen Resolution

I could not get the screen resolution above 1024*768 just by editing the Modes sections in /etc/X11/xorg.conf as described above, I also had to edit the Monitor section and change the refresh limits to:
HorizSync 28-105
VertRefresh 43-72
and set the colour depth to 16 in the Screen section:
DefaultDepth 16
(After changing CTRL-ALT-Backspace to restart)
I found that adding the maximum resolution I required (in my case 1280*1024) into the Modes sections made all other intermediate modes between this and 1024*768 appear in the Screen Resolution tool.

townx | All about open source

Thanks a lot for sharing this with all of us you actually know
what you are speaking approximately! Bookmarked.
Kindly additionally discuss with my site =). We may have a hyperlink alternate arrangement
among us

Thanks for those notes. I

Thanks for those notes. I think these settings are specific to the machine you're using, so you may need to tweak them a bit. In my case, I didn't need to do anything to the sync and refresh settings.

townx | All about open source

I got this site from my friend who shared
with me about this site and now this time I am browsing this web site and reading very informative content at this time.

apt-get install

apt-get install linux-headers-`uname -r`

came up with an error it did not recognize the -r

so I 'apt-get install linux-headers'

but now it has a long list of kernel options it says I need to select, and I am new to ubutnu, a little lost.

please help, I am running kubutnu dapper latest download

thanks

Hello there. uname is a

Hello there. uname is a standard utility and should be on every Linux distribution (I thought). Do you get nothing at all if you type uname -r at a prompt?

The other way to find out which kernel version you have is to do:

dpkg-query -W linux-image*

The highest numbered one is likely to be the one you are running. Alternatively, have a look at the grub menu when you boot, as this displays the Linux kernel version.

Once you know what it is, install the appropriate headers package. E.g. on my system, the dpkg-query line returns:

linux-image
linux-image-2.6
linux-image-2.6.15-23-386       2.6.15-23.39
linux-image-2.6.15-25-386       2.6.15-25.43
linux-image-2.6.15-26-386       2.6.15-26.47
linux-image-2.6.15-27-386       2.6.15-27.48
linux-image-386 2.6.15.25

So my kernel is linux-image-2.6.15-27-386. So I need to install:

apt-get install linux-headers-2.6.15-27-386

(just change image to headers).

Hope this helps.

Thanks

Now I can swing my mouse in and out with the CTRL-ALT combo... thanks!

cheers!

Nice!

Thanks for the help, that was perfect.

Worked right for me with a Kubuntu 6.06 32-bit x86 guest on VMware Server 1.0.1 build 26669 on a SuSE 10.0 64-bit AMD host.

I didn't even have to muck with the mouse driver. VMware Tools built and installed without a single error.

VMware Server also installed right away on the SuSE 10.0 64-bit AMD host. I didn't even have to Google up any help for that.

Thanks for taking the time

Thanks for taking the time to comment: I know this page gets hit a fair bit, but very few people stop to say thanks. I appreciate it. Glad the instructions worked.

Re:

Thanks for takins the time to comment: I know this page gets hit a fair bit, but very few people stop to say thanks. I appreciate it. Glad the instructions workes.

i installed the kubuntu 6.06

i installed the kubuntu 6.06 and i follow your steps above to install the vmtools. but @step 13 i got something wrong here "command not found"

why?

Is it maybe because apt-get

Is it maybe because apt-get isn't recognised, or was misspelled?

Check out this good software to document your IT infrastructure

hey guys, I just found this good free software that lets you document your entire IT infrastructure. It's called Auditor Lite or Documentor for VMware and in my opinion it's the best software out there and the fact that it is free is just an added bonus. Just thought I would let you guys know if you want to give it a shot it's working out great for us.

http://www.ecora.com/ecora/products/default.asp

Thanks for the suggestion. I

Thanks for the suggestion. I don't have that many VMs, so it's probably overkill for me.

Nice

Nice...much better than the disorganized threads at the vmware forums.

Cheers

A lot of the content was from the forums, but I thought it would be useful to have it in nice terse summary somewhere.

Slight improvement

You can shorten step 14 using the backtick operator

apt-get install linux-headers-`uname -r`

Paul

Shorten even more

apt-get install linux-headers

Installs the headers for your current running kernel.
"Does for me"

Thanks for the comment.

Thanks for the comment. Interesting. It doesn't seem to work for me: apt shows me a list of candidates then states:

E: Package linux-headers has no installation candidate

Thanks Paul

Thanks Paul

It's called Auditor Lite or

It's called Auditor Lite or Documentor for VMware and in my opinion it's the best software out there and the fact that it is free is just an added bonus. Just thought I would let you guys know if you want to give it a shot it's working out great for us.