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. two thousand stocks

    Hi there, the whole thing is going perfectly here and
    ofcourse every one is sharing data, that’s really excellent, keep up writing.

  2. estate agent

    Greetings from Idaho! I’m bored to tears at work so I decided to browse your site on my iphone during lunch break.
    I really like the knowledge you present here and can’t wait to take a
    look when I get home. I’m shocked at how fast your blog loaded on my
    mobile .. I’m not even using WIFI, just 3G .. Anyways, wonderful site!

  3. Lelio Vieira Carneiro Junior

    Excellent site you have got here.. It’s difficult to find quality writing
    like yours these days. I seriously appreciate individuals like you!
    Take care!!

  4. loan term

    I’m amazed, I must say. Rarely do I encounter a blog that’s both equally educative
    and amusing, and without a doubt, you’ve hit the
    nail on the head. The problem is something which too few people are speaking intelligently about.

    Now i’m very happy I came across this in my search for something concerning this.

  5. trustworthy gaming sites

    Do you have a spam issue on this blog; I also am a blogger, and I was curious about your situation; many of us have
    developed some nice practices and we are looking to trade strategies with other folks, be sure to
    shoot me an e-mail if interested.

  6. Pingback: Slim couture

  7. Pingback: Slim couture

  8. lace frontal

    I can carry them with so many things. lace frontal https://www.youtube.com/watch?v=ny8rUpI_98I are so versitile.

  9. Pingback: Slim couture

  10. Pingback: Used Cooper Tires for sale

  11. Pingback: how to find the chepest flights top 5 websites

  12. Pingback: 10 best activities in tenerife

  13. Pingback: GOOSE VPN free

  14. Pingback: NordVPN service

  15. Pingback: NordVPN

  16. Roxie

    Hi to all, how is all, I think every one is getting more from this site, and your
    views are nice for new people.

  17. Pingback: Best VPN provider

  18. Pingback: Express VPN

  19. international travel tips

    I think this is one of the most significant info for me.
    And i’m glad reading your article. But want to remark on some general things, The website style is wonderful,
    the articles is really nice : D. Good job, cheers

  20. Pingback: GOOSEVPN

  21. Pingback: GOOSE VPN discount

  22. www.koreaherb.or.kr

    When someone writes an article he/she retains the idea of a user in his/her mind
    that how a user can know it. Thus that’s why this article is great.

  23. playing golf

    I am actually thankful to the holder of this site
    who has shared this enormous paragraph at at this place.

  24. Laverne

    Hello my friend! I want to say that this post is awesome, nice
    written and come with almost all important infos.

    I’d like to see extra posts like this .

  25. Nice respond in return of this matter with genuine arguments and describing all concerning that.

  26. travel diary

    Hey there! I’m at work surfing around your blog from my new
    apple iphone! Just wanted to say I love reading through
    your blog and look forward to all your posts! Keep up
    the superb work!

  27. Pingback: major appliance repair

  28. Pingback: maytag company

  29. Pingback: whirlpool dryer service

  30. Pingback: microwave repair

  31. Pingback: appliance reviews

  32. Pingback: whirlpool washer repairs

  33. oldest golf course

    This website was… how do you say it? Relevant!!
    Finally I’ve found something which helped me. Cheers!

  34. Pingback: youvideoporno

  35. Hi, I read your blog like every week. Your writing style
    is witty, keep up the good work!

  36. Pingback: rent a trash dumpster

  37. Pingback: rent trash container

  38. Pingback: dumpster rental argentine

  39. Pingback: dumpster rental saint clair shores

  40. butt muscles

    Write more, thats all I have to say. Literally, it seems as though you relied
    on the video to make your point. You obviously 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?

  41. irish golf

    I pay a visit day-to-day some sites and sites to read articles,
    but this webpage gives feature based writing.

  42. Pingback: big dumpster rental

  43. Pingback: sell house fast

  44. http://dualthegame.wiki/

    Thanks for some other informative blog. The place else may
    I get that type of info written in such a perfect method?
    I’ve a venture that I’m just now operating on, and I’ve
    been at the look out for such information.

  45. Bradley

    For most recent information you have to pay a quick visit internet and on web I
    found this website as a best site for hottest updates.

  46. Claudio

    I think the admin of this website is genuinely working
    hard in support of his site, since here every material
    is quality based material.

  47. Pingback: aaa credit tenant screening

  48. Pingback: houston background checks

  49. Pingback: texas employment screening

  50. getting heart disease

    I am not positive the place you’re getting your info, but great
    topic. I needs to spend a while studying more or understanding more.
    Thank you for excellent info I was looking for this information for
    my mission.


Leave a Comment

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