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);
to:
/* 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 ../../../
Rebuild:
# 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
"http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html".
Execution aborted.
-
Thanks for the info! Just what I needed!
-
Awesome, Just what I needed also. Cheers for that!
-
Brilliant! Thanks for the note!
-
Thank you! Real time saver.
-
Thanks a lot, works perfect.
-
Perfect again – this fix works on Slackware 12 with VMWare server 1.0.3, original slack kernel (big 2.6 smp) and also 2.6.22.6 which I compiled tonight.
-
Also works like a charm for Ubuntu 7.04 / VMware Workstation 5.5.5.
Cheers!
-
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
-
Worked for me on 7.10 “Gutsy Gibbon”; thanks!

9 comments
Comments feed for this article
Trackback link: http://lojic.com/blog/2007/05/25/vmware-workstation-on-ubuntu-704/trackback/