Home > virtualization > Install VMware Server 1.0.6 on Ubuntu 8.04 “Hardy”

Install VMware Server 1.0.6 on Ubuntu 8.04 “Hardy”

Today I needed to setup a couple of virtual machines for a client and realized that I had removed my installation of VMware Server.  Off I went to the VMware download page and what did I find?  A day-old release of VMware Server 1.0.6!  I figured you’d all appreciate an updated blog post on how to install VMware Server 1.0.6 on Ubuntu 8.04, so here we are.  (This is much simpler than the previous post, How To Install VMware Server 1.0.5 on Ubuntu 8.04)

Downloading the Requirements

The first step, of course, is to download VMware Server 1.0.6. You’ll want to download the .tar.gz version.  This command can be used for a direct download:

wget -c http://download3.vmware.com/software/vmserver/VMware-server-1.0.6-91891.tar.gz

The second step is to install some development tools that we’ll need to get things running. Use the following command or click the package names to install the requirements:

sudo aptitude install build-essential linux-kernel-devel linux-headers-generic xinetd

You will also need to generate a serial number to run VMware Server. Visit this link to register and generate the number of codes you might want. Remember to print the codes or write them down because in my experience they are not emailed to you.

OK, at this point we should have all of the requirements, now we can get to work…

Installation and Configuration

Let’s unpack the VMware archive that we downloaded and run the VMware installer.

tar xf VMware-server-1.0.6-*.tar.gz
cd vmware-server-distrib
sudo ./vmware-install.pl

The Last Step

If you attempt to run vmware at this point you might notice that it spits out some nasty errors and complains at you. There is one more thing we need to setup.

Basically VMware is missing and complaining about some cairo libraries and gcc. So, the simple fix for this is to point to them by using a symbolic link:

sudo ln -sf /usr/lib/gcc/i486-linux-gnu/4.2.3/libgcc_s.so /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1
sudo ln -sf /usr/lib/libpng12.so.0 /usr/lib/vmware/lib/libpng12.so.0/libpng12.so.0

At this point you should be able to launch vmware and enjoy some virtualization goodness.  Enjoy!

If this article has been helpful, please consider linking to it.

Categories: virtualization Tags: , ,

Related Posts

  1. July 15th, 2008 at 19:12 | #1

    Hi, Thanks for the informative guide. But I think this guide assumes youre using the Desktop version of Hardy heron. Can you help me install on a server edition of hardy?

    Regards,

    Noel

  2. amedeo
    July 25th, 2008 at 02:11 | #2

    after each update of ubuntu vmware server don’t still work! Last time this tutorial resolve this, but now after upgrading from kernel 2.6.24.19 to 2.6.24.20 i’can’t got mware server working!
    Any ideas?
    Thanks in advance for your help!

  3. July 25th, 2008 at 08:35 | #3

    Hi, I have the same problem as Cam and Boris, so that I cannot use the shared_folders system.

    The error they get ( and I get as well involves redefinition of the uintptr_t type.

    only/./include/vm_basic_types.h:159: error: redefinition of typedef ‘uintptr_t’

    As a result, I cannot use the shared folders utility, which happens to be something I would like quite a bit to do.

    Any suggestions [ Maybe I missed a previous answer to this problem.]

  4. nani
    July 27th, 2008 at 20:39 | #4

    I’m able to install VMware using above steps without any error but I’m unable to run VMware from \user\share\applications.

    I’m getting the error ‘There was an error launching the application.’ details:Failed to exicute child process “vmware” (No such file or directory)

    And there is no shortcut displayed on the desktop application

    pls help me on this

  5. Marc
    July 31st, 2008 at 09:39 | #5

    Aww!! Thx dude!!! Exactly what I needed!

    Ubuntu 8.04 + Compiz Config Manager + VMWare Server = one SICK machine!!! :-D

  6. mpop81
    July 31st, 2008 at 12:23 | #6

    it works!!! thank you

  7. August 1st, 2008 at 14:53 | #7

    I’ve setup a repository with the latest VMware Server and Console deb packages. They’re at: http://www.monarialx.it/en/vmware

    I’ll be glad if someone give it a try.

  8. lostmyz
    August 1st, 2008 at 16:29 | #8

    After running the VMware installer I recieved this:

    In which directory do you want to install the binary files?
    [/usr/bin]

    plz can somebody help….

  9. August 1st, 2008 at 20:47 | #9

    @lostmyz – just hit enter for all the prompts. The defaults should be fine.

  10. Sandeep Sagar
    August 11th, 2008 at 03:58 | #10

    Good Job! Thanks!

  11. James
    August 14th, 2008 at 20:47 | #11

    W00t! Just what I needed – the vmWare console would act like it was starting up, then disappear… Thanks!

  12. August 21st, 2008 at 07:30 | #12

    Thanks so much!

  13. Edwin Casipit
    August 24th, 2008 at 21:28 | #13

    when i tried to install the installer, it says:

    A previous installation of VMware software has been detected.

    Failure

    biohazard_ten21@yahoo.com

  14. August 25th, 2008 at 05:47 | #14

    Nice post! I was looking everywhere for this
    http://www.felipeferreira.net

  15. August 25th, 2008 at 05:48 | #15

    actually nope.. still getting:
    CC [M] /tmp/vmware-config5/vmmon-only/common/cpuid.o
    In file included from include/asm/bitops.h:2,
    from /tmp/vmware-config5/vmmon-only/./include/vcpuset.h:74,
    from /tmp/vmware-config5/vmmon-only/./include/modulecall.h:23,
    from /tmp/vmware-config5/vmmon-only/common/vmx86.h:19,
    from /tmp/vmware-config5/vmmon-only/common/hostif.h:18,
    from /tmp/vmware-config5/vmmon-only/common/cpuid.c:15:
    include/asm/bitops_32.h:9:2: error: #error only can be included directly
    make[2]: *** [/tmp/vmware-config5/vmmon-only/common/cpuid.o] Error 1
    make[1]: *** [_module_/tmp/vmware-config5/vmmon-only] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-19-generic’
    make: *** [vmmon.ko] Error 2
    make: Leaving directory `/tmp/vmware-config5/vmmon-only’
    Unable to build the vmmon module.

  16. preoche
    August 25th, 2008 at 08:51 | #16

    tried insatlling vmware following instructions, it appears in the menu, but when launching it crashes and closes without leaving error messages or anything else. help?

  17. August 26th, 2008 at 00:52 | #17

    thank you for help!
    is the last step still necessary for the install of VMware-server-2.0.0 …?

  18. Tore Boman
    August 29th, 2008 at 05:47 | #18

    Excellent mini-howto. I tried VBox but it was a total lemon, especially if u want networking.
    VmWare should definitely be in the repos.

    @preoche: sounds like u’r missing the last step? Cairo and gcc links?

  19. matt
    September 3rd, 2008 at 15:55 | #19

    right on the money

  20. sean
    September 6th, 2008 at 11:23 | #20

    same problem as preoche, any ideas?

  21. JD
    September 21st, 2008 at 19:03 | #21

    Worked great! Thanks again for the great how-to!

  22. Nick
    September 27th, 2008 at 17:26 | #22

    When following these instructions on a fresh Ubuntu 8.04LTS Server Edition, I get the following:

    What is the location of the directory of C header files that match your running
    kernel? [/usr/src/linux/include]

    –I hit enter here and get:

    The path “/usr/src/linux/include” is not an existing directory.

    I’m stuck there.

  23. sdibias
    September 28th, 2008 at 11:58 | #23

    I followed word for word and when I go to run it (Applications >> System Tools >> VMware Server Console) it looks like it’s loading and then… Nothing… :(

  24. haste
    October 14th, 2008 at 12:21 | #24

    Thanks so much! For VMware-server-1.0.7-108231.tar.gz this tutorial work too.

  25. nicola
    October 23rd, 2008 at 11:35 | #25

    I have a problem:

    Your kernel was built with “gcc” version “4.2.3″, while you are trying to use
    “/usr/bin/gcc” version “4.2.4″. This configuration is not recommended and
    VMware Server may crash if you’ll continue. Please try to use exactly same
    compiler as one used for building your kernel. Do you want to go with compiler
    “/usr/bin/gcc” version “4.2.4″ anyway? [no]

    For more information on how to troubleshoot module-related problems, please
    visit our Web site at “http://www.vmware.com/download/modules/modules.html” and
    “http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html”.

    Execution aborted.

    Can you help me?

  26. Rodney
    November 1st, 2008 at 18:19 | #26

    same issue as michele and ..

    None of the pre-built vmmon modules for VMware Server is suitable for your
    running kernel. Do you want this program to try to build the vmmon module for
    your system (you need to have a C compiler installed on your system)? [yes]

    Using compiler “/usr/bin/gcc”. Use environment variable CC to override.

    Your kernel was built with “gcc” version “4.1.3″, while you are trying to use
    “/usr/bin/gcc” version “4.2.3″. This configuration is not recommended and
    VMware Server may crash if you’ll continue. Please try to use exactly same
    compiler as one used for building your kernel. Do you want to go with compiler
    “/usr/bin/gcc” version “4.2.3″ anyway? [no]

    For more information on how to troubleshoot module-related problems, please
    visit our Web site
    at “http://www.vmware.com/download/modules/modules.html” and
    “http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html”.

    Execution aborted.
    can you help me?thanks

  27. Narsi
    November 7th, 2008 at 00:49 | #27

    sudo apt-get install linux-headers-`uname -r` build-essential xinetd

    everything should be fine

  28. Greg
    November 8th, 2008 at 15:58 | #28

    I have same problem as Rodney… Tried running cmd Narsi suggested and stated everthing already was newest version.

    Has anyone tried installing gcc 4.2.4 for it to compile?

  29. Juan
    November 10th, 2008 at 13:22 | #29

    Using compiler “/usr/bin/gcc”. Use environment variable CC to override.

    Your kernel was built with “gcc” version “4.2.3″, while you are trying to use
    “/usr/bin/gcc” version “4.2.4″. This configuration is not recommended and
    VMware Server may crash if you’ll continue. Please try to use exactly same
    compiler as one used for building your kernel. Do you want to go with compiler
    “/usr/bin/gcc” version “4.2.4″ anyway? [no]

    For more information on how to troubleshoot module-related problems, please
    visit our Web site at “http://www.vmware.com/download/modules/modules.html” and
    “http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html”.

    Execution aborted.

    PLEASE HELP ME!!

  30. Nat
    November 10th, 2008 at 21:22 | #30

    Same as Juan.. Please someone help… until y’day everything was working fine. after kernel upgrade I started getting this issue, I am googling for last 6 hours and nothing seems to work..

    Gurus.. please help

    ======================
    Your kernel was built with “gcc” version “4.2.3″, while you are trying to use
    “/usr/bin/gcc” version “4.2.4″. This configuration is not recommended and
    VMware Server may crash if you’ll continue. Please try to use exactly same
    compiler as one used for building your kernel. Do you want to go with compiler
    “/usr/bin/gcc” version “4.2.4″ anyway? [no] yes

    What is the location of the directory of C header files that match your running
    kernel? [/usr/src/linux/include]

    The path “/usr/src/linux/include” is not an existing directory.

    What is the location of the directory of C header files that match your running
    kernel? [/usr/src/linux/include]
    =======================

  31. Nat
    November 11th, 2008 at 00:20 | #31

    Alright, I figured out finally..

    ============================
    sudo apt-get install linux-headers-`uname -r`
    sudo apt-get autoremove
    sudo apt-get clean
    sudo apt-get install linux-headers-`uname -r`
    sudo apt-get install g++
    # the following command will produce sth like : 2.6.24-21-generic
    $uname -r
    # Now run ./vmware-config.pl
    $./vmware-config.pl
    # When prompted for directory of C headers..please substitute the value as shown below, based on your above uname -r command output.
    What is the location of the directory of C header files that match your running
    kernel? [/usr/src/linux/include]/usr/src/linux-headers-2.6.24-21-generic/include

    ## Thats it Voila – Everything should work..
    =================================

    Thanks
    Muthu Nat

  32. Nat
    November 11th, 2008 at 00:21 | #32

    sudo apt-get install linux-headers-`uname -r`
    sudo apt-get autoremove
    sudo apt-get clean
    sudo apt-get install linux-headers-`uname -r`
    sudo apt-get install g++
    # the following command will produce sth like : 2.6.24-21-generic
    $uname -r
    # Now run ./vmware-config.pl
    $./vmware-config.pl
    # When prompted for directory of C headers..please substitute the value as shown below, based on your above uname -r command output.
    What is the location of the directory of C header files that match your running
    kernel? [/usr/src/linux/include]/usr/src/linux-headers-2.6.24-21-generic/include

    ## Thats it Voila – Everything should work..

  33. Richard Hanson
    November 15th, 2008 at 12:52 | #33

    Hi Mat;
    I followed the instructions on comments 81 & 82 and everthing worked fine until I ran ./vmware-config.pl
    Then I got the error: no such file or directory.

    HELP!!!!!!

  34. Richard Hanson
    November 15th, 2008 at 13:03 | #34

    Hi again;
    There are a couple of things that I failed to mention. Don’t know if they will help, but here they are.
    1) My Machine is an amd64
    2) I am running Ubuntu 8.10

    Thanks

  35. Richard Hanson
    November 15th, 2008 at 13:22 | #35

    Me again:
    I got the ./vmware-config.pl to execute. Here is the output.
    dick@ubuntu:~/VMware/vmware-server-distrib/bin$ sudo ./vmware-config.pl
    Making sure services for VMware Server are stopped.

    Stopping VMware services:
    Virtual machine monitor done

    Configuring fallback GTK+ 2.4 libraries.

    In which directory do you want to install the mime type icons?
    [/usr/share/icons]

    What directory contains your desktop menu entry files? These files have a
    .desktop file extension. [/usr/share/applications]

    In which directory do you want to install the application’s icon?
    [/usr/share/pixmaps]

    /usr/share/applications/vmware-server.desktop: warning: value “vmware-server.png” for key “Icon” in group “Desktop Entry” is an icon name with an extension, but there should be no extension as described in the Icon Theme Specification if the value is not an absolute path
    /usr/share/applications/vmware-console-uri-handler.desktop: warning: value “vmware-server.png” for key “Icon” in group “Desktop Entry” is an icon name with an extension, but there should be no extension as described in the Icon Theme Specification if the value is not an absolute path
    Trying to find a suitable vmmon module for your running kernel.

    None of the pre-built vmmon modules for VMware Server is suitable for your
    running kernel. Do you want this program to try to build the vmmon module for
    your system (you need to have a C compiler installed on your system)? [yes]

    Using compiler “/usr/bin/gcc”. Use environment variable CC to override.

    What is the location of the directory of C header files that match your running
    kernel? [/lib/modules/2.6.27-7-generic/build/include]

    Extracting the sources of the vmmon module.

    Building the vmmon module.

    Using 2.6.x kernel build system.
    make: Entering directory `/tmp/vmware-config0/vmmon-only’
    make -C /lib/modules/2.6.27-7-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
    make[1]: Entering directory `/usr/src/linux-headers-2.6.27-7-generic’
    CC [M] /tmp/vmware-config0/vmmon-only/linux/driver.o
    In file included from /tmp/vmware-config0/vmmon-only/./include/machine.h:24,
    from /tmp/vmware-config0/vmmon-only/linux/driver.h:15,
    from /tmp/vmware-config0/vmmon-only/linux/driver.c:49:
    /tmp/vmware-config0/vmmon-only/./include/x86.h:830:1: warning: “PTE_PFN_MASK” redefined
    In file included from include/asm/pda.h:8,
    from include/asm/current.h:19,
    from include/asm/processor.h:15,
    from include/linux/prefetch.h:14,
    from include/linux/list.h:6,
    from include/linux/module.h:9,
    from /tmp/vmware-config0/vmmon-only/linux/driver.c:12:
    include/asm/page.h:22:1: warning: this is the location of the previous definition
    In file included from /tmp/vmware-config0/vmmon-only/linux/vmhost.h:13,
    from /tmp/vmware-config0/vmmon-only/linux/driver.c:71:
    /tmp/vmware-config0/vmmon-only/./include/compat_semaphore.h:5:27: error: asm/semaphore.h: No such file or directory
    /tmp/vmware-config0/vmmon-only/linux/driver.c:146: error: unknown field ‘nopage’ specified in initializer
    /tmp/vmware-config0/vmmon-only/linux/driver.c:147: warning: initialization from incompatible pointer type
    /tmp/vmware-config0/vmmon-only/linux/driver.c:150: error: unknown field ‘nopage’ specified in initializer
    /tmp/vmware-config0/vmmon-only/linux/driver.c:151: warning: initialization from incompatible pointer type
    /tmp/vmware-config0/vmmon-only/linux/driver.c: In function ‘LinuxDriver_Ioctl’:
    /tmp/vmware-config0/vmmon-only/linux/driver.c:1670: 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.27-7-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/download/modules/modules.html” and
    “http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html”.

    Execution aborted.

  36. Will
    December 25th, 2008 at 10:37 | #36

    I am experiencing the same problem as Richard. Does anyone know how to resolve this?

  37. John Hively
    January 20th, 2009 at 10:10 | #37

    Thank you!
    Working with xubuntu 8.04.1 per your instructions

  38. domenico
    February 22nd, 2009 at 04:06 | #38

    i have the problem that say michele in post:
    michele on May 31st, 2008 10:45 am

    How can resolve it?

    thanks

  39. Chris Miller
    June 25th, 2009 at 01:10 | #39

    Guys, I was having this issue too, with 'VMWare Server on kernel 2.6.27-2-generic: cannot compile vmmon module':

    Your kernel was built with “gcc” version “4.2.3″, while you are trying to use
    “/usr/bin/gcc” version “4.2.4″. This configuration is not recommended and
    VMware Server may crash if you’ll continue. Please try to use exactly same
    compiler as one used for building your kernel. Do you want to go with compiler
    “/usr/bin/gcc” version “4.2.4″ anyway? [no]

    Found a patch via the Ubuntu forums, see the thread here:

    http://ubuntuforums.org/showthread.php?t=966070&a...

    The patch is here:

    http://www.insecure.ws/2008/10/20/vmware-specific...

    Got mine to work!

    Have fun!

Comment pages
1 2 659