在CentOS 5.5系统中安装VMware Tools

在VMware中安装了CentOS 5.5,可是屏幕分辨率只能设置为800X600,在网上搜了解决方法,需要安装VMware Tools,安装的过程中,遇到的问题及其解决的方法,记录如下:

一、VMware Tools在哪里?
先启动CentOS系统,进入到系统后,在VMware Workstation的主菜单,
选择VM,Install VMware Tools,在弹出的对话框中选择install
如果不先启动CentOS系统,Install VMware Tools菜单是灰色的哦。

二、如何安装VMware Tools ?
双击计算机,双击打开CD-ROM驱动器。
将VMware Tools-5.5.3-34685.tar.gz拷贝到桌面。打开终端
[root@localhost ~]#cd Desktop
[root@localhost Desktop]# tar zxvf VMwareTools-5.5.3-34685.tar.gz
[root@localhost Desktop]#cd vmware-tools-distrib
[root@localhost vmware-tools-distrib]#./vmware-install.pl (安装时如果当前用户不是管理员root的话,需要输入su获取管理员权限)
开始安装VMware Tools,一路回车往下走。
配置X windows,输入yes并回车:
Do you want to change your guest X resolution?(yes/no) [no] yes
选择显示屏幕大小,好了,重新启动!

三、遇到的3个问题
问题1:What is the location of the "gcc" program on your machine?
The answer "" is invalid. It must be the complete name of a binary file.
回车,屏幕一直打印该信息,原因是我装系统的时候没安装开发工具。
解决方法:在VMware中插入CentOS的DVD映像,在CentOS系统中点击“应用程序”,添加/删除软件,将“开发”->“开发工具”选中,应用。
问题2:What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include]
解决方法:升级 gcc & kernel,使用如下的两个命令
yum -y install gcc gcc-c++ kernel-devel
yum -y update kernel

[root@localhost vmware-tools-distrib]# yum -y install gcc gcc-c++ kernel-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: centos.candishosting.com.cn
* base: centos.mirror.cdnetworks.com
* extras: centos.candishosting.com.cn
* updates: centos.ustc.edu.cn
Setting up Install Process
Package gcc-4.1.2-48.el5.i386 already installed and latest version
Package gcc-c++-4.1.2-48.el5.i386 already installed and latest version
Package kernel-devel-2.6.18-194.11.1.el5.i686 already installed and latest version
Nothing to do
不需要更新!
[root@localhost vmware-tools-distrib]# yum -y update kernel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: centos.candishosting.com.cn
* base: centos.mirror.cdnetworks.com
* extras: centos.candishosting.com.cn
* updates: centos.ustc.edu.cn
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package kernel.i686 0:2.6.18-194.11.1.el5 set to be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================
Package Arch Version                      Repository       Size
================================================
Installing:
Kernel    i686 2.6.18-194.11.1.el5          updates          17 M
Transaction Summary
================================================
Install       1 Package(s)
Upgrade       0 Package(s)
Total download size: 17 M
Downloading Packages:
kernel-2.6.18-194.11.1.el5.i686.rpm                      | 17 MB     01:19    
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing     : kernel                                                   1/1
Installed:
kernel.i686 0:2.6.18-194.11.1.el5                                            
Complete!
完成更新!
重启系统,重新运行vmware-install.pl
[root@localhost vmware-tools-distrib]#./vmware-install.pl

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/25529.html