[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: insmod出现Segmentation fault



在 2007年6月19日 星期二,OlerMoose 写道:
> 在安装vmware workstation 5.5的过程中,Building the vmmon module不通过。The screen
> echos:sh: line 1:  5595 Segmentation fault      'insmod' -p
> '/tmp/vmware-config6/vmmon.o' >/dev/null 2>&1Unable to make a vmmon module
> that can be loaded in the running kernel:There is probably a slight
> difference in the kernel configuration between theset of C header files you
> specified and your running kernel.  You may want torebuild a kernel based
> on that directory, or specify another directory.For more information on how
> to troubleshoot module-related problems, pleasevisit our Web site at
> "http://www.vmware.com/download/modules/modules.html";
> and"http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.ht
>ml".Execution aborted.
>
> 感觉是insmod的问题,查找Segmentation fault相关的网页,皆语焉不详,特请教各位。
> _________________________________________________________________
> 使用下一代的 MSN Messenger。
> http://imagine-msn.com/messenger/launch80/default.aspx?locale=zh-cn&source=
>wlmailtagline

我在安装vmware server的过程中也遇到了这样的问题, 我的解决方式如下:

1 将/usr/lib/vmware/modules/source/目录下的vmmon.tar, 和vmnet.tar分别单独复制到/tmp目录下, 手工生
成vmmon.ko和vmnet.ko模块. 
2 将vmmon.ko和vmnet.ko文件复制到到/lib/modules/`uname -r`/kernel/drivers/misc下, 然后运行
depmod -ae 
3 使用modprobe vmmon和modprobe vmnet分别测试这两个模块工作正常. 
4 修改vmware-config.pl脚本中的try_module函数, 让其直接返回0, 运行vmware-config.pl, 正常退出
5 修改/etc/init.d/vmware中的vmware_load_module()函数为

vmware_load_module() {
   /sbin/modprobe $1
   #/sbin/insmod -s -f "/lib/modules/`uname -r`/misc/$1.o" || exit 1
   exit 0
}
运行/etc/init.d/vmware start 启动vmware后台服务. 

我的系统内核版本为2.6.21-1-k7, vmware server版本为1.0.3 build-44356, 安装过程中好像还遇到了vmmon无法编译的
问题, 下载安装vmware-any-any-update110才得以解决. 

-- 
====================
When You Learn, Teach;
When You Get, Give.
Http://bluestone.cublog.cn
====================

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: