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/ SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-'
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-'
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
    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……


  1. Pingback: Latest Cricket News

  2. Pingback: eldre damer sex

  3. Pingback: sex med eldre

  4. Pingback: Oil For Stretch Marks

  5. Pingback: teeth whitening at home

  6. Pingback: Hardwood floor border designing,

  7. Pingback: dumpster rental prices

  8. Pingback: Hardwood Floors Buffing,

  9. Pingback: Zwembad op maat

  10. Pingback: Zwembad bouwen

  11. Pingback: trash containers dumpsters

  12. Pingback: Zwembad in de tuin

  13. Pingback: dumpster rental sterling hts

  14. Pingback: trash removal

  15. best butt

    When I originally commented I clicked the “Notify me when new comments are added” checkbox
    and now each time a comment is added I get several e-mails with the same comment.
    Is there any way you can remove me from that service?


  16. Pingback: stickereien

  17. Pingback: Responsive Webseite Design

  18. Pingback: best resveratrol

  19. Pingback: hopital pour les yeux

  20. Pingback: op?ration myopie prix

  21. Pingback: Vernieuwing dak

  22. Pingback: Oil Proof Window Blackout Curtains Customize Size High Quality Easy Installation

  23. Pingback: Renovatie dak

  24. Pingback: Overzetdaken prijzen

  25. Pingback: Durable Toddler Faucet Extender 4 colors 1pcs Washing Sink Kids Bathroom Tap

  26. Pingback: Zebra Roller Window Blinds Shade Room Darkening Looped Chain Blind Color

  27. timex look

    Great post! We will be linking to this great article on our site.
    Keep up the good writing.

  28. Pingback: Online Password Generator

  29. Pingback: holdforløb golf

  30. Pingback: Ä?èn leg

  31. Pingback: Error Conflicting Types For Poll_initwait Vmware

  32. Pingback: update on Nigeria news

  33. Pingback: Máy chÆ°a s?a ch?a

  34. Pingback: fastest news Nigeria

  35. Pingback: Mobile App PSD Template

  36. Pingback: google assistant chromebook

  37. Pingback: hackers arrested

  38. Pingback: powdered drink mix packets

  39. Pingback: zenphone max m?i 99%

  40. Pingback: how to make money online

  41. Pingback: 7plus gold lên v? red

  42. Pingback: vitamin drink powder

  43. Pingback: room decor

  44. Pingback: Laptop Dell

  45. Pingback: bedroom decoration

  46. Pingback: dubai lifestyle app

  47. Pingback: Supreme

  48. Pingback: dubai lifestyle app

  49. Pingback: lò vi sóng

  50. Pingback: contact

Leave a Comment

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