[완료] 자문자답 - Feisty에 vmware server/workstation 설치시 에러 발생

twilight1024의 이미지

커널 버전이 업그레이드된 관계로 vmware server와 workstation이 설치가 잘 안됩니다.
설치시 다음과 같은 메시지를 내보내며 설치를 진행할 수 없지요.

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

그래서 다음과 같이 하시면 설치가 됩니다.

먼저...

===================================================================================================
# sudo apt-get install linux-headers-$(uname -r) build-essential gcc-4.1
===================================================================================================

vmware tar 파일을 푼 후...

===================================================================================================
# cd vmware-distrib
# cd lib/modules/source/
# cp vmmon.tar vmmon.tar.bck
# tar -xvf vmmon.tar
# nano vmmon-only/include/compat_kernel.h
===================================================================================================

에디터에서

===================================================================================================
static inline _syscall1(int, compat_exit, int, exit_code);
===================================================================================================
아래와 같이 부분을 찾아 주석처리 합니다.
===================================================================================================
/* static inline _syscall1(int, compat_exit, int, exit_code); */
===================================================================================================

그리고 나서 다시 압축을 합니다.

===================================================================================================
# chmod 755 vmmon.tar
# tar -cvf vmmon.tar vmmon-only
# cd ../../../
===================================================================================================

한 후, 다시 설치

===================================================================================================
sudo ./vmware-install.pl
===================================================================================================

하여 인스톨 합니다.

twilight1024의 이미지

lacovnk의 이미지

전 workstation 베타6을 깔았는데 별 군소리 없이 잘 깔리더군요~

twilight1024의 이미지

베타6는 fesity에 포함된 커널에 맞게 컴파일이 됩니다. vmware workstation의 경우 5.5.x버전에서, 그리고 현재 vmware server에서 나타나는 문제 해결을 위한 글입니다.

lynn1128의 이미지

이거 땜시 삽질을 좀 하고 있었는데,
제안해주신 방법대로 따라했더니 잘 되네요.

감사합니다. (__ )

날마다 쾌활