How to install VMware Server 2.0.x on Ubuntu 9.10 Karmic Koala

Friday, October 30th 2009, 04:13

UPDATE 2: The script has been updated to work with kernels 2.6.32 too. Please post your comments regarding kernel 2.6.32 here.

UPDATE: The script which is now used for this operation has been updated to support Fedora and openSUSE too. Also the patch used is the one made by Ramon de Carvalho Valle, not the one present on VMware’s Communities site as it was before, which provides a more stable experience. More details can be read here although the instructions presented on this page are still valid.

Please post your comments regarding other distributions on the post located here!

After I have upgraded to Ubuntu 9.10 Karmic Koala I have noticed that VMware Server 2.0.1 or 2.0.2 fail to install using the default installer. I then thought that I should use again the install script I wrote for installing the server in 9.04. Wrong! Since the kernel had changed a bit, the modules from VMware Server failed to compile correctly. Browsing the VMware Communities forums, I have discovered a post that discusses using a new patch. The only patch that seems to work for the 2.6.31-14 kernel that is shipped with Ubuntu 9.10 is the one for 2.6.30-4.

The process, even if it was handled by a script, assumed the user should stop the install process in the middle, patch some files here and there and then recompile his modules keeping his fingers crossed. Because  I really do not like that kind of approach, I decided to build my own script based on that one that will automatically patch the files and lead you to the install without the need for you to stop until you are done.

How to

  1. Download VMware Server (2.0.1 or 2.0.2) – gz format, not rpm. For the 2.0.2 version you might need to wait a couple of hours until you will receive the license key. Whichever version you choose, keep the license key near.
  2. Download my script from here (right click, save as).
  3. Run the script with super user rights either in the same folder where you have downloaded the server archive, either by providing it the path to that folder. Make sure the folder where you have downloaded the server’s archive doesn’t contain spaces in its path name or the script will exit (giving you this reason as an error message). If the script exists, it will give you a decent warning from which you should be able to tell what’s wrong. Also, the VSOCK module will not work (will fail to compile), giving you a hint that your kernel sources might not be the ones for your running kernel. This is not true, as the script takes care of this before doing the hard work. Anyway, VMware Server will work without it. Example:
    chmod +x vmware-server-2.0.x-kernel-2.6.3x-install.sh
    sudo ./vmware-server-2.0.x-kernel-2.6.3x-install.sh [PATH _TO_VMWARE_ARCHIVE]
    
  4. When you are asked about adding users to the server, if you do not provide your own account, the user used for loging in the web console of the server will be root (maybe you should add yourself there).
  5. Provide the license key when asked about it.
  6. For the ones installing Windows guests in VMware Server, you must pick one of the following two solutions to avoid having problems with the mouse in the console:
    • you run this script in the terminal every time you want to launch a VMware Server console, but after you have installed the VMware plug-in for Firefox
    • you export this variable in the environment right after login such that it will be set before starting Firefox:
      VMWARE_USE_SHIPPED_GTK=yes

    Credit for this one goes to Holger.

  7. Drop me a Kudos line in here and one for Holger here. If the solution worked well for you please share this info wherever you can. :D

Until a new patch will appear or until VMware will start writing more better and actual code, this is the only way of installing VMware Server 2.0.x on Ubuntu 9.10 Karmic Koala. Best of luck to you all!

Similar Posts:

585 Comments

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
  • Thank you very much the script worked pretty well. It had problems finding my archive so I shrunk the egrep statment to the following and everything else worked:

    egrep “VMware-server-2.0″

    • The way you shrank that regex might generate errors if in that folder you would have by accident something like “VMware-server-2.0.2.txt”

      It’s done now and it should work for x86_64 too. The regex I used to identify the archive you had was

      "^(VMware-server-2.0.[0-9]-)[0-9]*.[A-Za-z0-9]*.tar.gz"

      and it didn’t match for VMware-server-2.0.2-203138.x86_64.tar.gz, only for the i686 version.

      So now the regex is

      "^(VMware-server-2.0.[0-9]-)[0-9]*.[A-Za-z0-9_]*.tar.gz"

      and the script should work as advertised. Sorry, I was really tired and that slipped me away.

  • Thanks for the help. Your script works perfectly. Finally got my vm back up and running.

    Thanks again and keep up the good work.

  • Thank you, thank you, thank you, thank you, thank you! This is exactly why I like Ubuntu, for his great community of geeks!

    A

  • Hero! Thanks

  • One question: now it works, but the Windows XP vm I’m running does not work really well. I have some issues with the mouse. Any fix for that?

  • Same mouse problems here. Sometime i have to use the right mouse button instead left mouse to klick to do some things like closing windows or klick on a button.

  • Try uninstalling the mouse driver from you XP guest. If you have installed VMware Tools in your guest, the default mouse driver was replaced by them.

  • Thank you very much!

  • Thanks!

    This script saved me after an upgrade to Ubuntu 9.10.

  • The mouse problem still persists. I tried to install a new XP in a new VM. But after the first start i cant use the mouse realy. Any other hints?

    • Nothing else crosses my mind unfortunately… I am sorry…

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">


CODE EXAMPLES: When you want to include source code or terminal output, please use the the following tags like in the next example:

    [language]
    code lines
    [/language]
	

where you substitute language with the programming laguage used throught the code example (for terminal output that would be bash), e.g:

    [bash]
    /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    [/bash]
	

To see a list of all the supported languages, please check this page.

If you want to include code bits inline, please use the code tags like in the following example:

    The <code>$USER</code> variable holds the current logged in username.
	

Secure your files

Dropbox

Recent Comments

  • Radu said:
    After you install VMware Server there is no menu entry for it. To access its interface you should open a browser tab and go to... more»
  • Radu said:
    I bought mine just a month before they launched the 3rd generation. But it’s really okay for my needs. more»
  • Radu said:
    Something must have gone wrong during the install process. Try to reinstall the drivers (after you have uninstalled them previously)... more»
  • Radu said:
    I think you should start Firefox (due to the fact that the plugin runs under it) with that custom wrapper script. more»
  • RGG said:
    As with Mai I removed vmnet, vmci and vmmon. Ran sudo vmware-config.pl and it reran the last part of the install but did not add any... more»

Recent Tweets

Geek blogs

Bear