在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-develyum -y update kernel

[root@localhost vmware-tools-distrib]# yum -y install gcc gcc-c++ kernel-develLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfile* addons: centos.candishosting.com.cn* base: centos.mirror.cdnetworks.com* extras: centos.candishosting.com.cn* updates: centos.ustc.edu.cnSetting up Install ProcessPackage gcc-4.1.2-48.el5.i386 already installed and latest versionPackage gcc-c++-4.1.2-48.el5.i386 already installed and latest versionPackage kernel-devel-2.6.18-194.11.1.el5.i686 already installed and latest versionNothing to do不需要更新![root@localhost vmware-tools-distrib]# yum -y update kernelLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfile* addons: centos.candishosting.com.cn* base: centos.mirror.cdnetworks.com* extras: centos.candishosting.com.cn* updates: centos.ustc.edu.cnSetting up Update ProcessResolving Dependencies–> Running transaction check—> Package kernel.i686 0:2.6.18-194.11.1.el5 set to be installed–> Finished Dependency ResolutionDependencies Resolved================================================Package Arch Version Repository Size================================================Installing:Kernel i686 2.6.18-194.11.1.el5 updates 17 MTransaction Summary================================================Install 1 Package(s)Upgrade 0 Package(s)Total download size: 17 MDownloading Packages:kernel-2.6.18-194.11.1.el5.i686.rpm | 17 MB 01:19 Running rpm_check_debugRunning Transaction TestFinished Transaction TestTransaction Test SucceededRunning TransactionInstalling : 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

问题3:系统无法进入X WindowUndefined Monitor “vmware” referenced by Screen “Screen0”.原因:The OS configuration routine could not autodetect the monitor type and wrote a xorg.conf stub with no useful monitor data. The vmware-config-tools script then got confused and mixed monitor data with driver data, ruining the whole setup.解决方法:依次打开,系统->管理->显示,打开“显示设置”窗口。有两个地方需要设置:(1)点击“硬件”选项卡,点击“配置按钮”,将“显示器类型”调整为LCD Display下的相应选项;(2)点击“设置”选项卡,选择需要设置的分辨率,点“确定”保存修改。重启系统,大功告成!

那里面非常漂亮,个个观景区都能看到奇形怪状的岩石。

在CentOS 5.5系统中安装VMware Tools

相关文章:

你感兴趣的文章:

标签云: