centos安装vmware tools

 

如何在CentOS安裝VMWare Tools? [转载]+主机与虚拟机共享文件夹
2009-04-14 14:38

如何在CentOS安裝VMWare Tools?

Abstract

安裝VMWare Tools有很多優點,不過在CentOS下安裝比較麻煩,本文是我的安裝心得。

Introduction
使用環境 :
VMWare 6.0.2 + CentOS 5.1

安裝VMWare Tools有幾個優點:
1.可以支援其他解析度,不再侷限於640 x 480和800 x 600。
2.Host OS與Guest OS傳檔時,只需滑鼠拖曳即可。
3.滑鼠在Host OS與Guest OS切換時,不需再按Ctrl + Alt。

根 據以前的經驗,若Guest OS是Fedora與Windows XP時,只要在VMWare選VM -> Install VMWare Tools...,就會在桌面出現VMWare Tools圖示讓你安裝,但若Guest OS為CentOS時,桌面上並沒有任何圖示出現,請依照以下步驟為CentOS安裝VMWare Tools。

Step 1:
將VMWare的光碟機設定成C:\Program Files\VMware\VMware Workstation\linux.iso,VMWare Tools在這個iso檔內。

vmware_tools_centos_00.gif


Step 2:
進入CentOS桌面後,將光碟機打開,看到了VMWareTools-6.0.2-59824.i386.rpm與VMWareTools-6.0.2.59824.tar.gz。

vmware_tools_centos_01.gif


看到rpm你應該很興奮,因為CentOS與Fedora/RHEL師出同源,所以應該可以用,但經我測試結果,是可以安裝,安裝過程也沒有錯誤,但可惜安裝完沒有VMWare Tools該有的功能,所以只能用tarball來安裝了。

Step 3:
將VMWareTools-6.0.2.59824.tar.gz複製到home directory,進行解壓縮。

[ root@localhost ~ ] # tar zxvf VMwareTools- 6.0.2 - 59824 .tar.gz


Step 4:
進入解壓縮後的vmware-tools-distrib目錄

[ root@localhost ~ ] # cd vmware-tools-distrib/


Step 5:
執行vmware-install.pl安裝VMWare Tools

[ root@localhost vmware-tools-distrib ] # ./vmware-install.pl


之後出現很多問題,都接受預設值一直按enter即可,唯一問到螢幕解析度問題,若你想使用其他解析度,請自行設定如下:

Please choose one of the following display sizes that X will start with ( 1 -
15 ):

[ 1 ]    " 640x480 "
[ 2 ] < " 800x600 "
[ 3 ]    " 1024x768 "
[ 4 ]    " 1152x864 "
[ 5 ]    " 1280x800 "
[ 6 ]    " 1152x900 "
[ 7 ]    " 1280x1024 "
[ 8 ]    " 1376x1032 "
[ 9 ]    " 1400x900 "
[ 10 ]    " 1400x1050 "
[ 11 ]    " 1440x900 "
[ 12 ]    " 1680x1050 "
[ 13 ]    " 1600x1200 "
[ 14 ]    " 1920x1200 "
[ 15 ]    " 2364x1773 "
Please enter a number between
1 and 15 :

[ 2 ] 3


最後出現以下訊息,表示安裝成功。

X Window System Version 7.1.1
Release Date:
12 May 2006
X Protocol Version
11 , Revision 0 , Release 7.1.1
Build Operating System: Linux
2.6.9 - 67 .ELsmp i686 Red Hat , Inc.
Current Operating System: Linux localhost.localdomain
2.6.18 - 53.1.19 .el5 # 1 SMP Wed May 7 08 : 20 : 19 EDT 2008 i686
Build Date:
19 January 2008
Build ID: xorg-x11-server
1.1.1 - 48.26 .el5_1 .5
         Before reporting problems
, check http://wiki.x.org
         to make sure that you have the latest version.
Module Loader present
Markers: (--) probed
, (**) from config file , ( == ) default setting ,
         (++) from command line
, (!!) notice , (II) informational ,
         (WW) warning
, (EE) error , (NI) not implemented , (??) unknown.
(++) Log file:
" /tmp/vmware-config0/XF86ConfigLog.2977 " , Time: Fri Jun   6 15 : 14 : 32 2008
(++) Using config file:
" /tmp/vmware-config0/XF86Config.2977 "

X is running fine with the new config file.

FreeFontPath: FPE
" unix/:7100 " refcount is 2 , should be 1 ; fixing.
Starting VMware Tools services in the virtual machine:
    Switching to guest configuration:                       
[    確定   ]
    Guest filesystem driver:                                
[    確定   ]
    Mounting HGFS shares:                                   
[ 失敗 ]
    Guest memory manager:                                   
[    確定   ]
    Guest vmxnet fast network device:                       
[    確定   ]
    Blocking file system:                                   
[    確定   ]
    DMA setup:                                              
[    確定   ]
    Guest operating system daemon:                          
[    確定   ]

The configuration of VMware Tools
6.0.2 build- 59824 for Linux for this running
kernel completed successfully.

You must restart your X session before any mouse or graphics changes take
effect.

You can now run VMware Tools by invoking the following command:
" /usr/bin/vmware-toolbox " during an X server session.

To use the vmxnet driver
, restart networking using the following commands:
/etc/init.d/network stop
rmmod pcnet32
rmmod vmxnet
modprobe vmxnet
/etc/init.d/network start

To make use of the virtual printer
, you will need to restart the CUPS service

Enjoy
,

--the VMware team

重新啟動CentOS,你就會發現新的螢幕解析度出現,並且滑鼠不需再切換,且可使用拖曳的方式傳檔。


PS:主机与虚拟机共享文件方法

打开虚拟机设置(ctl+D)>选项>共享文件夹 启用,然后在右边选择“总是启用”,添加你要共享的文件(夹)就OK了。。

打开/mnt/hgfs就看到共享的文件了。

http://hi.baidu.com/%B5%F8%CB%C0%B2%BB%C0%AD%B5%B9/blog/item/86393917bccdc359f3de3207.html
centos安装vmware tools

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值