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

493 Comments

  1. Pingback: darmowe anonse kobiet

  2. Pingback: dikabarin.com

  3. Pingback: Lydia

  4. Pingback: Aubrey

  5. Pingback: GA SEO Consultant

  6. Pingback: projektowanie sklepów internetowych

  7. Pingback: how to attract a classy woman

  8. Pingback: Atlanta SEO

  9. Pingback: how to find a perfect girl

  10. Pingback: Local SEO Atlanta

  11. Pingback: miracle phytoceramides pills

  12. Pingback: effects of garcinia cambogia

  13. Pingback: Eden Park Condos Mississauga

  14. Pingback: best garcinia cambogia extract

  15. Pingback: forskolin and weight loss

  16. Pingback: Addiction Treatment In Los Angeles

  17. Pingback: where to find pure garcinia cambogia

  18. Pingback: Tuscany Gate Condos Mississauga

  19. Pingback: forskolin research

  20. Pingback: pure cambogia

  21. Pingback: Eve Condos Mississauga

  22. Pingback: forskolin for weight loss

  23. Pingback: garcinia cambogia for weight loss

  24. Pingback: sell your bitcoin

  25. Pingback: side effects of forskolin

  26. Pingback: 60 garcinia cambogia

  27. Pingback: zobacz oferte

  28. Pingback: zobacz tutaj

  29. Pingback: tour and travel

  30. Pingback: cash loans online

  31. Pingback: i was reading this

  32. Pingback: merino

  33. Pingback: browse around here

  34. Pingback: magmarelax

  35. Pingback: katalog stron

  36. Pingback: armoir.pl

  37. Pingback: pc tablet

  38. Pingback: studexpoland

  39. Pingback: Deloris Sayre

  40. Pingback: Salvador Rodriges

  41. Pingback: Nidia Rentar

  42. Pingback: Silas Hodge

  43. Pingback: Diedra Hirko

Leave a Comment

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