安装WMware Tools

来源:互联网 发布:联想安装mac os 编辑:程序博客网 时间:2024/05/21 21:37

Linux发行版是Feroda9,VMware的版本是7.0.1,安装步骤如下:

1.启动Linux系统,并且以root的身份登陆
2.在VMware虚拟机的菜单中,点击:VM->install VMware Tools
3.这时候虚拟机的光驱会自动加载VWware安装目录下的linux.iso镜像,Linux系统也会自动挂载VMwareTools的虚拟光驱,并显示在桌面

4.进入VMwareTools的虚拟光驱里,把VMwareTools-8.1.4-227600.tar.gz复制到/tmp目录。

5.进入/tmp目录,把VMwareTools-8.1.4-227600.tar.gz解压到当前目录下,生成了vmware-tools-distrib目录
6.进入vmware-tools-distrib目录,执行vmware-install.pl文件(./vmware-install.pl)
7.接下来的配置中,遇到[yes]、[no]、[yes/no]的一般都是输入yes后按回车键,具体看信息说明,遇到其他的直接按回车键即可,最后选择合适的屏幕分辨率。

8.安装成功后,在VMware虚拟机的菜单中,点击:VM->Settings->Options->SharedFolders->ADD,选择Window下用来与Linux系统共享的文件夹,并在上面的复选框中选择AlwaysEnabled即可

9.在Linux系统中,进入/mnt/hgfs目录下,就会发现上步骤中设置共享的Linux文件夹。

 

在安装过程中,出现如下的问题:

1.终端上显示:

Before you cancompile modules, you need to have the following installed...
make
gcc
kernel headers of the running kernel

Searching for GCC...
The path "" is not valid path to the gcc binary.
Would you like to change it? [yes]

怎么路径为""呢,原来在虚拟机linux系统里GCC,没有安装

在WMware中重新加载当时装Fedora9时的镜像文件,在安装盘里把gcc*.rpm都安装。方法是把这些文件复制到随便一个地方,然后再打开一个终端,进入这个目录,输入以下命令:

rpm -ivh gcc*.rpm --nodeps

 

2.终端上显示:
Searching for GCC...
Detected GCC binary at "/usr/bin/gcc".
The path "/usr/bin/gcc" appears to be valid path to the gcc binary.
Would you like to change it? [no]

Searching for valid kernel header path...
The path "" is not valid.
Would you like to change it? [yes]

What is the location of the directory of header files that match your running
kernel?

说明没有安装内核头文件

如果能上网的话,可直接在线安装,输入以下命令:

yum -y install kernel-devel

安装完kernel-devel后重启一下计算机,因为此时的系统检测的内核仍为启动时的内核版本,重新安装下WMwareTools工具。

0 0