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……

3,021 Comments

  1. Pingback: MONSOON PACKAGES

  2. coupon code

    You need to participate in a contest for the most effective blogs on the web. I’ll recommend this web site!

    Reply
  3. click here

    WONDERFUL Post.thanks for share..more wait .. …

    Reply
  4. Umanizzare

    You can certainly see your skills in the work you write. The world hopes for more passionate writers such as you who are not afraid to mention how they believe. All the time go after your heart.|

    Reply
  5. Pingback: Land for $50 down

  6. Pingback: Cheap land

  7. Pingback: Rehvide paigaldus Tallinnas

  8. see more

    This actually answered my drawback, thanks!

    Reply
  9. click here

    The following time I learn a blog, I hope that it doesnt disappoint me as a lot as this one. I imply, I do know it was my option to learn, but I really thought youd have one thing interesting to say. All I hear is a bunch of whining about one thing that you can fix in the event you werent too busy in search of attention.

    Reply
  10. Pingback: Concinnity Limited hk

  11. click here

    There may be noticeably a bundle to learn about this. I assume you made sure nice points in features also.

    Reply
  12. Pingback: Search Engine Optimization in HK

  13. Luiz Fernando Monteiro Bittencourt

    Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point. You definitely know what youre talking about, why throw away your intelligence on just posting videos to your site when you could be giving us something enlightening to read?|

    Reply
  14. see more

    Your place is valueble for me. Thanks!…

    Reply
  15. colbeck capital

    It’s enormous that you are getting ideas from this paragraph as well as from our argument made here.

    Reply
  16. Pingback: Crisis Communications

  17. Pingback: appliance repair man

  18. Pingback: dumpster for sale

  19. Pingback: demolition dumpster rental

  20. Pingback: Patriot Brokerage Inc Trucking

  21. Pingback: dumpster rental miami

  22. Pingback: dg appliance service

  23. Pingback: debris hauling

  24. Pingback: rotating vibrator

  25. Pingback: fix washer

  26. Pingback: appliance fix

  27. Pingback: Oakland County real estate investors and buyers

  28. Pingback: appliance packages

  29. Grupo Serval presidios

    It is perfect time to make a few plans for the future and it is time to be happy. I’ve read this put up and if I may I wish to counsel you some fascinating issues or tips. Maybe you can write next articles regarding this article. I wish to read even more issues about it!|

    Reply
  30. Pingback: Monroe County real estate investing

  31. velcro

    very nice post, i definitely love this web site, keep on it

    Reply
  32. Pingback: tshirt

  33. floor marking tape

    I am often to running a blog and i actually admire your content. The article has really peaks my interest. I am going to bookmark your website and hold checking for brand spanking new information.

    Reply
  34. magnetic label tape

    This really answered my problem, thank you!

    Reply
  35. packaging supplies

    A powerful share, I simply given this onto a colleague who was doing a bit analysis on this. And he actually purchased me breakfast as a result of I discovered it for him.. smile. So let me reword that: Thnx for the deal with! But yeah Thnkx for spending the time to discuss this, I really feel strongly about it and love studying more on this topic. If potential, as you turn into expertise, would you thoughts updating your blog with more particulars? It’s highly useful for me. Huge thumb up for this blog submit!

    Reply
  36. Pingback: garbage containers rental

  37. correx

    I am typically to running a blog and i really appreciate your content. The article has really peaks my interest. I am going to bookmark your website and hold checking for brand spanking new information.

    Reply
  38. Pingback: affordable dumpster rental

  39. Pingback: garbage dumpsters for rent

  40. Pingback: dirt dumpster

  41. Pingback: roll up dumpster

  42. Pingback: rumpke dumpster rental

  43. Pingback: rent small dumpster

  44. Pingback: i need a dumpster

  45. Pingback: yard waste removal

  46. Pingback: waste management dumpster

  47. Carlos Eduardo Correa da Veig

    I’m gone to say to my little brother, that he should also visit this web site on regular basis to get updated from most recent information.|

    Reply
  48. Pingback: Dumpster rental Goshen

  49. Pingback: roll away dumpster prices

  50. Pingback: debris box

Leave a Comment

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