Installing VMware 6.0.2 and VMware Server on Ubuntu Hardy 8.04

vmware

Since Ubuntu Hardy 8.04 is not supported yet by VMware, and not supported at all by latest VMware 6.0.2 and VMware server we need some tweaking to make it install.

1) download VMware-workstation-6.0.2-59824.i386.tar.gz (from http://www.vmware.com/download/ws/ )

2) unpack it and run ’sudo ./vmware-install.pl’ from the terminal inside the unpacked vmware-distrib directory. Follow the wizard and do not worry if when it runs vmware-config.pl you get the followig error:

/tmp/vmware-config3/vmmon-only/./include/compat_wait.h:60: error: conflicting types for ‘poll_initwait’

3) download vmware-any-any-updateNNN.tar.gz from the linked ftp directory and unpack it. This enables you to install VMware on non supported platforms. Nonetheless running ’sudo ./runme.pl’ from inside the unpacked folder will prompt you with another error due to changes in latest 2.6.24 kernel:

include/asm/bitops_32.h:9:2: error: #error only  can be included directly
make[2]: *** [/tmp/vmware-config2/vmmon-only/common/cpuid.o] Error 1
make[1]: *** [_module_/tmp/vmware-config2/vmmon-only] Error 2
make[1]: Leaving directory \`/usr/src/linux-headers-2.6.24-4-generic\'
make: *** [vmmon.ko] Error 2
make: Leaving directory \`/tmp/vmware-config2/vmmon-only\'
Unable to build the vmmon module.

4) unpack vmmon.tar ‘tar xf vmmon.tar’,
open vmmon-only/include/vcpuset.h and change the following line #include “asm/bitops.h” to #include “linux/bitops.h”
Open vmmon-only/include/iocontrols_compat.h and change value 161 in line 18 (VMMON_VERSION_V6) to 167
Open vmmon-only/include/iocontrols.h and change value 161 in line 48 (VMMON_VERSION) to 167
Pack a new vmmon.tar ‘tar cf vmmon.tar vmmon-only/’ and then run ’sudo ./runme.pl’ again

For your convenience I have attached the patched patch here: vmware-any-any-update115

5) User Psilocibin reported when running the management console in VMware Server was getting errors about cairo versions.
The following fixed that
sudo cp /usr/lib/libpng12.so.0 /usr/lib/vmware/lib/libpng12.so.0/
sudo cp /lib/libgcc_s.so.1 /usr/lib/vmware/lib/libgcc_s.so.1/

NOTE: all credits goes to original authors, all those tips are taken from those pages:

https://help.ubuntu.com/community/VMware/Workstation

http://www.nowhere.dk/archives/2008/01/17/running_vmware_workstation_on_ubuntu_hardy_herron/index.php?show_id=e2008-01-17T19_13_10.txt

| Print This Post Print This Post | Email This Post Email This Post
RSS 2.0 | Trackback | Comment

21 Responses to “Installing VMware 6.0.2 and VMware Server on Ubuntu Hardy 8.04”

Trackbacks/Pingbacks

  1. [...] just upgraded to Hardy Heron and found that VMware Server no longer works, take a look at Installing VMware 6.0.2 and VMware Server on Ubuntu Hardy 8.04. You’ll find an explanation of what needs to be changed and, even better, a patched version [...]

Comments

  1. Deusdies says:

    This isn’t helping me. I have Ubuntu 8.04 Alpha 6, and Kernel 2.6.24-12 installed. But I still get this error. Any ideas?

  2. aldeby says:

    Deusdies, can you be more precise? What error do you get?
    Also please doublecheck your procedure. I have it currently running on the very same OS.

  3. Peter says:

    CC [M] /tmp/vmware-config4/vmmon-only/common/memtrack.o
    CC [M] /tmp/vmware-config4/vmmon-only/common/phystrack.o
    CC [M] /tmp/vmware-config4/vmmon-only/common/task.o
    gcc: error trying to exec ‘cc1plus’: execvp: No such file or directory
    make[2]: *** [/tmp/vmware-config4/vmmon-only/common/task.o] Error 1
    make[1]: *** [_module_/tmp/vmware-config4/vmmon-only] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-12-generic’
    make: *** [vmmon.ko] Error 2
    make: Leaving directory `/tmp/vmware-config4/vmmon-only’
    Unable to build the vmmon module.

    apt-get install build-essential

    will fix this error. I think you need g++ or g++4.2.

  4. Deusdies says:

    I think I made it. I think it’s compiling right now (I’m linux noob :<)

    Thanks guys!

  5. defrex says:

    Your my hero!

  6. lorty says:

    thank you very much,
    it worked like a charm!

  7. fatboy says:

    Thanks for the patched patch worked nicely!!

  8. Basil says:

    I managed to install using your update but did get an error regarding inetd. When I click on the VMWare server console icon in the applications menu, it looks like it starts up but no gui appears. I have the full install log saved but the problems relate to the following sections (I hope)

    inetd: no process killed
    Unable to make the Internet super-server (inetd) re-read its configuration
    file. Please restart inetd by hand:
    killall -v -HUP inetd

    and right at the end of the install it shows

    Starting VMware services:
    Virtual machine monitor done
    Virtual ethernet done
    Bridged networking on /dev/vmnet0 failed
    Host-only networking on /dev/vmnet1 (background) done
    Host-only networking on /dev/vmnet8 (background) done
    NAT service on /dev/vmnet8 done

    I triewd starting inetd from the terminal but it wasn’t found so installed inetutils-inetd using Synaptic and started it, but still get no response.
    I think I must be v close to getting this running on hardy but any suggestions would be appreciated. Full install log available to anyone willing to lend a hand.

  9. lilvatodude says:

    can anyone help me? this what i get when i run:

    $ sudo /usr/bin/vmware-config.pl

    vmware is installed, but it has not been (correctly) configured
    for this system. To (re-)configure it, invoke the following command:
    /usr/bin/vmware-config.pl.

    [...]

    /tmp/vmware-config5/vmmon-only/./include/busmem_def.h:48: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘typedef’
    In file included from /tmp/vmware-config5/vmmon-only/linux/driver.c:71:
    /tmp/vmware-config5/vmmon-only/./common/vmciSharedMem.h:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’
    In file included from /tmp/vmware-config5/vmmon-only/linux/driver.c:2408:
    /tmp/vmware-config5/vmmon-only/linux/driver_compat2.h: In function ‘LinuxDriver_IoctlTOT’:
    /tmp/vmware-config5/vmmon-only/linux/driver_compat2.h:33: error: ‘VMMON_VERSION’ undeclared (first use in this function)
    /tmp/vmware-config5/vmmon-only/linux/driver_compat2.h:33: error: (Each undeclared identifier is reported only once
    /tmp/vmware-config5/vmmon-only/linux/driver_compat2.h:33: error: for each function it appears in.)
    /tmp/vmware-config5/vmmon-only/linux/driver_compat2.h: In function ‘LinuxDriver_IoctlV6’:
    /tmp/vmware-config5/vmmon-only/linux/driver_compat2.h:152: error: ‘VMMON_VERSION_V6’ undeclared (first use in this function)
    make[2]: *** [/tmp/vmware-config5/vmmon-only/linux/driver.o] Error 1
    make[1]: *** [_module_/tmp/vmware-config5/vmmon-only] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-16-generic’
    make: *** [vmmon.ko] Error 2
    make: Leaving directory `/tmp/vmware-config5/vmmon-only’
    Unable to build the vmmon module.
    Execution aborted.

  10. aldeby says:

    You’d better read carefully the whole tutorial before posting that log.
    You have missed the patch part.

  11. David Adams says:

    Ok, when running VMware workstation, and attempting to power on a new virtual machine I get:
    Version mismatch with vmmon module: expecting 161.0, got 167.0.
    You have an incorrect version of the `vmmon’ kernel module.
    Try reinstalling VMware Workstation.
    I click ok and I get:
    Failed to initialize monitor device.
    I click ok again and I get:
    Unable to change virtual machine power state: Cannot find a valid peer process to connect to.

    Then it brings me back to the starting page…

  12. Ian Hansen says:

    Thank you very much, worked like a dream :)

  13. Semikolonne says:

    Don’t runs for me @ vmware-server. There are no vmmon-only/include/iocontrols_compat.h in my version of vmware-server. And “VMMON_VERSION to 167″ is to indirect, because there is an if-statement on these place, i think.
    I don’t have “VMMON_VERSION”-errors, but there are conflicts with types of variables and redeclares ….

    But vmware-player runs perfect with “#include asm/bitops.h to #include linux/bitops.h” only.

  14. Joel says:

    Thanks! This worked for me like a charm!

  15. Joe Chiang says:

    You know, It would’ve been easier to Understand if you would Type
    This Instead:
    Option1: download the pre modified version via
    http://aldeby.org/blog/wp-content/uploads/2008/03/vmware-any-any-update115.zip

    Option2: modify the files yourself
    $ cd vmware-any-any-update115

    $ sudo nano vmmon-only/include/vcpuset.h
    CHANGE
    #include “asm/bitops.h”
    TO
    #include “linux/bitops.h”
    $ sudo nano vmmon-only/include/iocontrols_compat.h
    CHANGE line 18
    #define VMMON_VERSION_V6 (161 << 16 | 0)
    TO
    #define VMMON_VERSION_V6 (167 << 16 | 0)
    $ sudo nano vmmon-only/include/iocontrols.h
    CHANGE line 48
    #define VMMON_VERSION (161 << 16 | 0)
    TO
    #define VMMON_VERSION (167 << 16 | 0)

    Because by Saying
    Open vmmon-only/include/iocontrols_compat.h and change VMMON_VERSION_V6 to 167

    I kept Change “VMMON_VERSION” to “167″

    Until i downloaded the modified PATCH (thank you for that)
    then I found out what i was doing wrong =.=”

    Open vmmon-only/include/iocontrols.h and change VMMON_VERSION to 167

    I kept change VMMON_VERSION

  16. TGI says:

    I also found the Icon in the application menu won’t work.. It will run however from a terminal. but I would prefer to use the Icon… any Ideas?

    Also I found that when my host is on another partition and that I go to run the networking, it won’t work bridged, only using NAT. Ideas?

  17. aldeby says:

    TGI, there shouldn’t be any differences between the shell and the menu, however you may try checking the command associated to the menu button (in GNOME rightclick on Applications menu and choose edit menus, then go to the desired button and rightclick on it.

    Concerning the partition issue is the host on an ext (or reiserfs or some other unix native) partition? Maybe there are permission issues since FAT (and NTFS) do not support them.

  18. bnv says:

    Great! Thanks.

  19. makanaki says:

    Thanks! that works fine for my ubuntu hardy-heron!

  20. RuLz says:

    At least i found a solution to my problem.
    Thank you very much really.

    It works perfectly with the patch provided with the modifications of the point 4.
    http://aldeby.org/blog/wp-content/uploads/2008/03/vmware-any-any-update115.zip


Leave a Reply

  • Page visits

    • 3460
  • Polls

    Did you manage using the internal modem?

    View Results

    Loading ... Loading ...
  • Categories

  • Meta

  • Recent Comments

  • Archives

  • Most Visited

  • Linux On Laptops

    -->