Home > Computers, Howto, Linux > VMware Player on Ubuntu 10.10 Maverick Meerkat

VMware Player on Ubuntu 10.10 Maverick Meerkat

UPDATE: According to one commenter below, this workaround also solves the problem on Fedora 14. Happy days :)

Getting with the excitement of 10/10/10, I upgraded to Ubuntu 10.10 Maverick Meerkat over the weekend. My trusty Dell Studio 1735 seems to be very Ubuntu-friendly, as each upgrade goes without a hitch.

I like the new 10.x layout and, although this update seems to be evolutionary rather than revolutionary, boot time has decreased again and the new font is nice. The only issues are to to with software that worked before the upgrade, but now doesn’t work afterwards. VMware Player is one of those.

Launching VMware Player after the upgrade gives a helpful message to tell you that kernel support needs to be recompiled. Clicking OK produces a little charade – fooling you into thinking that everything is going smoothly. Eventually, however, the process will stop with a message, which reads: “Unable to build kernel module – See log file…”

This can be corrected by opening a terminal window and typing:

cd /tmp
wget http://www.sputnick-area.net/scripts/vmware7.1.1-patch-kernel-2.6.35.bash
chmod +x ./vmware7.1.1-patch-kernel-2.6.35.bash
sudo ./vmware7.1.1-patch-kernel-2.6.35.bash

After the patch has run, type:

sudo vmware-modconfig --console --install-all

Which should terminate with “Starting VMware services” and inform you that they were started successfully. Now it’s just a case of launching VMware Player again.

If you do what I did and accept the link to upgrade VMware Player when it starts, then you’ll probably have to run the process again. Before doing this, though, you’ll have to remove a lock file. Otherwise the patch will “think” it’s already been applied. To remove the lock file type:

sudo rm /usr/lib/vmware/modules/source/.sputpatch

Now you can re-run the patch and the updated VMware Player will work.

  1. October 12th, 2010 at 00:22 | #1

    great job

  2. October 12th, 2010 at 08:51 | #2

    Thanks for your comment. Glad it worked for you :)

  3. codemedic
    October 12th, 2010 at 10:52 | #3

    Nice work mate… well done!

  4. October 12th, 2010 at 10:59 | #4

    Thanks for that – and for taking the time to comment :)

  5. alex
    October 13th, 2010 at 02:14 | #5

    nice work. thanks, pal

  6. October 13th, 2010 at 08:18 | #6

    You’re welcome. Thanks for the comment :)

  7. October 13th, 2010 at 08:29 | #7

    Awesome fix! Solved my problem. Thanks!

  8. October 13th, 2010 at 10:26 | #8

    You’re welcome. I appreciate the comment :)

  9. Horst
    October 13th, 2010 at 10:58 | #9

    Thanks a lot. Just a copy and paste. Works great on ubuntu 10.10 64-Bit.

  10. Thorsten
    October 14th, 2010 at 02:09 | #10

    Thank you very much!

  11. Wouter Simons
    October 14th, 2010 at 08:08 | #11

    Thank you for that, it works like a charm for me.

  12. October 14th, 2010 at 11:06 | #12

    @Horst @Wouter Simons Thanks for your kind comments. Glad everything works for you now :)

  13. David Sanabria
    October 14th, 2010 at 17:30 | #13

    Hi Matt,

    I just finished running your script and it worked as described. I wasn’t having exactly the same problems as above, but every time I started VM Player it ran through the same “recompiling” list and failed on something at the end (which zoomed by too fast to note).

    The result is that I now have network services again, which is absolutely great. Thanks for taking the time to share this. I’ve sent you €2 to buy a beer or coffee as a small token of my thanks!

    Regards,
    Dave

  14. October 14th, 2010 at 17:47 | #14

    Thanks that’s very kind of you :) glad everything works ok for you now. A drop of Guinness always goes down well, thanks again.

  15. Stefan
    October 14th, 2010 at 20:48 | #15

    Oops, I did not work for me :-(

    isc-scn@niesen:/tmp$ sudo vmware-modconfig –console –install-all
    Stopping VMware services:
    VMware USB Arbitrator done
    VM communication interface socket family done
    Virtual machine communication interface done
    Virtual machine monitor done
    Blocking file system done
    Using 2.6.x kernel build system.
    make: Entering directory `/tmp/vmware-root/modules/vmmon-only’
    make -C /lib/modules/2.6.35-22-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
    MODULEBUILDDIR= modules
    make[1]: Entering directory `/usr/src/linux-headers-2.6.35-22-generic’
    CC [M] /tmp/vmware-root/modules/vmmon-only/linux/driver.o
    CC [M] /tmp/vmware-root/modules/vmmon-only/linux/driverLog.o
    CC [M] /tmp/vmware-root/modules/vmmon-only/linux/hostif.o
    /tmp/vmware-root/modules/vmmon-only/linux/hostif.c: In function ‘HostIFReadUptimeWork’:
    /tmp/vmware-root/modules/vmmon-only/linux/hostif.c:2004: warning: ‘newUpBase’ may be used uninitialized in this function
    CC [M] /tmp/vmware-root/modules/vmmon-only/linux/iommu.o
    /tmp/vmware-root/modules/vmmon-only/linux/iommu.c: In function ‘IOMMU_SetupMMU’:
    /tmp/vmware-root/modules/vmmon-only/linux/iommu.c:156: error: implicit declaration of function ‘iommu_map_range’
    /tmp/vmware-root/modules/vmmon-only/linux/iommu.c: In function ‘IOMMU_VMCleanup’:
    /tmp/vmware-root/modules/vmmon-only/linux/iommu.c:403: error: implicit declaration of function ‘iommu_unmap_range’
    make[2]: *** [/tmp/vmware-root/modules/vmmon-only/linux/iommu.o] Error 1
    make[1]: *** [_module_/tmp/vmware-root/modules/vmmon-only] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.35-22-generic’
    make: *** [vmmon.ko] Error 2
    make: Leaving directory `/tmp/vmware-root/modules/vmmon-only’
    Unable to install vmmon
    isc-scn@niesen:/tmp$

  16. Stefan
    October 14th, 2010 at 21:22 | #16

    Ok. This way it works:

    1. Remove an existing vmware-player. This step did not remove the existing VM’s

    isc-scn@niesen:/tmp$ sudo vmware-installer -l
    Product Name Product Version
    ====================== ====================
    vmware-player 3.1.2.301548
    isc-scn@niesen:/tmp$ sudo vmware-installer -u vmware-player
    isc-scn@niesen:/tmp$

    2. Download the vmware-player from http://www.vmware.com again. In my case it was

    VMware Player for 64-bit Linux
    09/23/10 | 3.1.2 | 99M | Binary (.bundle)

    3. Follow the steps given in this blog and everything is fine.

    Thanks a lot!

  17. Kim
    October 14th, 2010 at 21:45 | #17

    Hi.
    When i do this, (sudo ./vmware7.1.1-patch-kernel-2.6.35.bash)
    at the end I get the output: “Unable to install vmmon”
    What’s up with that?

  18. Kim
    October 14th, 2010 at 21:46 | #18

    i ment “sudo ./vmware7.1.1-patch-kernel-2.6.35.bash”

  19. User
    October 15th, 2010 at 03:49 | #19

    Thank you very much. All is’t right!!!

  20. frx
    October 15th, 2010 at 17:45 | #20

    awesome!

    thank you

  21. October 15th, 2010 at 19:07 | #21

    It works! thanks for your contribution!

  22. October 15th, 2010 at 19:33 | #22

    @Stefan Thanks for your comment and the extra suggestion. That is a good idea.
    @User @frx @Jarley Thanks for your comments, glad it works for you.
    @Kim Have you tried @Stefan’s suggestion above.

  23. impermanent
    October 15th, 2010 at 20:30 | #23

    Great! worked for me too! thankyou!

  24. October 15th, 2010 at 20:53 | #24

    You’re very welcome. Thanks for taking the time to comment, I appreciate it.

  25. hsiawen
    October 15th, 2010 at 23:08 | #25

    Thanks for this! Worked like a champ.

  26. October 17th, 2010 at 16:11 | #26

    Thank you very much for your contribution!

  27. October 17th, 2010 at 18:04 | #27

    You’re welcome, thanks for your comment too :)

  28. October 18th, 2010 at 11:51 | #28

    Thanks, it worked!

  29. October 18th, 2010 at 13:10 | #29

    @gaglegemaate You’re welcome. Thank you for taking the time to comment :)

  30. Danny Sarcos
    October 18th, 2010 at 15:59 | #30

    Thanks a lot Matt! It certainly worked! I`m new to linux and started with ubuntu. Perhaps that`s why my comentary (out of ignorance) may be forgiven! Is the patch safe? Coul it by any mean be a threat to the conputer? Cause inestability to the system, etc? Thanks a lot for your patience!

  31. October 18th, 2010 at 16:16 | #31

    @Danny Sarcos You’re welcome and don’t worry – you’re asking the right questions. It’s always good to know exactly *what* you’re running on your computer. The patch is essentially a bunch of text files that adjust VMware’s source code. Because virtualisation works at such a low level in the computer, it has to be compiled specifically for your kernel. What the patch does is make it so that VMware will compile correctly to work with your kernel. It’s quite a frequent occurence that these community-supplied fixes are out before VMware’s. As for the patch itself, well…just from my stats here, I can see that this post has been viewed over 4,500 times in the last week, and I haven’t had any reports of problems or system instability.

    Thanks for taking the time to comment.

  32. October 18th, 2010 at 18:39 | #32

    With the Matt steps, my VM is working here! Thanks!

  33. October 18th, 2010 at 19:14 | #33

    Great stuff! Thanks for your comment :)

  34. October 19th, 2010 at 05:44 | #34

    That worked …!

  35. Alexander
    October 19th, 2010 at 20:07 | #35

    Did’t work for me: line 189: patch: command not found

  36. Alexander
    October 20th, 2010 at 18:28 | #36

    Ok, got it working. I still learn every day. :) Thanks for the patch

  37. October 20th, 2010 at 20:40 | #37

    You’re welcome. Glad it’s working for you now, thanks for the comment.

  38. Douglas Brown
    October 21st, 2010 at 19:25 | #38

    Had an issue where it gave me an error on the first go around. at the end I was getting the output: “Unable to install vmmon” I removed vmware and reinstalled first. Then followed the instructions as posted and im now up and running. Thanks!

  39. Enoque
    October 22nd, 2010 at 03:06 | #39

    Valeu Pela Dica!!
    Aqui também aparecia o erro quando executava o VMware. Após seguir os passos da recoinfiguração do Kernel tudo funcionou!!

    Obrigado!!

    Viva o Ubuntu!!

    Enoque Joseneas – Petrolina-Pe – Brazil.

  40. zeutan
    October 22nd, 2010 at 06:31 | #40

    Thanks a lot for this howto. It worked perfect.

  41. October 22nd, 2010 at 12:02 | #41

    @Douglas Brown @zeutan You’re welcome. Glad it’s working for you now :) Thanks for your comments.

    @Enoque de nada :)

  42. October 23rd, 2010 at 04:44 | #42

    Alexander :
    Ok, got it working. I still learn every day. Thanks for the patch

    How did you fix the error on Line 189? I keep getting that error when I run the script, and then I keep getting the “VMWare Player needs to compile…” message. The VMCI fails to compile. Up until running the patch, my virtual machine seemed to work alright (I haven’t tried it since running the script though).

    Have a great day:)
    Patrick.

    I’m on 10.10 Kernel 2.6.35-22-generic GNOME 2.32.0 (32-bit OS).

  43. October 24th, 2010 at 21:31 | #43

    Grazie. Ben fatto!

  44. October 25th, 2010 at 13:17 | #44

    Hi There,
    I would like to give you many thanks for the awesome tip.
    You have saved my life. ;-)
    Kind regards.
    Brendan.

  45. October 26th, 2010 at 17:44 | #45

    You’re very welcome. Thanks for the kind comment :)

  46. Stefan
    October 26th, 2010 at 19:06 | #46

    Hi There,

    @Patrick Dickey I got the same error running the bash file.
    line 189: patch: command not found

    After that i installed the package patch

  47. Stefan
    October 26th, 2010 at 19:12 | #47

    Sorry the comment before is not complete.
    try,

    sudo apt-get install patch

    and remove the lock file type. After that the bash files works very well.

    Kind regards
    Stefan

  48. Keith
    October 26th, 2010 at 19:55 | #48

    This worked for me. Odd that it happened in the first place.

  49. Adidasguy13187
    October 28th, 2010 at 03:07 | #49

    Fantastic and well written, thanks amigo!

  50. October 28th, 2010 at 09:15 | #50

    @Adidasguy13187 You’re welcome. Thanks for the comment :)

Comment pages
1 2 452
  1. October 12th, 2010 at 04:16 | #1
  2. October 12th, 2010 at 15:53 | #2
  3. October 13th, 2010 at 21:20 | #3
  4. October 14th, 2010 at 10:27 | #4
  5. October 15th, 2010 at 19:39 | #5
  6. December 6th, 2010 at 22:48 | #6