Bug 4196

Summary: Невозможно загрузить модули vmware
Product: Sisyphus Reporter: Renat Sabitov <r_sabitov>
Component: kernel-image-std26-upAssignee: Sergey Vlasov <vsu>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P2    
Version: unstable   
Hardware: all   
OS: Linux   

Description Renat Sabitov 2004-05-20 13:53:40 MSD
После обновления на 2.6.6 перестали загружаться модули vmware
Используется VMware Workstation 4.0.5 build-6030 с патчем
vmware-any-any-update67. На 2.6.5 работало.

#vmware-config.pl
[...skipped...]
Using compiler "/usr/bin/gcc". Use environment variable CC to override.

What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.6-std26-up-alt4/build/include]

Extracting the sources of the vmmon module.

Building the vmmon module.

Building for VMware Workstation 4.0.x.  
Using standalone build system.
make: Entering directory `/root/tmp/vmware-config7/vmmon-only'
make[1]: Entering directory `/root/tmp/vmware-config7/vmmon-only'
make[2]: Entering directory
`/root/tmp/vmware-config7/vmmon-only/driver-2.6.6-std26-up-alt4'
make[2]: Leaving directory
`/root/tmp/vmware-config7/vmmon-only/driver-2.6.6-std26-up-alt4'
make[2]: Entering directory
`/root/tmp/vmware-config7/vmmon-only/driver-2.6.6-std26-up-alt4'
make[2]: Leaving directory
`/root/tmp/vmware-config7/vmmon-only/driver-2.6.6-std26-up-alt4'
make[1]: Leaving directory `/root/tmp/vmware-config7/vmmon-only'
make: Leaving directory `/root/tmp/vmware-config7/vmmon-only'
Unable to make a vmmon module that can be loaded in the running kernel:
insmod: error inserting '/root/tmp/vmware-config7/vmmon.o': -1 Invalid module format
There is probably a slight difference in the kernel configuration between the
set of C header files you specified and your running kernel.  You may want to
rebuild a kernel based on that directory, or specify another directory.

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.

$ rpm -qa | grep std26
kernel-headers-std26-up-2.6.6-alt4
kernel-modules-nvidia-std26-up-1.0.5336-alt2.4
kernel-image-std26-up-2.6.6-alt4

$ cat /etc/altlinux-release 
ALT Linux Sisyphus (20040519)
Comment 1 Renat Sabitov 2004-05-26 18:13:12 MSD
Решение:
su -
поставить vmware-any-any-update67
cd /usr/lib/vmware/modules/source/
tar -xf vmnet.tar
vim vmnet-only/Makefile
заменить 
HEADER_DIR = чего там есть
на
HEADER_DIR = /usr/include/linux-2.6.6-std26-up/include/

BUILD_DIR = чего там есть
на
BUILD_DIR = /usr/src/linux-2.6.6-std26-up/

tar -cf vmnet.tar vmnet-only

то же самое и с vmmon.tar

vmware-config.pl