Lojic Technologies

VMWare Workstation on Ubuntu 7.04

with 9 comments

After upgrading my Ubuntu installation from 6.10 to 7.04, vmware workstation stopped working. I downloaded the latest VMWare 5.5.4 with no improvement. Then I found this article which fixed the problem in a few seconds!

Just in case the article goes away, I’ll post the instructions here as well:

From the vmware-distrib directory, do the following:

# cd lib/modules/source/
# cp vmmon.tar vmmon.tar.bck
# tar -xvf vmmon.tar
# vim vmmon-only/include/compat_kernel.h

Change the line with:

static inline _syscall1(int, compat_exit, int, exit_code);


/* static inline _syscall1(int, compat_exit, int, exit_code); */

Tar the directory to vmmon.tar:

# chmod 755 vmmon.tar
# tar -cvf vmmon.tar vmmon-only

Finally, go back to vmware distrib directory:

# cd ../../../


# sudo ./vmware-install.pl

The error messages that indicate the problem for which this fix should work are as follows:

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config1/vmmon-only'
make -C /usr/src/linux-headers-2.6.20-15-386/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.20-15-386'
CC [M] /tmp/vmware-config1/vmmon-only/linux/driver.o
In file included from /tmp/vmware-config1/vmmon-only/linux/driver.c:80:
/tmp/vmware-config1/vmmon-only/./include/compat_kernel.h:21: error: expected declaration specifiers or ‘...’ before ‘compat_exit’
/tmp/vmware-config1/vmmon-only/./include/compat_kernel.h:21: error: expected declaration specifiers or ‘...’ before ‘exit_code’
/tmp/vmware-config1/vmmon-only/./include/compat_kernel.h:21: warning: type defaults to ‘int’ in declaration of ‘_syscall1’
make[2]: *** [/tmp/vmware-config1/vmmon-only/linux/driver.o] Error 1
make[1]: *** [_module_/tmp/vmware-config1/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.20-15-386'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config1/vmmon-only'
Unable to build the vmmon module.

For more information on how to troubleshoot module-related problems, please
visit our Web site at "http://www.vmware.com/download/modules/modules.html" and

Execution aborted.

Written by Brian Adkins

May 25, 2007 at 3:52 pm

Posted in software

Tagged with , ,

9 Responses

Subscribe to comments with RSS.

  1. Thanks for the info! Just what I needed!


    July 18, 2007 at 8:45 am

  2. Awesome, Just what I needed also. Cheers for that!


    September 7, 2007 at 4:31 am

  3. Brilliant! Thanks for the note!


    September 10, 2007 at 9:10 am

  4. Thank you! Real time saver.


    September 13, 2007 at 7:22 pm

  5. Thanks a lot, works perfect.


    September 14, 2007 at 2:05 am

  6. Perfect again – this fix works on Slackware 12 with VMWare server 1.0.3, original slack kernel (big 2.6 smp) and also which I compiled tonight.


    September 18, 2007 at 11:19 pm

  7. Also works like a charm for Ubuntu 7.04 / VMware Workstation 5.5.5.



    September 30, 2007 at 7:29 pm

  8. It’s really nice when a google query puts the first response at the beginning, and it’s a *perfect* answer. I followed the instructions to the letter, and had my VMware Workstation up & running (again) after doing the Ubuntu edgy to feisty (7.04) upgrade — the 64 bit version at that. The only miniscule difference was that I ran vmware-config.pl vs the “install” script, which didn’t exist on my system. Many thanks for providing this valuable contribution to the community. …hj

    HJ Schmidt

    November 2, 2007 at 4:26 pm

  9. Worked for me on 7.10 “Gutsy Gibbon”; thanks!


    March 6, 2008 at 10:00 pm

Leave a Reply to Chris Cancel reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: