http://tc.itkee.com/os/detail-d79.html

 

在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
開始安裝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

問題3:系統無法進入X Window
Undefined 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)點擊“設置”選項卡,選擇需要設置的分辨率,點“確定”保存修改。
重啓系統,大功告成!

arrow
arrow
    文章標籤
    Linux Vmware
    全站熱搜

    m1016c 發表在 痞客邦 留言(0) 人氣()