VMWare Server 2: Unable to build the vsock module

If you encounter the following error after installing VMWare Server 2.0 RCx to Ubuntu:

Using 2.6.x kernel build system.
make: Entering directory `/root/tmp/vmware-config0/vsock-only'
make -C /lib/modules/2.6.24.4-desktop-1mnb/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.24.4-desktop-1mnb'
CC [M] /root/tmp/vmware-config0/vsock-only/linux/af_vsock.o
In file included from /root/tmp/vmware-config0/vsock-only/linux/af_vsock.c:92:
/root/tmp/vmware-config0/vsock-only/./include/compat_wait.h:64: error: conflicting types for ‘poll_initwait’
include/linux/poll.h:65: error: previous declaration of ‘poll_initwait’ was here
/root/tmp/vmware-config0/vsock-only/linux/af_vsock.c:260: warning: initialization from incompatible pointer type
/root/tmp/vmware-config0/vsock-only/linux/af_vsock.c: In function ‘__VSockVmciCreate’:
/root/tmp/vmware-config0/vsock-only/linux/af_vsock.c:1789: warning: passing argument 1 of ‘sk_alloc’ makes pointer from integer without a cast
/root/tmp/vmware-config0/vsock-only/linux/af_vsock.c:1789: warning: passing argument 3 of ‘sk_alloc’ makes integer from pointer without a cast
/root/tmp/vmware-config0/vsock-only/linux/af_vsock.c:1789: warning: passing argument 4 of ‘sk_alloc’ makes pointer from integer without a cast
make[2]: *** [/root/tmp/vmware-config0/vsock-only/linux/af_vsock.o] Error 1
make[1]: *** --_module_/root/tmp/vmware-config0/vsock-only-- Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.24.4-desktop-1mnb'
make: *** http://vsock.ko Error 2
make: Leaving directory `/root/tmp/vmware-config0/vsock-only'
Unable to build the vsock module.

fret not since there is a workaround to this. Although this is just a minor inconvenience and your VM will still run fine, you’ll better off fixing it. Read on

The problem is that the 2.6.24 kernel as packaged by Ubuntu 8.04 “hardy” changed how its source code provides certain information. This can be fixed by modifying the vsock module’s source code.

vsock = VM communication interface socket

  1. The first thing to do is to unpack the vsock source:
    $ tar xvf /usr/lib/vmware/modules/source/vsock.tar
  2. Change some of its auto-configuration.
    $ cd vsock-only
    $ sed -i 's/^\#include <linux\/autoconf\.h>//' autoconf/*.c
  3. The command above will traverse the autoconf folder and go through all the files that matches *.c and remove all lines that looks like:
    #include <linux/autoconf.h>
    these are part of the test file that the build system uses to figure out what features are available:
  4. Build the code:
    $ make
  5. Copy the driver over where VMware’s startup scripts can find it:
    $ sudo cp vsock.o /lib/modules/$(uname -r)/misc
    $ sudo ln -s vsock.o /lib/modules/$(uname -r)/misc/vsock.ko
  6. Create the dependency module so that the correct module dependencies will be available after booting the system
    $ sudo depmod -a
  7. Now shut down all your running VMs and restart VMware’s services:
    For Ubuntu/Debian
    $ sudo invoke-rc.d vmware restart
    or
    For Fedora/RedHat (or derivatives)
    $ sudo /sbin/service vmware restart
  8. Now the vsock driver should load up properly. Try entering http://localhost/ui/ in your favorite browser (I supposed it’s Firefox). Tested on Ubuntu 8.04 (Hardy Heron). Now get that virtual server running……

2,003 Comments

  1. Pingback: unlimited lifestyle

  2. Pingback: wand massagers

  3. Pingback: nirvana 350

  4. Luiz Fernando Monteiro Bittencourt

    Today, I went to the beach with my kids. I found a sea shell and gave it to my 4 year old daughter and said “You can hear the ocean if you put this to your ear.” She put the shell to her ear and screamed. There was a hermit crab inside and it pinched her ear. She never wants to go back! LoL I know this is totally off topic but I had to tell someone!|

    Reply
  5. Pingback: best vibrators for beginners

  6. Pingback: cool christian clothing

  7. Pingback: wordpress themes japanese style

  8. Pingback: download app from here

  9. Pingback: click here for free download

  10. Pingback: male mastubation toys

  11. Pingback: download now

  12. Pingback: urban christian clothing websites

  13. Itamar Serpa Fernandes

    Greetings! I know this is kinda off topic but I was wondering if you knew where I could locate a captcha plugin for my comment form? I’m using the same blog platform as yours and I’m having difficulty finding one? Thanks a lot!|

    Reply
  14. Pingback: Remove Online Complaints

  15. Egli Diana Pinto

    I don’t even know how I ended up here, but I thought this post was great. I don’t know who you are but certainly you are going to a famous blogger if you aren’t already 😉 Cheers!|

    Reply
  16. Pingback: new nipple toys

  17. Pingback: istanbul h?rdavat

  18. Pingback: remove consumer complaints

  19. Pingback: grab it now

  20. Pingback: black friday deals 2017

  21. Dadado Veig

    Hey there! I know this is kinda off topic however I’d figured I’d ask. Would you be interested in exchanging links or maybe guest authoring a blog article or vice-versa? My blog discusses a lot of the same topics as yours and I believe we could greatly benefit from each other. If you’re interested feel free to shoot me an e-mail. I look forward to hearing from you! Fantastic blog by the way!|

    Reply
  22. Pingback: cordless massager

  23. Pingback: go to official site

  24. Pingback: grab it now

  25. Pingback: rocks off rapture massager

  26. Pingback: apps like tinder

  27. Itamar Serpa Fernandes

    Hello there! This post couldn’t be written any better! Reading through this post reminds me of my previous roommate! He always kept talking about this. I will send this information to him. Fairly certain he’ll have a very good read. Thank you for sharing!|

    Reply
  28. Pingback: use a dildo

  29. Pingback: top vibrators for women

  30. Pingback: trading online

  31. Pingback: slimroasts

  32. Pingback: Learn Piano

  33. Lélio Vieira Carneiro Junio

    I got this web site from my pal who shared with me about this site and at the moment this time I am visiting this web site and reading very informative content at this time.|

    Reply
  34. Grupo Serval presídios

    If some one wants expert view about running a blog then i propose him/her to pay a quick visit this weblog, Keep up the good work.|

    Reply
  35. Luiz Gastão Bittencourt

    This article will assist the internet visitors for setting up new website or even a blog from start to end.|

    Reply
  36. Pingback: remove consumer complaints

  37. Pingback: logo design birmingham

  38. Pingback: cupping birmingham

  39. José Wilame Araújo Rodrigues

    Very descriptive article, I liked that bit. Will there be a part 2?|

    Reply
  40. Pingback: Oliver Isaacs

  41. Pingback: rent a dumpster

  42. Pingback: file federal taxes

  43. Pingback: dumpster rental cost

  44. Miquel

    As a Newbie, I am continuously exploring online for articles
    that can benefit me. Thank you

    Reply
  45. Pingback: pune to shirdi taxi

  46. Herman

    It’s impressive that you are getting thoughts from this post as well
    as from our discussion made at this place.

    Reply
  47. www.jimwrightonline.com

    I have been exploring for a little bit for any high-quality articles or weblog posts in this sort
    of area . Exploring in Yahoo I at last stumbled upon this web site.

    Reading this information So i’m happy to express that I have a very just right uncanny feeling I found out exactly what I needed.
    I so much unquestionably will make sure to do not overlook
    this site and give it a glance regularly.

    Reply
  48. Pingback: dumpster rental Bartlett

  49. Pingback: dumpster sizes

  50. Pingback: dumpster in a bag

Leave a Comment

Your email address will not be published. Required fields are marked *