- 论坛徽章:
- 0
|
在2.6.24.7-92fc8机子上安装vmware workstation6.0.3版本、出错、以及解决!
************************************************
注:后来我实践安装验证了V6.0.4版本的vmware workstation,
安装包为:VMware-workstation-6.0.4-93057.i386.tar.gz ,解压后cd 到解压目录vmware-distrib下,
运行vmware-install.pl
# ./vmware-install.pl
之后就是一路回车,顺风顺水。看来VMware-workstation-6.0.4已经修复了VMware-workstation-6.0.3的那个问题!
如果不愿麻烦,建议大家最好直接下载、安装VMware-workstation-6.0.4版本
省去了安装VMware-workstation-6.0.3所出现的以下麻烦!
********************************************
*********************************************
安装V6.0.3版本的vmware workstation 出错信息如下:
*********************************************
在其解压目录中执行:
#./vmware-install.pl
注:如果你不是以root方式登录的话用指令:
#sudo ./vmware-install.pl
一路回车,最后报错:
**********报错信息如下******************
在包含自 include/asm/bitops.h:2 的文件中
从 /tmp/vmware-config1/vmmon-only/./include/vcpuset.h:74,
从 /tmp/vmware-config1/vmmon-only/./include/modulecall.h:23,
从 /tmp/vmware-config1/vmmon-only/common/vmx86.h:18,
从 /tmp/vmware-config1/vmmon-only/common/hostif.h:18,
从 /tmp/vmware-config1/vmmon-only/common/cpuid.c:14:
include/asm/bitops_32.h:9:2: 错误: #error only
can be included directly
make[2]: *** [/tmp/vmware-config1/vmmon-only/common/cpuid.o] 错误 1
make[1]: *** [_module_/tmp/vmware-config1/vmmon-only] 错误 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-16-generic’
make: *** [vmmon.ko] 错误 2
make: Leaving directory `/tmp/vmware-config1/vmmon-only’
Unable to build the vmmon module.
For more information on how to troubleshoot module-related problems, please
visit our Web site at “http://www.vmware.com/download/modules/modules.html” and
“http://www.vmware.com/support/re ... _modules_linux.html”.
Execution aborted.
***************************************
网友给出的出错原因:
运行不了,这是由于内核太新,系统不认识vmware,需要vmware-any-any-update-116.tgz补丁。
***************具体解决办法****************
1、 下载vmware-any-any-update-116.tgz ,google下,很容易找到下载的(我这是时候总结的,下载链接记不请了啊)
2、 网上找到 http://www.miscreant.org/files/rpms/vmware-any-any-update-116.tgz,没有验证了!
3、 下载后解压tar -xzvf vmware-any-any-update-116.tgz
4、 进入解压后的目录cd vmware-any-any-update-116
5、 将vmmon.tar解包之后修改mmom-only/include下面的三个文件
第一个文件vmware-any-any-update116/vmmon-only/include下的vcpuset.h
将74行 #include “asm/bitops.h” 改为 #include “linux/bitops.h”
第二个文件vmware-any-any-update116/include/iocontrols_compat.h
将18行下的 #define VMMON_VERSION_V6 (161 About and click "Collect Support Data".
You can also run the "vm-support" script in the Workstation folder directly.
We will respond on the basis of your support entitlement.
同时,在你终端也会有错误提示信息:
Failed to allocate page for guest RAM!
********************
解决
********************
找了很久终于在一个老外的论坛http://forums.fedoraforum.org/showthread.php?p=906729里面找到了症结所在
*************引用******************
1、 Check in /etc or use locate to find your vmware config file then add this to it, at the bottom is fine,
save the file then start vmware and see if it helps.
Code:
mainMem.useNamedFile=FALSE
*********************************
翻译:在/etc或者/usr/local下找到vmware的config文件,在末尾加上 mainMem.useNamedFile=FALSE ,保存!
*******引用出错原因官方解释*****************
The official explanation:
VMware tries to use shared writable mmap for paging files from version 5.0 but it can't detect that it's not yet supported.
Workaround: Set "mainMem.useNamedFile=FALSE" in the .vmx file. It will disable paging files and VMware will work fine, often with much better performance.
Status: It's being worked on by kernel and FUSE developers but it will take many months to be production ready. VMware is also working on fixing their virtual machine.
***********************************
翻译成中文大意是:5.0版本的vmware试图使用共享的可写 内存映射区(mmap)进行文件分页(paging files),但是它不能检测到不支持文件分页。
解决方法:将mainMem.useNamedFile=FALSE添加在.vmx文件中,这样将禁止paging files(文件分页),vmware便可正常工作,甚至还会有更好的性能!
另一个论坛:http://ubuntuforums.org/archive/index.php/t-528614.html
**********引用***************
i think i found a workaround:
you need to set
mainMem.useNamedFile = "FALSE"
in your VMs vmx file.
this is because FUSE doesn`t support every type of mmap() system call variants.
*********************************
这句话的意思大概是:FUSE不支持mmap()类型系统调用(variants?)
还有一个中文帖子:http://www.lupaworld.com/43/viewspace_33499.html
***********引用**********************
要对vmx文件进行修改,增加以下一行内容:
mainMem.useNamedFile = "FALSE"
保存下 就可以启动了。
虚拟操作系统的文件夹里有一个vmx后缀的文件,虚拟机的安装目录里由 以 vmx 为后缀的文件的
***********************************
但是我怎么也找不到vmx文件这个文件!!!!
***********我的修改如下****************
1、 进入目录/etc/vmware(哈哈,我的就在正如老外提到的那个etc目录下面,如果你的没有找大这个目录的话,试试/usr/local)
2、 里面有个config的配置文本,打开,在最后处加 mainMem.useNamedFile=FALSE
************附录config 内容如下:***************
vmnet1.hostonlyaddress = "192.168.117.1"
product.version = "6.0.4"
control.fullpath = "/usr/bin/vmware-cmd"
authd.fullpath = "/usr/sbin/vmware-authd"
loop.fullpath = "/usr/bin/vmware-loop"
libdir = "/usr/lib/vmware"
vmware.fullpath = "/usr/bin/vmware"
product.buildnumber = "93057"
vmnet1.hostonlynetmask = "255.255.255.0"
dhcpd.fullpath = "/usr/bin/vmnet-dhcpd"
product.name = "VMware Workstation"
# Beginning of the block added by the VMware VIX software
vix.libdir = "/usr/lib/vmware-vix/lib"
# End of the block added by the VMware VIX software
mainMem.useNamedFile=FALSE ****此为我添加的!
***********************************************
3、 保存,再在虚拟机上power on,一切正常!
***************************问题解决
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/66601/showart_1019134.html |
|