ununtu11.10 下 安装 vmware 8.01 不能编译内核错误
ubuntu11.10 内核:3.2.0-5-generic
vmware:官网下的 VMware-Workstation-Full-8.0.1-528992.i386.bundle
执行
sudo chmod +x VMware-Workstation-Full-8.0.1-528992.i386.bundle
sudo ./VMware-Workstation-Full-8.0.1-528992.i386.bundle
然后出现安装界面,一直到安装完成
安装之后 菜单运行 应用程序--系统工具--vmware workstation
提示说要编译文件: Before you can run VMware,several modules must be complied and loaded into the running kernel.
点击 install
输入密码后开始运行,报错:
Unable to build kernel module.
See log file /tmp/vmware-root/modconfig-8837.log for details.
log文件:
2011-12-27T16:01:14.300+08:00| vthread-3| I120: Log for VMware Workstation pid=9818 version=8.0.1 build=build-528992 option=Release
2011-12-27T16:01:14.300+08:00| vthread-3| I120: The process is 32-bit.
2011-12-27T16:01:14.300+08:00| vthread-3| I120: Host codepage=UTF-8 encoding=UTF-8
2011-12-27T16:01:14.300+08:00| vthread-3| I120: Host is Linux 3.2.0-5-generic Ubuntu precise (development branch)
2011-12-27T16:01:14.300+08:00| vthread-3| I120: Msg_Reset:
2011-12-27T16:01:14.300+08:00| vthread-3| I120: [msg.dictionary.load.openFailed] Cannot open file "/usr/lib/vmware/settings": 没有那个文件或目录.
2011-12-27T16:01:14.300+08:00| vthread-3| I120: ----------------------------------------
2011-12-27T16:01:14.300+08:00| vthread-3| I120: PREF Optional preferences file not found at /usr/lib/vmware/settings. Using default values.
2011-12-27T16:01:14.300+08:00| vthread-3| I120: Msg_Reset:
2011-12-27T16:01:14.300+08:00| vthread-3| I120: [msg.dictionary.load.openFailed] Cannot open file "/root/.vmware/config": 没有那个文件或目录.
2011-12-27T16:01:14.300+08:00| vthread-3| I120: ----------------------------------------
2011-12-27T16:01:14.300+08:00| vthread-3| I120: PREF Optional preferences file not found at /root/.vmware/config. Using default values.
2011-12-27T16:01:14.300+08:00| vthread-3| I120: Msg_Reset:
2011-12-27T16:01:14.300+08:00| vthread-3| I120: [msg.dictionary.load.openFailed] Cannot open file "/root/.vmware/preferences": 没有那个文件或目录.
2011-12-27T16:01:14.300+08:00| vthread-3| I120: ----------------------------------------
2011-12-27T16:01:14.300+08:00| vthread-3| I120: PREF Failed to load user preferences.
2011-12-27T16:01:14.300+08:00| vthread-3| W110: Logging to /tmp/vmware-root/modconfig-9818.log
2011-12-27T16:01:14.430+08:00| vthread-3| I120: modconf query interface initialized
2011-12-27T16:01:14.430+08:00| vthread-3| I120: modconf library initialized
2011-12-27T16:01:14.465+08:00| vthread-3| I120: Your GCC version: 4.6
2011-12-27T16:01:14.468+08:00| vthread-3| I120: Validating path /lib/modules/preferred/build/include for kernel release 3.2.0-5-generic
2011-12-27T16:01:14.468+08:00| vthread-3| I120: Failed to find /lib/modules/preferred/build/include/linux/version.h
2011-12-27T16:01:14.468+08:00| vthread-3| I120: Failed version test: /lib/modules/preferred/build/include/linux/version.h not found.
2011-12-27T16:01:14.468+08:00| vthread-3| I120: Validating path /lib/modules/3.2.0-5-generic/build/include for kernel release 3.2.0-5-generic
2011-12-27T16:01:14.470+08:00| vthread-3| I120: Your GCC version: 4.6
2011-12-27T16:01:14.477+08:00| vthread-3| I120: Your GCC version: 4.6
2011-12-27T16:01:14.500+08:00| vthread-3| I120: Header path /lib/modules/3.2.0-5-generic/build/include for kernel release 3.2.0-5-generic is valid.
2011-12-27T16:01:14.500+08:00| vthread-3| I120: Validating path /lib/modules/3.2.0-5-generic/build/include for kernel release 3.2.0-5-generic
2011-12-27T16:01:14.502+08:00| vthread-3| I120: Your GCC version: 4.6
2011-12-27T16:01:14.509+08:00| vthread-3| I120: Your GCC version: 4.6
2011-12-27T16:01:14.532+08:00| vthread-3| I120: Header path /lib/modules/3.2.0-5-generic/build/include for kernel release 3.2.0-5-generic is valid.
2011-12-27T16:01:14.549+08:00| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-5-generic.
2011-12-27T16:01:14.551+08:00| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-5-generic.
2011-12-27T16:01:14.553+08:00| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-5-generic.
2011-12-27T16:01:14.555+08:00| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-5-generic.
2011-12-27T16:01:14.557+08:00| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-5-generic.
2011-12-27T16:01:14.572+08:00| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-5-generic.
2011-12-27T16:01:14.574+08:00| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-5-generic.
2011-12-27T16:01:14.577+08:00| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-5-generic.
2011-12-27T16:01:14.579+08:00| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-5-generic.
2011-12-27T16:01:14.581+08:00| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-5-generic.
2011-12-27T16:01:14.584+08:00| vthread-3| I120: Validating path /lib/modules/preferred/build/include for kernel release 3.2.0-5-generic
2011-12-27T16:01:14.584+08:00| vthread-3| I120: Failed to find /lib/modules/preferred/build/include/linux/version.h
2011-12-27T16:01:14.584+08:00| vthread-3| I120: Failed version test: /lib/modules/preferred/build/include/linux/version.h not found.
2011-12-27T16:01:14.584+08:00| vthread-3| I120: Validating path /lib/modules/3.2.0-5-generic/build/include for kernel release 3.2.0-5-generic
2011-12-27T16:01:14.586+08:00| vthread-3| I120: Your GCC version: 4.6
2011-12-27T16:01:14.593+08:00| vthread-3| I120: Your GCC version: 4.6
2011-12-27T16:01:14.618+08:00| vthread-3| I120: Header path /lib/modules/3.2.0-5-generic/build/include for kernel release 3.2.0-5-generic is valid.
2011-12-27T16:01:14.636+08:00| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-5-generic.
2011-12-27T16:01:14.639+08:00| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-5-generic.
2011-12-27T16:01:14.641+08:00| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-5-generic.
2011-12-27T16:01:14.643+08:00| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-5-generic.
2011-12-27T16:01:14.645+08:00| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-5-generic.
2011-12-27T16:01:14.647+08:00| vthread-3| I120: Validating path /lib/modules/preferred/build/include for kernel release 3.2.0-5-generic
2011-12-27T16:01:14.647+08:00| vthread-3| I120: Failed to find /lib/modules/preferred/build/include/linux/version.h
2011-12-27T16:01:14.647+08:00| vthread-3| I120: Failed version test: /lib/modules/preferred/build/include/linux/version.h not found.
2011-12-27T16:01:14.647+08:00| vthread-3| I120: Validating path /lib/modules/3.2.0-5-generic/build/include for kernel release 3.2.0-5-generic
2011-12-27T16:01:14.649+08:00| vthread-3| I120: Your GCC version: 4.6
2011-12-27T16:01:14.656+08:00| vthread-3| I120: Your GCC version: 4.6
2011-12-27T16:01:14.682+08:00| vthread-3| I120: Header path /lib/modules/3.2.0-5-generic/build/include for kernel release 3.2.0-5-generic is valid.
2011-12-27T16:01:14.715+08:00| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-5-generic.
2011-12-27T16:01:14.717+08:00| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-5-generic.
2011-12-27T16:01:14.719+08:00| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-5-generic.
2011-12-27T16:01:14.721+08:00| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-5-generic.
2011-12-27T16:01:14.724+08:00| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-5-generic.
2011-12-27T16:01:14.871+08:00| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-5-generic.
2011-12-27T16:01:14.873+08:00| vthread-3| I120: Validating path /lib/modules/3.2.0-5-generic/build/include for kernel release 3.2.0-5-generic
2011-12-27T16:01:14.876+08:00| vthread-3| I120: Your GCC version: 4.6
2011-12-27T16:01:14.894+08:00| vthread-3| I120: Your GCC version: 4.6
2011-12-27T16:01:14.926+08:00| vthread-3| I120: Header path /lib/modules/3.2.0-5-generic/build/include for kernel release 3.2.0-5-generic is valid.
2011-12-27T16:01:14.926+08:00| vthread-3| I120: Building module vmmon.
2011-12-27T16:01:14.926+08:00| vthread-3| I120: Extracting the sources of the vmmon module.
2011-12-27T16:01:14.937+08:00| vthread-3| I120: Building module with command: /usr/bin/make -j -C /tmp/vmware-root/modules/vmmon-only auto-build SUPPORT_SMP=1 HEADER_DIR=/lib/modules/3.2.0-5-generic/build/include CC=/usr/bin/gcc GREP=/usr/bin/make IS_GCC_3=no VMCCVER=4.6
2011-12-27T16:01:17.409+08:00| vthread-3| I120: Failed to compile module vmmon!
------------------------------------------------------------------------------------
终端直接运行 vmware 报错如下:
Logging to /tmp/vmware-root/modconfig-10370.log
ERROR: modinfo: could not find module vmmon
ERROR: modinfo: could not find module vmnet
ERROR: modinfo: could not find module vmblock
ERROR: modinfo: could not find module vmci
ERROR: modinfo: could not find module vsock
ERROR: modinfo: could not find module vmmon
ERROR: modinfo: could not find module vmnet
ERROR: modinfo: could not find module vmblock
ERROR: modinfo: could not find module vmci
ERROR: modinfo: could not find module vsock
ERROR: modinfo: could not find module vmmon
ERROR: modinfo: could not find module vmnet
ERROR: modinfo: could not find module vmblock
ERROR: modinfo: could not find module vmci
ERROR: modinfo: could not find module vsock
ERROR: modinfo: could not find module vmmon
ERROR: modinfo: could not find module vmnet
ERROR: modinfo: could not find module vmblock
ERROR: modinfo: could not find module vmci
ERROR: modinfo: could not find module vsock
ERROR: modinfo: could not find module vmmon
ERROR: modinfo: could not find module vmnet
ERROR: modinfo: could not find module vmblock
ERROR: modinfo: could not find module vmci
ERROR: modinfo: could not find module vsock
ERROR: modinfo: could not find module vmmon
ERROR: modinfo: could not find module vmnet
ERROR: modinfo: could not find module vmblock
ERROR: modinfo: could not find module vmci
ERROR: modinfo: could not find module vsock
Stopping VMware services:
VMware Authentication Daemon done
VM communication interface socket family done
Virtual machine communication interface done
Virtual machine monitor done
Blocking file system done
Using 2.6.x kernel build system.
make:进入目录'/tmp/vmware-root/modules/vmmon-only'
make -C /lib/modules/3.2.0-5-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: 正在进入目录 `/usr/src/linux-headers-3.2.0-5-generic'
CC [M] /tmp/vmware-root/modules/vmmon-only/linux/driver.o
CC [M] /tmp/vmware-root/modules/vmmon-only/linux/driverLog.o
CC [M] /tmp/vmware-root/modules/vmmon-only/linux/iommu.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/comport.o
CC [M] /tmp/vmware-root/modules/vmmon-only/common/cpuid.o
CC [M] /tmp/vmware-root/modules/vmmon-only/common/hashFunc.o
CC [M] /tmp/vmware-root/modules/vmmon-only/common/memtrack.o
CC [M] /tmp/vmware-root/modules/vmmon-only/common/phystrack.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/vmcore/moduleloop.o
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c: 在函数‘IOMMU_AdjustMappings’中:
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:180:4: 错误: 隐式声明函数‘iommu_found’ [-Werror=implicit-function-declaration]
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c: 在函数‘IOMMU_RegisterDevice’中:
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:415:7: 错误: 提供给函数‘iommu_domain_alloc’的实参太少
include/linux/iommu.h:68:29: 附注: 在此声明
cc1:有些警告被当作是错误
make[2]: *** [/tmp/vmware-root/modules/vmmon-only/linux/iommu.o] 错误 1
make[2]: *** 正在等待未完成的任务....
make[1]: *** [_module_/tmp/vmware-root/modules/vmmon-only] 错误 2
make[1]:正在离开目录 `/usr/src/linux-headers-3.2.0-5-generic'
make: *** [vmmon.ko] 错误 2
make:离开目录“/tmp/vmware-root/modules/vmmon-only”
-----------------------------
网上找了半天,说有一个什么patch文件,
VMware-Workstation-Full-7.1.4-385536.i386.bundle
可是那个是对应 vmware 7.14 的
各位高手帮帮忙啊~~~~~~~~~
linjhl 于 2012-04-03 23:13:56发表:
vmware的功能是很多,不过有时候安装不是很顺利,现在都是用Oracle VM VirtualBox,也有快照功能了
pabc53 于 2012-04-01 16:15:09发表:
只呀,我也遇到了,该如何解决呢!