November 4, 2009 · General · Email This Post

Sponsored Link
VMware Server is a free virtualization product for Windows and Linux servers with enterprise-class support and VirtualCenter management. VMware Server is a robust yet easy to use server virtualization product and is based on proven virtualization technology, which has been used by thousands of customers for many years.
First you need to download vmware server 2.0.x from vmware website and get the vmware server installation key

Currently we have a problems compiling vmware server under kernel version 2.6.31 so this tutorial will explain how to install vmware server 2.0.x in Ubuntu 9.10

Now we have VMware-server-2.0.2-203138.i386.tar.gz file so unpack this file

tar -zvxf VMware-server-2.0.2-203138.i386.tar.gz

go to vmware-server-distrib directory

cd vmware-server-distrib

Run vmware-install.pl script using the following command

./vmware-install.pl

Now you might receive compilation error messages so now you need to download required patch files from here in vmware-server-distrib directory these patches from  vmware forum

You can use the following command to download patches

wget  http://www.ubuntugeek.com/images/vmware-server.2.0.1_x64-modules-2.6.30.4-fix.tgz

After downloading extract vmware-server.2.0.1_x64-modules-2.6.30.4-fix.tgz file

tar xvzf vmware-server.2.0.1_x64-modules-2.6.30.4-fix.tgz

Now run the patch script using the following command

sh vmware-server.2.0.1_x64-modules-2.6.30.4-fix.sh

Note:- This script will work 2.6.30,2.6.31 kernel versions

After each completing the patch installation you should see similar to the following message

3

After completing the patch installation you need to remove /usr/lib/vmware/modules/binary directory because The original VMware modules directory is still in the way so this will confuses VMware that is why we are removing this directory

rm -rf /usr/lib/vmware/modules/binary

Now run vmware-config.pl script

vmware-config.pl

This should complete the vmware server installation.

4

Now open your browser type https://PC-ipaddress:8333 once it opens you should see similar to the following screen

5

Whe you try to login using your ubuntu user login details you might see "You do not have permissions to login to the server" error this is because you need to enable root account on your ubuntu machine using this tutorial or login as user who is having root permissions

6

Once you login you should see similar to the following screen

7

Reinstall Vmware server

If you still having  problems with your vmware server installation follow these steps

Delete the vmware modules using the following command

rm -rf /usr/lib/vmware/modules/

rm -rf /lib/modules/2.6.31-13-server/misc/vm*

Now kill all vmware processes manually

kill -9 $( ps -ef | awk ‘/vm/ { print $2 }' )

Now run vmware-install.pl file

./vmware-install.pl

at the time of installation where you see the following message type no and press enter

Before running VMware Server for the first time, you need to configure it by
invoking the following command: "/usr/bin/vmware-config.pl". Do you want this
program to invoke the command for you now? [yes] no

Now you need to run the patch script file using the following command

sh vmware-server.2.0.1_x64-modules-2.6.30.4-fix.sh

After completing this you should run vmware-config.pl

/usr/bin/vmware-config.pl

Error message

When i try to install vmware server 2.0.2 under ubuntu 9.10 i got the following error so i installed the patch file with the procedure specified above

/tmp/vmware-config0/vmmon-only/linux/driver.c:2007: error: too many arguments to function ‘smp_call_function’
make[2]: *** [/tmp/vmware-config0/vmmon-only/linux/driver.o] Error 1
make[1]: *** [_module_/tmp/vmware-config0/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.31-14-generic'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config0/vmmon-only'
Unable to build the vmmon module.

For more information on how to troubleshoot module-related problems, please
visit our Web site at "http://www.vmware.com/go/unsup-linux-products" and
"http://www.vmware.com/go/unsup-linux-tools".

Execution aborted.

Sponsored Link

Incoming search terms:

Related posts

91 Comments to “How to install vmware server 2.0.x in Ubuntu 9.10 (Karmic)”

  1. ubuntu admin says:

    If one starts vmware-install a second time and states “no” to the question to start vmware-config the the vmware user and the serial number settings will be installed correctly and the pitfall with the logon will disappear.

    my 2 cent’s – ubuntu admin

    [Reply]

  2. Emil G says:

    I Installed vmware by this manual from other site… actually its works but….. there are some problems i found:

    vmware hangs when i trying to bind my cellular modem x950 novatel.. in 9.04 it was working whithout problems

    there is some bug with display manager. not all area of vm guest installed on vm is available for mouse events. so you can work clear from console.
    just from RDP connection if possable

    you still have to gedit /etc/fstab file for bind USB devices by adding next rows:

    usbfs /proc/bus/usb usbfs auto 0 0
    none /proc/bus/usb usbfs devgid=46,devmode=664 0 0

    [Reply]

  3. RDL says:

    Or just ignore this awful piece of SW and install the wonderful VirtualBox: http://www.virtualbox.org/

    [Reply]

  4. mortoss says:

    Thanks. Once again I got great support from ubuntu community! :)

    [Reply]

  5. MheAD says:

    Thanks for your guide.
    VM Server will now compile properly.
    I’m experiencing, though, problem with mouse pointer in virtual Windows XP. It is switching between the regular pointer and “hand with indexfinger pointed” – making mouse controlls in the virtual appliance totally useless – I can’t controll the desktop. On the other hand, desktopless virtual Linux-server installations work as charm as mouse is not needed.

    [Reply]

    admin Reply:

    Try one of the solutions for mouse problem

    Solution 1

    Added these lines to my /usr/bin/firefox
    export VMWARE_USE_SHIPPED_GTK=force
    export GDK_NATIVE_WINDOWS=true

    Solution 2

    Go into

    /home/username/.mozilla/firefox/df34789dfgj/extensions/[email protected]/plugins/lib

    Then edit the file:
    wrapper-gtk24.sh

    I added the following lines near the top:
    VMWARE_USE_SHIPPED_GTK=’force’
    export VMWARE_USE_SHIPPED_GTK=”force”

    So now the mouse appears to work correctly.

    Solution 3

    create this file using the bin/bash text.
    give it a name like VMlaunch.sh
    make it executable
    run it and it loads the VMware machine

    #!/bin/bash
    ################################################## ##############################
    # Call VMWare Server's Remote Console in a clean GTK setup.
    ################################################## ##############################

    # Clean GTK setup for VMWare
    export VMWARE_USE_SHIPPED_GTK=yes

    # Find console executable in Firefox plugins.
    vmrc="$(find "$HOME/.mozilla/firefox" -name vmware-vmrc -type f -perm -111 | tail -1)"
    [ -x "$vmrc" ] || exit 1

    set -x
    cd "$(dirname "$vmrc")" && "$vmrc" -h 127.0.0.1:8333

    [Reply]

  6. Just a linux newby comment, for the patch to be applied, you’ll need the build-essential module installed.

    Use ‘sudo apt-get install build-essential’ before applying the patch.

    [Reply]

  7. Enzymes says:

    Thank you – this worked perfectly. I was upgrading to Karmic from Jaunty on a 64 bit system.

    I agree, when asked, select to use a admin username of your own choice:

    The current administrative user for VMware Server is ”. Would you like to
    specify a different administrator? [no] yes

    Please specify the user whom you wish to be the VMware Server administrator

    … and then select your own username

    [Reply]

  8. RLJ says:

    Thanks for the help but i REALLY want to do a VMWARE SERVER 1.X install on 9.10.

    Got anything on that?

    [Reply]

  9. Vincent says:

    Solution 1 and 2 do not work for me to fix the foucs trouble.
    I really had it with this, I agree with the go for Virtual Box.

    Thanks anyway.

    [Reply]

  10. Simon says:

    Thanks so much for this, really helpful. I’m a ‘nix n00b but very familiar with VMWare solutions, I just wanted to eke a bit more performance out of a home setup. Your instructions worked like a charm.

    [Reply]

  11. K.Raj says:

    How to install Ubuntu 9.10 in Net worked system

    [Reply]

  12. K.Raj says:

    12.

    How to install Ubuntu 9.10 in Net worked system, printer function, sharing etc with the help of screen shots

    [Reply]

  13. boban says:

    Vincent, I tried 2nd solution and it worked. You just need to change quotation from those unicode thing, to normal double quotation mark.

    [Reply]

  14. JohnG says:

    I needed the “build Essentials” before the patches worked.
    Then I still go errors re the vnnet module, however the process did complete, altho I suspect I may have network issues later.

    Presumabley at some point VMware will release a version which will run nativley on kernel 2.6.3x

    Tks for the guide

    [Reply]

  15. ethnopunk says:

    Firefox can’t find the server at pc-ipaddress.

    [Reply]

  16. Scot says:

    Anyone got the script pre-built as in solution 3?

    I thought I was OK know a bit of Linux term etc. but building with bash, even google struggled to explain that. Just kept giving me sie that say “build with /bin/bash” yeap that helps.

    Make executable? again googles gave me loads of sites that repeats the instruction but none that really helped.

    Guessing it is truly easy and simple and most people just guess you could not know about it so they leave it out of the instructions.

    So for a know proven total noob it is not as simple as just saying it.

    A pre build or a link to a site that tells us how would really help.

    Thanks

    [Reply]

  17. Nick says:

    This has worked fine, (Ubuntu 9.10/2.6.31-14/VMware server 2.0.1) but now I’m having trouble with my (USB) keyboard.

    When using a (Windows XP) VM the arrow keys don’t work, except the down arrow key which appears to be mapped to the Windows key.

    [Reply]

  18. Nick says:

    To fix the keyboard mapping issue add the following line to either ~/.vmware/config (for an individual) or to /etc/vmware/config (for all users):

    xkeymap.nokeycodeMap = “true”

    For more details read http://www.jaredlog.com/?p=925

    [Reply]

  19. akaikaze says:

    Thanks a lot :)

    [Reply]

  20. Hi. thx for tut, works perfectly with:

    - Ubuntu 9.10
    - VMware-server-2.0.2-203138.x86_64
    - Kernel 2.6.31-16-server x86_64

    best regards,
    Kevin.

    [Reply]

  21. Chris says:

    I am missing something, I caught the error when I tried the to install and it couldn’t build. When I run the patch I have this output:

    Found tar file for vmci module
    Found tar file for vmmon module
    Found tar file for vsock-temp module
    Found tar file for vmmon-temp module
    Found tar file for vsock module
    Found tar file for vmnet-temp module
    Found tar file for vmnet module
    Found tar file for vmci-temp module
    Using patch file: /usr/lib/vmware/modules/vmware-server.2.0.1_x64-modules-2.6.30
    -fix.patch
    Using module directory: /usr/lib/vmware/modules/source
    Using backup directory: /usr/lib/vmware/modules/source-backup
    Backing up ./vmci.tar to /usr/lib/vmware/modules/source-backup/./vmci.tar
    Backing up ./vmmon.tar to /usr/lib/vmware/modules/source-backup/./vmmon.tar
    Backing up ./vsock-temp.tar to /usr/lib/vmware/modules/source-backup/./vsock-tem
    p.tar
    Backing up ./vmmon-temp.tar to /usr/lib/vmware/modules/source-backup/./vmmon-tem
    p.tar
    Backing up ./vsock.tar to /usr/lib/vmware/modules/source-backup/./vsock.tar
    Backing up ./vmnet-temp.tar to /usr/lib/vmware/modules/source-backup/./vmnet-tem
    p.tar
    Backing up ./vmnet.tar to /usr/lib/vmware/modules/source-backup/./vmnet.tar
    Backing up ./vmci-temp.tar to /usr/lib/vmware/modules/source-backup/./vmci-temp.
    tar
    Untarring vmci.tar
    Untarring vmmon.tar
    Untarring vsock-temp.tar
    Sorry, vsock-temp.tar tarball failed to extract the directory vsock-temp-only

    Any thoughts?

    Ubuntu newbie.

    - Ubuntu Server 9.10 64b
    - VMware-server-2.0.2-203138.x86_64
    - Kernel 2.6.31-16-server x86_64

    [Reply]

  22. chuff says:

    I installed vmware on 9.10. Major problems, mouse downt work well at all, keyboard gets mucked up (shitft doesnt work ) xp vm will crash Vmware server when i power it down….

    enough!!!!

    Im going back to virtualbox.

    I use ubuntu b/c it just works , thats why im switching abck to virtualbox. I wanted to elarn vmware but not that badly. I dont ahve time to muck with it.

    [Reply]

  23. davekenny says:

    chuff,

    does virtualbox on 2.6.31 work for you..
    it doesn’t for me. I get a command not found if I try to run /etc/init.d/vboxdrv ..

    I posted on virtualbox site..so far no one as offerend a solution..

    -davekenny

    [Reply]

  24. nevvy says:

    Thanks ADMIN!!!!

    I really needed the fix and used the 1st one. Awesome.

    [Reply]

  25. Steve Bass says:

    After installing this on kubuntu 9:10 i get a ‘web service not available. the web service appears to be running and i check the ip which is listed in /etc/vmware/config.which i can ping. not sure but i believe there is a problem running this with apache on the same server. What a shame, stick to virtualbox. you may have to run
    sudo apt-get install build-essential
    before installing virtualbox

    [Reply]

  26. mike Mcleod says:

    The patch failed on my system when running the patch:
    Found tar file for vmnet module
    Found tar file for vmblock module
    Found tar file for vsock module
    Found tar file for vmci module
    Found tar file for vmmon module
    Using patch file: /home/me/download/vmware.patch/vmware-server.2.0.1_x64-modules-2.6.30.4-fix.patch
    Using module directory: /usr/lib/vmware/modules/source
    Using backup directory: /usr/lib/vmware/modules/source-backup
    Untarring vmnet.tar
    Untarring vmblock.tar
    Untarring vsock.tar
    Untarring vmci.tar
    Untarring vmmon.tar
    Testing patch
    patching file vmci-only/Makefile
    patching file vmmon-only/linux/driver.c
    Hunk #1 succeeded at 1758 (offset -226 lines).
    patching file vmmon-only/linux/hostif.c
    Hunk #1 succeeded at 3437 with fuzz 2 (offset 15 lines).
    Hunk #2 FAILED at 3551.
    Hunk #3 FAILED at 3675.
    2 out of 3 hunks FAILED — saving rejects to file vmmon-only/linux/hostif.c.rej
    patching file vmmon-only/include/x86svm.h
    Hunk #1 FAILED at 47.
    1 out of 1 hunk FAILED — saving rejects to file vmmon-only/include/x86svm.h.rej
    patching file vmmon-only/Makefile
    Hunk #1 succeeded at 139 with fuzz 1 (offset 26 lines).
    patching file vmnet-only/Makefile
    Hunk #1 succeeded at 139 with fuzz 1 (offset 26 lines).
    patching file vmnet-only/netif.c
    Hunk #1 succeeded at 180 (offset -14 lines).
    Hunk #2 succeeded at 206 (offset -14 lines).
    Hunk #3 succeeded at 310 (offset -14 lines).
    Hunk #4 succeeded at 556 (offset -14 lines).
    Hunk #5 succeeded at 612 (offset -14 lines).
    Hunk #6 succeeded at 673 (offset -14 lines).
    patching file vsock-only/Makefile
    Sorry, problem with the patch, I can’t apply it

    My system is 2.6.31-16-generic x86_64.
    Googled but nothing interesting.

    [Reply]

  27. Builders says:

    Thank you for this very good post!

    [Reply]

  28. RM says:

    Thanks !!! very helpful, worked with 2.6.31-16, 2.0.1

    [Reply]

  29. Seanie says:

    Thanks!

    [Reply]

Leave a Reply