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: tworzenie stron www poznan

  2. Pingback: nasiona marihuany sklep

  3. Pingback: zaproszenia ślubne warszawa

  4. Pingback: uphoffjuiceplus.com

  5. Pingback: banchungcumulberrylane.info

  6. Pingback: zobacz tutaj

  7. Pingback: themenwayjuiceplus.com

  8. Pingback: missioneastdallas.info

  9. Pingback: finishtiming.info

  10. Pingback: dykun.info

  11. Pingback: bnm-lyon.com

  12. Pingback: whoistintin.com

  13. Pingback: mhofmaiersharesjuiceplus.com

  14. Pingback: kellyssharesjuiceplus.com

  15. Pingback: wypozyczalnia lawet

  16. Pingback: all-you-need-is-music.com

  17. Pingback: chathamparknc.info

  18. Pingback: dilokulubak.info

  19. Pingback: skalbangkok.info

  20. Pingback: hash-cracker.info

  21. Pingback: greatjoy.info

  22. Pingback: xintaiyangchengylc193.com

  23. Pingback: protectall.info

  24. Pingback: www.damcontact.com.pl

  25. Pingback: vietnamtripadvisor.us

  26. Pingback: tianboguojiylc182.com

  27. Pingback: wortleyroadbooks.info

  28. Pingback: chat-buddy.info

  29. Pingback: calibrazione-sensori.com

  30. Pingback: plastic surgeons pittsburgh

  31. Pingback: pazhuheshnameh18.info

  32. Pingback: snapshotzphotobooth.info

  33. Pingback: findbattlebutton.info

  34. Pingback: domataglutenfree.info

  35. Pingback: PrzyjeciaWeseleWarszawa

  36. Pingback: weddings

  37. Pingback: sanft-natuerlich-heilen.info

  38. Pingback: bateria do laptopa hp compaq

  39. Pingback: tramadolbuyonline.biz

  40. Pingback: coppergoose.us

  41. Pingback: rtkk.info

  42. Pingback: wypozyczalnia lawet

  43. Pingback: wypozyczalnia lawet

  44. Pingback: healthside.info

  45. Pingback: lbknews.info

  46. Pingback: freeehackdownload.com

  47. Pingback: Minneapolis Locksmith

  48. Pingback: 1782chotaroad.info

  49. Pingback: wynajem aut

  50. Pingback: ruf-theo.biz

Leave a Comment

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