今天Fedora 升级 3.2.9-1 结果VMware Workstation 8.0.2 不能用了
[www.linuxidc.com @linuxidc vmware802fixlinux320]$ uname -a
Linux luozhuangN53 3.2.9-1.fc16.x86_64 #1 SMP Thu Mar 1 01:41:10 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
运行Vmware :
Cannot execute command ‘ ”\”/usr/bin/vmware-modconfig’\” –icon=’\”vmware-workstation’\” –appname=’\”VMware’\” –gcc=’\”/usr/lib64/ccache/gcc’\” –headers=’\”/lib/modules/3.2.9-1.fc16.x86_64/build/include’\” ”.
按以往经验升级以后应该运行:
sudo vmware-modconfig –console –install-all
结果
[www.linuxidc.com @linuxidc ~]$ sudo vmware-modconfig –console –install-all
[sudo] password for luozhuang:
Stopping vmware (via systemctl): [确定]
Using 2.6.x kernel build system.
make: 进入目录“/tmp/vmware-root/modules/vmmon-only”
make -C /lib/modules/3.2.9-1.fc16.x86_64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: 进入目录“/usr/src/kernels/3.2.9-1.fc16.x86_64”
CC [M] /tmp/vmware-root/modules/vmmon-only/linux/driverLog.o
CC [M] /tmp/vmware-root/modules/vmmon-only/linux/driver.o
CC [M] /tmp/vmware-root/modules/vmmon-only/linux/hostif.o
CC [M] /tmp/vmware-root/modules/vmmon-only/common/apic.o
CC [M] /tmp/vmware-root/modules/vmmon-only/common/memtrack.o
CC [M] /tmp/vmware-root/modules/vmmon-only/common/cpuid.o
CC [M] /tmp/vmware-root/modules/vmmon-only/common/task.o
CC [M] /tmp/vmware-root/modules/vmmon-only/common/vmx86.o
CC [M] /tmp/vmware-root/modules/vmmon-only/common/hashFunc.o
CC [M] /tmp/vmware-root/modules/vmmon-only/common/comport.o
CC [M] /tmp/vmware-root/modules/vmmon-only/common/phystrack.o
CC [M] /tmp/vmware-root/modules/vmmon-only/vmcore/moduleloop.o
LD [M] /tmp/vmware-root/modules/vmmon-only/vmmon.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/vmware-root/modules/vmmon-only/vmmon.mod.o
LD [M] /tmp/vmware-root/modules/vmmon-only/vmmon.ko
make[1]: 离开目录“/usr/src/kernels/3.2.9-1.fc16.x86_64”
make -C $PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= postbuild
make[1]: 进入目录“/tmp/vmware-root/modules/vmmon-only”
make[1]: “postbuild”是最新的。
make[1]: 离开目录“/tmp/vmware-root/modules/vmmon-only”
cp -f vmmon.ko ./../vmmon.o
make: 离开目录“/tmp/vmware-root/modules/vmmon-only”
Built vmmon module
Using 2.6.x kernel build system.
make: 进入目录“/tmp/vmware-root/modules/vmnet-only”
make -C /lib/modules/3.2.9-1.fc16.x86_64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: 进入目录“/usr/src/kernels/3.2.9-1.fc16.x86_64”
CC [M] /tmp/vmware-root/modules/vmnet-only/driver.o
CC [M] /tmp/vmware-root/modules/vmnet-only/hub.o
CC [M] /tmp/vmware-root/modules/vmnet-only/userif.o
CC [M] /tmp/vmware-root/modules/vmnet-only/netif.o
CC [M] /tmp/vmware-root/modules/vmnet-only/bridge.o
CC [M] /tmp/vmware-root/modules/vmnet-only/filter.o
CC [M] /tmp/vmware-root/modules/vmnet-only/procfs.o
CC [M] /tmp/vmware-root/modules/vmnet-only/smac_compat.o
CC [M] /tmp/vmware-root/modules/vmnet-only/smac.o
CC [M] /tmp/vmware-root/modules/vmnet-only/vnetEvent.o
CC [M] /tmp/vmware-root/modules/vmnet-only/vnetUserListener.o
/tmp/vmware-root/modules/vmnet-only/filter.c:60:16: 错误:‘THIS_MODULE’未声明(不在函数内)
/tmp/vmware-root/modules/vmnet-only/userif.c: 在函数‘VNetCsumCopyDatagram’中:
/tmp/vmware-root/modules/vmnet-only/userif.c:520:3: 错误:‘kmap’的第 1 个实参类型不兼容
include/linux/highmem.h:48:21: 附注:需要类型‘struct page *’,但实参的类型为‘const struct <匿名>’
/tmp/vmware-root/modules/vmnet-only/userif.c:523:3: 错误:‘kunmap’的第 1 个实参类型不兼容
include/linux/highmem.h:54:20: 附注:需要类型‘struct page *’,但实参的类型为‘const struct <匿名>’
make[2]: *** [/tmp/vmware-root/modules/vmnet-only/filter.o] 错误 1
make[2]: *** 正在等待未完成的任务….
make[2]: *** [/tmp/vmware-root/modules/vmnet-only/userif.o] 错误 1
/tmp/vmware-root/modules/vmnet-only/netif.c: 在函数‘VNetNetIfSetup’中:
/tmp/vmware-root/modules/vmnet-only/netif.c:134:7: 错误:初始值设定项里有未知的字段‘ndo_set_multicast_list’
/tmp/vmware-root/modules/vmnet-only/netif.c:134:7: 警告:从不兼容的指针类型初始化 [默认启用]
/tmp/vmware-root/modules/vmnet-only/netif.c:134:7: 警告:(在‘vnetNetifOps.ndo_validate_addr’的初始化附近) [默认启用]
make[2]: *** [/tmp/vmware-root/modules/vmnet-only/netif.o] 错误 1
make[1]: *** [_module_/tmp/vmware-root/modules/vmnet-only] 错误 2
make[1]: 离开目录“/usr/src/kernels/3.2.9-1.fc16.x86_64”
make: *** [vmnet.ko] 错误 2
make: 离开目录“/tmp/vmware-root/modules/vmnet-only”
Unable to install vmnet
请下载官方补丁:
http://communities.vmware.com/servlet/JiveServlet/download/2346-344213-1902218-80055/vmware802fixlinux320.tar.gz
运行下sh:(别告诉我你不知道怎么用)
[www.linuxidc.com @linuxidc vmware802fixlinux320]$ sh patch-modules_3.2.0.sh
You must be root to run this script. Exiting
[www.linuxidc.com @linuxidc vmware802fixlinux320]$ sudo sh patch-modules_3.2.0.sh
[sudo] password for luozhuang:
patching file vmnet-only/filter.c
patching file vmnet-only/netif.c
patching file vmnet-only/userif.c
Stopping vmware (via systemctl): [确定]
Using 2.6.x kernel build system.
make: 进入目录“/tmp/vmware-root/modules/vmmon-only”
make -C /lib/modules/3.2.9-1.fc16.x86_64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: 进入目录“/usr/src/kernels/3.2.9-1.fc16.x86_64”
CC [M] /tmp/vmware-root/modules/vmmon-only/linux/driverLog.o
CC [M] /tmp/vmware-root/modules/vmmon-only/linux/driver.o
CC [M] /tmp/vmware-root/modules/vmmon-only/linux/hostif.o
CC [M] /tmp/vmware-root/modules/vmmon-only/common/apic.o
CC [M] /tmp/vmware-root/modules/vmmon-only/common/memtrack.o
CC [M] /tmp/vmware-root/modules/vmmon-only/common/vmx86.o
CC [M] /tmp/vmware-root/modules/vmmon-only/common/cpuid.o
CC [M] /tmp/vmware-root/modules/vmmon-only/common/task.o
CC [M] /tmp/vmware-root/modules/vmmon-only/common/hashFunc.o
CC [M] /tmp/vmware-root/modules/vmmon-only/common/comport.o
CC [M] /tmp/vmware-root/modules/vmmon-only/common/phystrack.o
CC [M] /tmp/vmware-root/modules/vmmon-only/vmcore/moduleloop.o
LD [M] /tmp/vmware-root/modules/vmmon-only/vmmon.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/vmware-root/modules/vmmon-only/vmmon.mod.o
LD [M] /tmp/vmware-root/modules/vmmon-only/vmmon.ko
make[1]: 离开目录“/usr/src/kernels/3.2.9-1.fc16.x86_64”
make -C $PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= postbuild
make[1]: 进入目录“/tmp/vmware-root/modules/vmmon-only”
make[1]: “postbuild”是最新的。
make[1]: 离开目录“/tmp/vmware-root/modules/vmmon-only”
cp -f vmmon.ko ./../vmmon.o
make: 离开目录“/tmp/vmware-root/modules/vmmon-only”
Built vmmon module
Using 2.6.x kernel build system.
make: 进入目录“/tmp/vmware-root/modules/vmnet-only”
make -C /lib/modules/3.2.9-1.fc16.x86_64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: 进入目录“/usr/src/kernels/3.2.9-1.fc16.x86_64”
CC [M] /tmp/vmware-root/modules/vmnet-only/driver.o
CC [M] /tmp/vmware-root/modules/vmnet-only/hub.o
CC [M] /tmp/vmware-root/modules/vmnet-only/userif.o
CC [M] /tmp/vmware-root/modules/vmnet-only/netif.o
CC [M] /tmp/vmware-root/modules/vmnet-only/bridge.o
CC [M] /tmp/vmware-root/modules/vmnet-only/filter.o
CC [M] /tmp/vmware-root/modules/vmnet-only/procfs.o
CC [M] /tmp/vmware-root/modules/vmnet-only/smac_compat.o
CC [M] /tmp/vmware-root/modules/vmnet-only/smac.o
CC [M] /tmp/vmware-root/modules/vmnet-only/vnetEvent.o
CC [M] /tmp/vmware-root/modules/vmnet-only/vnetUserListener.o
LD [M] /tmp/vmware-root/modules/vmnet-only/vmnet.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/vmware-root/modules/vmnet-only/vmnet.mod.o
LD [M] /tmp/vmware-root/modules/vmnet-only/vmnet.ko
make[1]: 离开目录“/usr/src/kernels/3.2.9-1.fc16.x86_64”
make -C $PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= postbuild
make[1]: 进入目录“/tmp/vmware-root/modules/vmnet-only”
make[1]: “postbuild”是最新的。
make[1]: 离开目录“/tmp/vmware-root/modules/vmnet-only”
cp -f vmnet.ko ./../vmnet.o
make: 离开目录“/tmp/vmware-root/modules/vmnet-only”
Built vmnet module
Using 2.6.x kernel build system.
make: 进入目录“/tmp/vmware-root/modules/vmblock-only”
make -C /lib/modules/3.2.9-1.fc16.x86_64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: 进入目录“/usr/src/kernels/3.2.9-1.fc16.x86_64”
CC [M] /tmp/vmware-root/modules/vmblock-only/linux/filesystem.o
CC [M] /tmp/vmware-root/modules/vmblock-only/linux/dentry.o
CC [M] /tmp/vmware-root/modules/vmblock-only/linux/dbllnklst.o
CC [M] /tmp/vmware-root/modules/vmblock-only/linux/file.o
CC [M] /tmp/vmware-root/modules/vmblock-only/linux/block.o
CC [M] /tmp/vmware-root/modules/vmblock-only/linux/module.o
CC [M] /tmp/vmware-root/modules/vmblock-only/linux/super.o
CC [M] /tmp/vmware-root/modules/vmblock-only/linux/stubs.o
CC [M] /tmp/vmware-root/modules/vmblock-only/linux/inode.o
CC [M] /tmp/vmware-root/modules/vmblock-only/linux/control.o
LD [M] /tmp/vmware-root/modules/vmblock-only/vmblock.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/vmware-root/modules/vmblock-only/vmblock.mod.o
LD [M] /tmp/vmware-root/modules/vmblock-only/vmblock.ko
make[1]: 离开目录“/usr/src/kernels/3.2.9-1.fc16.x86_64”
make -C $PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= postbuild
make[1]: 进入目录“/tmp/vmware-root/modules/vmblock-only”
make[1]: “postbuild”是最新的。
make[1]: 离开目录“/tmp/vmware-root/modules/vmblock-only”
cp -f vmblock.ko ./../vmblock.o
make: 离开目录“/tmp/vmware-root/modules/vmblock-only”
Built vmblock module
Using 2.6.x kernel build system.
make: 进入目录“/tmp/vmware-root/modules/vmci-only”
make -C /lib/modules/3.2.9-1.fc16.x86_64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: 进入目录“/usr/src/kernels/3.2.9-1.fc16.x86_64”
CC [M] /tmp/vmware-root/modules/vmci-only/linux/driver.o
CC [M] /tmp/vmware-root/modules/vmci-only/linux/vmciKernelIf.o
CC [M] /tmp/vmware-root/modules/vmci-only/common/vmciDriver.o
CC [M] /tmp/vmware-root/modules/vmci-only/common/vmciResource.o
CC [M] /tmp/vmware-root/modules/vmci-only/common/vmciContext.o
CC [M] /tmp/vmware-root/modules/vmci-only/common/vmciDatagram.o
CC [M] /tmp/vmware-root/modules/vmci-only/common/vmciHashtable.o
CC [M] /tmp/vmware-root/modules/vmci-only/common/vmciEvent.o
CC [M] /tmp/vmware-root/modules/vmci-only/common/vmciQueuePair.o
CC [M] /tmp/vmware-root/modules/vmci-only/common/vmciDoorbell.o
CC [M] /tmp/vmware-root/modules/vmci-only/common/vmciQPair.o
CC [M] /tmp/vmware-root/modules/vmci-only/common/vmciRoute.o
CC [M] /tmp/vmware-root/modules/vmci-only/driverLog.o
LD [M] /tmp/vmware-root/modules/vmci-only/vmci.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/vmware-root/modules/vmci-only/vmci.mod.o
LD [M] /tmp/vmware-root/modules/vmci-only/vmci.ko
make[1]: 离开目录“/usr/src/kernels/3.2.9-1.fc16.x86_64”
make -C $PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= postbuild
make[1]: 进入目录“/tmp/vmware-root/modules/vmci-only”
make[1]: “postbuild”是最新的。
make[1]: 离开目录“/tmp/vmware-root/modules/vmci-only”
cp -f vmci.ko ./../vmci.o
make: 离开目录“/tmp/vmware-root/modules/vmci-only”
Built vmci module
Using 2.6.x kernel build system.
make: 进入目录“/tmp/vmware-root/modules/vsock-only”
make -C /lib/modules/3.2.9-1.fc16.x86_64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: 进入目录“/usr/src/kernels/3.2.9-1.fc16.x86_64”
CC [M] /tmp/vmware-root/modules/vsock-only/linux/af_vsock.o
CC [M] /tmp/vmware-root/modules/vsock-only/linux/vsockAddr.o
CC [M] /tmp/vmware-root/modules/vsock-only/linux/notifyQState.o
CC [M] /tmp/vmware-root/modules/vsock-only/linux/util.o
CC [M] /tmp/vmware-root/modules/vsock-only/linux/stats.o
CC [M] /tmp/vmware-root/modules/vsock-only/linux/notify.o
CC [M] /tmp/vmware-root/modules/vsock-only/driverLog.o
LD [M] /tmp/vmware-root/modules/vsock-only/vsock.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/vmware-root/modules/vsock-only/vsock.mod.o
LD [M] /tmp/vmware-root/modules/vsock-only/vsock.ko
make[1]: 离开目录“/usr/src/kernels/3.2.9-1.fc16.x86_64”
make -C $PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= postbuild
make[1]: 进入目录“/tmp/vmware-root/modules/vsock-only”
make[1]: “postbuild”是最新的。
make[1]: 离开目录“/tmp/vmware-root/modules/vsock-only”
cp -f vsock.ko ./../vsock.o
make: 离开目录“/tmp/vmware-root/modules/vsock-only”
Built vsock module
Starting vmware (via systemctl): [确定]
All done, you can now run VMWare WorkStation.
Modules sources backup can be found in the ‘/usr/lib/vmware/modules/source-workstation8.0.2-2012-03-10-23:42:09-backup’ directory
OK 可以运行了