您的位置:首页 > Web前端

Fedora 7上安装VMware Tools

2008-03-13 11:07 106 查看
花了一天时间安装vmware tools

首先说明一下软件情况:
vmware workstation 5.5.1
FC7

依照前一篇文章的做法,一步步按照默认的设置下来,出现错误:
What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include]
The path "/usr/src/linux/include" is not an existing directory.
查看目录/usr/src/ 根本没有linux这个目录
只有/usr/src/redhat

google/baidu解决方案:
1. 用vmware-any-any-update109打补丁
很不幸,下载完后,解压 安装出错

[root@localhost vmware-any-any-update109]# ./runme.pl
Unable to open the installer database /etc/vmware/locations in read-mode.

Execution aborted.

2. 继续google:有人说是kernel-source 没有安装
用RPM命令查看一下
[root@localhost ~]# rpm -q kernel-source
package kernel-source is not installed
....
(接下来便是漫长而痛苦又无用的kernel source 安装过程
不写了--因为在这里是无用功—)

3. 第三种方案是安装kernel devel包
先查看内核版本号
[root@localhost ~]# uname -r
2.6.20-2925.9fc7xen
[root@localhost ~]# rpm -q kernel-xen-devel
package kernel-xen-devel is not installed

这是Xen的内核,所以,要安装对应版本号的 kernel-xen-devel rpm包:
kernel-xen-devel-2.6.20-2925.9.fc7.i686.rpm
下载地址:http://hany.sk/~hany/RPM/f-7-i386/kernel-xen-devel-2.6.20-2925.9.fc7.i686.html

安装:
[root@localhost ~]# rpm -ivh kernel-xen-devel-2.6.20-2925.9.fc7.i686.rpm
完成安装后,在/usr/src/下已经多出了一个kernels目录
[root@localhost ~]# cd /usr/src/
[root@localhost src]# ls
kernels redhat
[root@localhost src]# cd kernels
[root@localhost kernels]# ls
2.6.20-2925.9.fc7xen-i686

表明kernel-xen-devel已经装好了
再次使用vmware-install.pl安装,还是出错:
What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include]
The path "/usr/src/linux/include" is not an existing directory.
如果手动改目录为:/usr/src/kernels/2.6.20-2925.9.fc7xen-i686/include,会出现错误:
The directory of kernel headers (version 2.6.20-2925.9.fc7xen) does not match your running kernel (version 2.6.20-2925.9.fc7xen). Even if the module were tocompile successfully, it would not load into the running kernel.

-----------------------------------------------------------------------------------------------
我怀疑是不是vmware 版本低,不支持2.6.20-2925.9?
要知道,vmware tools可是VMwareTools-5.5.1-19175~~~~
换vmware workstation 6.0.0
其vmware tools 为VMwareTools-6.0.0-45731

./vmware-install.pl

就一直enter,装完VMware Tools
(可自动找到配套的the directory of C header files了,哈)

在安装的最后阶段,会出现:
Do you want to change your guest X resolution? (yes/no) [no] y

Please choose one of the following display sizes (1 - 13):

[1] "640x480"
[2]< "800x600"
[3] "1024x768"
[4] "1152x864"
[5] "1280x800"
[6] "1152x900"
[7] "1280x1024"
[8] "1376x1032"
[9] "1400x1050"
[10] "1680x1050"
[11] "1600x1200"
[12] "1920x1200"
[13] "2364x1773"

Please enter a number between 1 and 13:

[3]

重启系统,OK了

如果重启后报X-WINDOWS出错,参考网上设置

进入/etc/X11/,用文本打开xorg.conf,加上以下几段:

Section "Monitor"

Identifier "vmware"

EndSection

Section "InputDevice"

Identifier "Mouse0"

Driver "vmmouse"

Option "Protocol" "Auto"

Option "Device" "/dev/input/mouse0"

EndSection

然后找到 含有"ServerLayout" 的section, 在Section跟EndSection之间加上以下一行。

InputDevice "Mouse0" "CorePointer"

BTW,
我的xorg.conf文件里的选项设置默认为:

# Xorg configuration created by system-config-display

Section "ServerLayout"
Identifier "single head configuration"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "VMMouse" "CorePointer"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "VMMouse"
Driver "vmmouse"
Option "Device" "/dev/input/mice"
Option "Emulate3Buttons" "yes"
EndSection

Section "Monitor"
Identifier "vmware"
VendorName "VMware, Inc"
HorizSync 1.0 - 10000.0
VertRefresh 1.0 - 10000.0
EndSection

Section "Device"
Identifier "VMware SVGA"
Driver "vmware"
EndSection
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: