[Ubuntu 8.04]VMware 6.5不能加载VMCI 不能使用Unity
-
- 帖子: 79
- 注册时间: 2007-08-21 14:02
[Ubuntu 8.04]VMware 6.5不能加载VMCI 不能使用Unity
相关出错信息
filename: /lib/modules/2.6.24-12-generic/misc/vmci.ko
description: VMware Virtual Machine Communication Interface (VMCI).
author: VMware, Inc.
srcversion: FD14186FA488E3B3704D7DC
depends:
vermagic: 2.6.24-12-generic SMP mod_unload 586
modinfo: could not find module vsock
filename: /lib/modules/2.6.24-12-generic/misc/vmci.ko
description: VMware Virtual Machine Communication Interface (VMCI).
author: VMware, Inc.
srcversion: FD14186FA488E3B3704D7DC
depends:
vermagic: 2.6.24-12-generic SMP mod_unload 586
modinfo: could not find module vsock
VM communication interface socket family: failed
filename: /lib/modules/2.6.24-12-generic/misc/vmci.ko
description: VMware Virtual Machine Communication Interface (VMCI).
author: VMware, Inc.
srcversion: FD14186FA488E3B3704D7DC
depends:
vermagic: 2.6.24-12-generic SMP mod_unload 586
modinfo: could not find module vsock
filename: /lib/modules/2.6.24-12-generic/misc/vmci.ko
description: VMware Virtual Machine Communication Interface (VMCI).
author: VMware, Inc.
srcversion: FD14186FA488E3B3704D7DC
depends:
vermagic: 2.6.24-12-generic SMP mod_unload 586
modinfo: could not find module vsock
filename: /lib/modules/2.6.24-12-generic/misc/vmci.ko
description: VMware Virtual Machine Communication Interface (VMCI).
author: VMware, Inc.
srcversion: FD14186FA488E3B3704D7DC
depends:
vermagic: 2.6.24-12-generic SMP mod_unload 586
modinfo: could not find module vsock
VM communication interface socket family: failed
filename: /lib/modules/2.6.24-12-generic/misc/vmci.ko
description: VMware Virtual Machine Communication Interface (VMCI).
author: VMware, Inc.
srcversion: FD14186FA488E3B3704D7DC
depends:
vermagic: 2.6.24-12-generic SMP mod_unload 586
modinfo: could not find module vsock
-
- 帖子: 79
- 注册时间: 2007-08-21 14:02
Oh, I find the answer
sudo su
echo 134217728 > /proc/sys/kernel/shmmax
The Unity Mode is so slow ...............
echo 134217728 > /proc/sys/kernel/shmmax
The Unity Mode is so slow ...............
-
- 帖子: 232
- 注册时间: 2006-10-08 22:20
-
- 帖子: 232
- 注册时间: 2006-10-08 22:20
-
- 帖子: 119
- 注册时间: 2007-10-06 21:37
-
- 帖子: 1
- 注册时间: 2007-12-09 16:44
- relaxssl
- 帖子: 1448
- 注册时间: 2007-01-30 7:13
这个可行? 命令表示什么意思呢,是不是说让它在兼容模式下运行?经过测试,这条命令并不能解决问题,仍旧提示VMCI Socket的感叹。wsxsgy 写了:运行 sudo vmware-config.pl --compil.
linux@linux-desktop:~$ sudo vmware-config.pl --compil
[sudo] password for linux:
Use of uninitialized value in concatenation (.) or string at /usr/bin/vmware-config.pl line 2090.
VMware Workstation e.x.p build-84113 for configurator
Usage: /usr/bin/vmware-config.pl [[-][-]d[efault]] [[-][-]c[ompile]]
[[-][-]p[rebuilt]] [[-][-]t[ry-modules]] [[-][-]p[reserve]]
[[-][-]o[verwrite][[-][-]m[odules-only]] [[-][-]k[ernel-version] version]
. default: Automatically answer questions with the proposed answer.
. compile: Force the compilation of kernel modules.
. prebuilt: Force the use of pre-built kernel modules.
. try-modules: Try to load all the compatible modules . preserve: Always
preserve user-modified configuration files.
. overwrite: Always overwrite user-modified configuration files.from the VMware
Workstation package.
. modules-only: Only build/install kernel modules, skip all other configuration
steps.
. kernel-version: Build/install modules for the given kernel version instead of
the running one, implies modules-only, skip-stop-start and compile.
Command line arguments: The acceptable characters are:
the letters A, B, C, ...,
the letters a, b, c, ...,
the numbers 0, 1, 2, ...,
and the special characters '_' and '-' and '='.
linux@linux-desktop:~$
-
- 帖子: 58
- 注册时间: 2008-04-13 13:13
这位仁兄说的对, 这个error是因为Ubuntu 8.04 "hardy"的2.24kernel太新,6.5不知道如何编译自己的vsockets.czk 写了:VM communication interface socket family: failed
这个错误只要把源代码中的某一行注释了就可以了。现在忘记是哪一行了,我已经卸载了
所以 应该
$ tar xf /usr/lib/vmware/modules/source/vsock.tar
解压vsock的code
进入解压好的文件夹
$ cd vsock-only
然后把所有c源代码里的
#include <linux/autoconf.h>去掉
可以手动
也可以用
$ sed -i 's/^\#include <linux\/autoconf\.h>//' autoconf/*.c
autoconf文件可以告诉vmware哪一些服务可用
下一步编译
$ make
最后复制.o文件复制到vmware的启动文件里
$ sudo cp vsock.o /lib/modules/$(uname -r)/misc
$ sudo ln -s vsock.o /lib/modules/$(uname -r)/misc/vsock.ko
$ sudo depmod -a
然后关掉vmware 重新打开,问题应该解决了,速度嗷嗷快!
不过这个方法并没有解决问题,如果你用命令行模式启动那个服务还是failed
但是如果通过图形界面启动就没有问题提示了
最关键的好处是,当那个错误存在的时候为了编译它,vmware会问你要root密码,这是很危险的(vmware官方警告说无论如何不要用root启动,可能伤害你的host)。所以只要不需要编译了,你每次开的时候就不需要root权限.
-
- 帖子: 58
- 注册时间: 2008-04-13 13:13
这个命令好象是要编译源代码的relaxssl 写了:这个可行? 命令表示什么意思呢,是不是说让它在兼容模式下运行?经过测试,这条命令并不能解决问题,仍旧提示VMCI Socket的感叹。wsxsgy 写了:运行 sudo vmware-config.pl --compil.
linux@linux-desktop:~$ sudo vmware-config.pl --compil
[sudo] password for linux:
Use of uninitialized value in concatenation (.) or string at /usr/bin/vmware-config.pl line 2090.
VMware Workstation e.x.p build-84113 for configurator
Usage: /usr/bin/vmware-config.pl [[-][-]d[efault]] [[-][-]c[ompile]]
[[-][-]p[rebuilt]] [[-][-]t[ry-modules]] [[-][-]p[reserve]]
[[-][-]o[verwrite][[-][-]m[odules-only]] [[-][-]k[ernel-version] version]
. default: Automatically answer questions with the proposed answer.
. compile: Force the compilation of kernel modules.
. prebuilt: Force the use of pre-built kernel modules.
. try-modules: Try to load all the compatible modules . preserve: Always
preserve user-modified configuration files.
. overwrite: Always overwrite user-modified configuration files.from the VMware
Workstation package.
. modules-only: Only build/install kernel modules, skip all other configuration
steps.
. kernel-version: Build/install modules for the given kernel version instead of
the running one, implies modules-only, skip-stop-start and compile.
Command line arguments: The acceptable characters are:
the letters A, B, C, ...,
the letters a, b, c, ...,
the numbers 0, 1, 2, ...,
and the special characters '_' and '-' and '='.
linux@linux-desktop:~$
-
- 帖子: 58
- 注册时间: 2008-04-13 13:13