[原创] 在8.04中安装vmware server 2.0过程

Kvm、VMware、Virtualbox、Xen、Qemu 等
回复
rainew
帖子: 10
注册时间: 2008-08-13 9:59

[原创] 在8.04中安装vmware server 2.0过程

#1

帖子 rainew » 2008-08-19 12:02

现在系统版本是 2.6.26-5-generic #1 SMP Fri Aug 15 13:54:22 UTC 2008 x86_64 GNU/Linux
,foxmail版本是Firefox/3.0.1,vmware2.0版本是VMware-server-2.0.0-101586.x86_64,经过了一些曲折,安装成功,并在vm虚拟机中安装了deepxp5.9版本,除xp无法认出u盘外其它功能正常。安装前我尝试过1.6版本的,但是32位版本的,我一直无法安装成功,无法加载32位库,正好2.0版本出来了,虽然是beta版本,但不是极限使用,应该不会出现问题。

安装过程如下:
1、到vm的官方网站上下载VMserver2.0,下载前要进行一大串的英文注册,我的英文很潮,借助星际才完成,完成注册后会提供两个sn,一个是window下的,另一个是linux下的,复制下来,后面要输入。
2、下载对应的安装报,我下的是VMware-server-2.0.0-101586.x86_64.tar.gz和VMware-vix-e.x.p-101586.x86_64.tar.gz,解压后进入解压目录用以下命令安装:./vmware-install.pl ,接下来就是一路的回车,中间会提示你是否要自己创建新的内网,想来是给net模使用的,我都采用了默认方式安装,其中会出现一个建立用户名的对话,我也是默认,这里让我走了第一个弯路,最后会要你输入sn,第一步申请的输入就可以了。
3、启动vmware,输入 vmware,会自动启动firefox,我的只有firefox浏览器,出现一个登录界面,我输入当前用户名和密码提示用户名和密码错误,root是不知道密码的,我查资料vm
server只能在root权限下运行,只好再修改root密码,用 sudo passwd root 设置了root的密码,这样就可以登录进去了,建立好了一个虚拟机,具体的建立方法就是next加next。
4、启动虚拟机的时候,firefox提示要安装一个consol插件,按照步骤安装,总是报firefox版本不对,我想自己的firefox是3.0.1,那么2.0就应该可以了,这里是第二个弯路,安装了2.0版本的,还是同样报版本错误,经过两天的baidu和google,终于在google英文中找到了如下的解决方法:

[Bug 249028] Re: VMware Remote Console Plug-in 2.5.0.100265 could not be installed because it is not compatible with Firefox 3.0.1.
PtY peti at szladovics.hu
Wed Jul 16 21:25:58 BST 2008


Dear Wayne,

I think, it isn't a bug, mainly not an ubuntu and/or firefox bug, neither a vmware bug.
There is an install.rdf file in extension-file (jar/xpi), wich is contains the informations about the destination requirements (e.g. minimum/maximum version number of firefox versions).
In the xpi file what is distributed by VMware the limits are 1.0 as minimum, and 3.0 as maximum, so, you need the edit it, before install into your browser.
Find the following file(s) on your vmware host:
/usr/lib/vmware/webAccess/tomcat/apache-tomcat-<VERSION>/webapps/ui/plugin/vmware-vmrc-linux-x86.xpi
or /usr/lib64/... or vmware-vmrc-linux-x64.xpi.
Expand it (them) with unzip into a temporary directory, or open it (them) with midnight commander.
Find the install.rdf file in the root of this directory, and edit it with your favorite editor.
Modify the <em:maxVersion>3.0.0.*</em:maxVersion> line to <em:maxVersion>3.0.5.*</em:maxVersion>.
Save the file, and repack this directory with zip into a new archive with same name and extension (e.g. vmware-vmrc-linux-x64.xpi). (or just close the opened archive by mc)
Replace the original file with the new one (of course you need to back up the original versions).
After this step you can reinstall the extension through vmware UI without any problem.


这段话最关键:
In the xpi file what is distributed by VMware the limits are 1.0 as minimum, and 3.0 as maximum, so, you need the edit it, before install into your browser.
Find the following file(s) on your vmware host:
/usr/lib/vmware/webAccess/tomcat/apache-tomcat-<VERSION>/webapps/ui/plugin/vmware-vmrc-linux-x86.xpi
or /usr/lib64/... or vmware-vmrc-linux-x64.xpi.

我安照上面的方法找到了这个文件 vmware-vmrc-linux-x86.xpi用归档管理器打开,找到 install.rdf文件,把 <em:maxVersion>3.0.0.*</em:maxVersion> 修改为 <em:maxVersion>3.0.5.*</em:maxVersion>.就可以了,这个文件要root权限才能被覆盖,我是拷贝到tmp文件夹下修改,再在终端模式下覆盖,就能够正常安装consol插件了。
4、安装windows.iso,我是用deepxp.iso,xp系统用虚拟光区加载安装,安装完毕后我的鼠标只有右键有效,左键失灵,方向键只能用与数字键中的,安装window.iso文件的时候,需要在光驱中再次加载windows.iso,我把window.iso文件拷贝到虚拟xp系统文件夹目录中去加载,在summary界面中单击安装window.iso,就可以自动安装,重新启动后,鼠标键盘正常。安装文件在这个目录/var/lib/vmware/Virtual Machines。【安装版&克隆版】深度技术XP双重版V5.9.iso和windows.iso我也放在了这个目录中。

5、到今天用ubuntu还没有20天,转到ubuntu是因为在xp下面用了一把vmworkstation虚拟linux,感觉太好了,看了vm的产品线,决定linux+vmserver(免费)虚拟xp用来工作生活两不误,也极度痛恨xp的病毒木马,优化,崩溃。02年就想拥抱linux,今天得以成行,惭愧,以上很多都是参考网络各位前辈的资料,在此就一并感谢了,因为用linux时间太短,很多命令就是copy下来就用,没有深度理解,如有错误和缺失的地方,请大家多多指点,多多关照。
6、再一次谢谢无私贡献资料的前辈们!!谢谢!!

7、请问大家一个问题:VMware-vix-e.x.p-101586.x86_64.tar.gz文件具体的作用是什么,我看vm的说明是一个类似于补丁包,但是我没有安装,在已经安装好的vm文件中却能找到这个包的解压文件。
rainew
帖子: 10
注册时间: 2008-08-13 9:59

#2

帖子 rainew » 2008-08-25 16:51

虚拟xp启动后,需要占用300m的swap。建议swap有1g的空间。
rainew
帖子: 10
注册时间: 2008-08-13 9:59

升级到内核到2.6.27-2后出现的问题

#3

帖子 rainew » 2008-09-01 15:05

升级到内核到2.6.27-2后出现的问题,在升级前我的系统因为安装nvidia驱动gnome崩溃了一次,最后被我搞的一蹋糊涂,只好重新安装系统了,安装后内核升级到了2.6.27-2,发现vmserver无法安装,出错信息如下:
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config1/vmmon-only'
make -C /lib/modules/2.6.27-2-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.27-2-generic'
CC [M] /tmp/vmware-config1/vmmon-only/linux/driver.o
In file included from /tmp/vmware-config1/vmmon-only/./include/x86.h:38,
from /tmp/vmware-config1/vmmon-only/linux/driver.h:29,
from /tmp/vmware-config1/vmmon-only/linux/driver.c:101:
/tmp/vmware-config1/vmmon-only/./include/x86paging.h:76:1: warning: "PTE_PFN_MASK" redefined
In file included from include/asm/pda.h:8,
from include/asm/current.h:19,
from include/asm/processor.h:15,
from include/linux/prefetch.h:14,
from include/linux/list.h:6,
from include/linux/module.h:9,
from /tmp/vmware-config1/vmmon-only/./include/compat_module.h:27,
from /tmp/vmware-config1/vmmon-only/linux/driver.c:26:
include/asm/page.h:22:1: warning: this is the location of the previous definition
In file included from /tmp/vmware-config1/vmmon-only/linux/vmhost.h:27,
from /tmp/vmware-config1/vmmon-only/linux/driver.c:121:
/tmp/vmware-config1/vmmon-only/./include/compat_semaphore.h:23:27: error: asm/semaphore.h: 没有该文件或目录
/tmp/vmware-config1/vmmon-only/linux/driver.c: In function ‘LinuxDriverSyncCallOnEachCPU’:
/tmp/vmware-config1/vmmon-only/linux/driver.c:1420: error: too many arguments to function ‘smp_call_function’
/tmp/vmware-config1/vmmon-only/linux/driver.c: In function ‘LinuxDriver_Ioctl’:
/tmp/vmware-config1/vmmon-only/linux/driver.c:2006: error: too many arguments to function ‘smp_call_function’
make[2]: *** [/tmp/vmware-config1/vmmon-only/linux/driver.o] 错误 1
make[1]: *** [_module_/tmp/vmware-config1/vmmon-only] 错误 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.27-2-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/go/unsup-linux-products" and
"http://www.vmware.com/go/unsup-linux-tools".

Execution aborted.
这个bug已经有人提交,详细的见链接:http://www.mail-archive.com/ubuntu-bugs ... 89406.html

[Bug 227484]

我升级后保留了2.6.24的内核,在这个内核下运行没有问题。
回复