when try to start vmware workstation 10.0.3 after install within RHEL 7.0, it tried to compile some modules and failed at filter.c.
Where to get the correct filter.c?
following is the output from vmware
-------------------------------------------------------------------------------------
# vmware
Logging to /tmp/vmware-root/vmware-modconfig-3262.log
Stopping vmware (via systemctl): [ 确定 ]
Using 2.6.x kernel build system.
make: 进入目录“/tmp/modconfig-lTQKwk/vmnet-only”
/bin/make -C /lib/modules/3.10.0-123.el7.x86_64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: 进入目录“/usr/src/kernels/3.10.0-123.el7.x86_64”
CC [M] /tmp/modconfig-lTQKwk/vmnet-only/driver.o
CC [M] /tmp/modconfig-lTQKwk/vmnet-only/hub.o
CC [M] /tmp/modconfig-lTQKwk/vmnet-only/userif.o
CC [M] /tmp/modconfig-lTQKwk/vmnet-only/netif.o
CC [M] /tmp/modconfig-lTQKwk/vmnet-only/bridge.o
CC [M] /tmp/modconfig-lTQKwk/vmnet-only/filter.o
/tmp/modconfig-lTQKwk/vmnet-only/filter.c:209:1: 错误:与‘VNetFilterHookFn’类型冲突
VNetFilterHookFn(unsigned int hooknum, // IN:
^
/tmp/modconfig-lTQKwk/vmnet-only/filter.c:64:18: 附注:‘VNetFilterHookFn’的上一个声明在此
static nf_hookfn VNetFilterHookFn;
^
/tmp/modconfig-lTQKwk/vmnet-only/filter.c:64:18: 警告:‘VNetFilterHookFn’使用过但从未定义 [默认启用]
/tmp/modconfig-lTQKwk/vmnet-only/filter.c:209:1: 警告:‘VNetFilterHookFn’定义后未使用 [-Wunused-function]
VNetFilterHookFn(unsigned int hooknum, // IN:
^
make[2]: *** [/tmp/modconfig-lTQKwk/vmnet-only/filter.o] 错误 1
make[2]: *** 正在等待未完成的任务....
make[1]: *** [_module_/tmp/modconfig-lTQKwk/vmnet-only] 错误 2
make[1]: 离开目录“/usr/src/kernels/3.10.0-123.el7.x86_64”
make: *** [vmnet.ko] 错误 2
make: 离开目录“/tmp/modconfig-lTQKwk/vmnet-only”
Failed to build vmnet. Failed to execute the build command.
Starting vmware (via systemctl): Job for vmware.service failed. See 'systemctl status vmware.service' and 'journalctl -xn' for details.
[失败]
[root@localhost ~]#
Have a look here:
Workstation 10.0.3 will not install in Centos 7
I just did this, from that discussion:
--------------------------------------------------------------------------------------
I'm using RHEL 7 and have the same problem. For version 10.0.3 i make next steps:
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)
on
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 0, 0)
6. cd ..
7. tar -uvf vmnet.tar vmnet-only
8. rm -fr vmnet-only
After this steps i have all working.
---------------------------------------------------------------------------
Worked here on CentOS 7.0
I've tried all the patches and googles to fix 10.02 and 10.03. PATCHES DO NOT WORK!
All patches say 2/3 chunks succeed. 1 failed. Which is enough to stop compile.
Workstation 10.03 will not install on
RHEL 7 x64 (Kernel 3.10.0-123.el7.x86_64),
BUT 10.02 will. Here's how with ONLY 2 changes:
1. Install the 10.02 bundle ( [localhost]# ./<bundlename.bundle )
2. install succeeds
2. [localhost]# vmware
3. compile fails.
4. [localhost]# cd /usr/lib/vmware/modules/source
5. [localhost]# tar -xvf vmnet.tar
6. [localhost]# nano vmnet-only/filter.c
7. scroll down to about line 206 and change:
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)
so version looks like this:
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 0, 0)
8. scroll down to about line 259 and change:
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)
so version looks like this:
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 0, 0)
9. now save and overwrite updated filter.c file and then re-tar with
10 [localhost]# tar -uvf vmnet.tar vmnet-only
11. [localhost]# vmware-modconfig --console --install-all
12. [localhost]# vmware
VMWare Workstation 10.02 should start right up and be ready for service.
NOTE: Run #12 from an X session console.