分类:
2012-04-13 19:27:06
原文地址:Linux系统管理之安装VMWareTools 作者:8866xiang
1.安装工具。让虚拟机运行于窗口状态,不要全屏,按Ctrl+Alt让鼠标释放出来。在VMware的菜单栏上选择"虚拟机/安装虚拟机工具(VM/Install VMware Tools...)"。然后切换到客户操作系统,即Linux。
2.挂载光盘。
#mkdir /mnt/cdrom
# mount /dev/cdrom /mnt/cdrom
3.执行命令。进入虚拟光盘,可以看到有两个文件,一个是压缩包,一个为rpm包。直接运行rpm包安装,命令行也可。rpm -Uvh VMwareTools-版本号-版本号.i386.rpm
# cd /mnt/cdrom
# ls -l
有两上文件 :
VMwareTools-5.5.1-19175.i386.rpm
VMwareTools-5.5.1-19175.tar.gz
并把这两个文件拷贝到你的文件下 如 /tmp
#cp VMwareTools-5.5.1-19175.tar.gz /tmp
#cp VMwareTools-5.5.1-19175.i386.rpm /tmp
#cd /tmp
#rpm -ivh VMwareTools-5.5.1-19175.i386.rpm
4.上述操作完成后,进入/usr/bin目录,查找vmware-config-tools.pl.找到后,运行它。
5.一路回车
6.
#tar -xzvf VMwareTools-5.5.1-19175.tar.gz
#cd vmware-tools-distrib
#./vmware-install.pl
Creating a new installer database using the tar3 format.
Installing the content of the package.
# 安装过程的画面,全部使用默认值,一直按 Enter 就对了
In which directory do you want to install the binary files?
[/usr/bin]
What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc/rc.d]
What is the directory that contains the init scripts?
[/etc/rc.d/init.d]
In which directory do you want to install the daemon files?
[/usr/sbin]
In which directory do you want to install the library files?
[/usr/lib/vmware-tools]
Thepath "/usr/lib/vmware-tools" does not exist currently. This program isgoingto create it, including needed parent directories. Is this whatyou want?
[yes]
In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools]
Thepath "/usr/share/doc/vmware-tools" does not exist currently. Thisprogram isgoing to create it, including needed parent directories. Isthis what you want?
[yes]
The installation of VMware Tools 5.5.1 build-19175 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".
Before running VMware Tools for the first time, you need to configure it by
invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want
this program to invoke the command for you now? [yes]
Stopping VMware Tools services in the virtual machine:
Guest operating system daemon: [ 确定 ]
Trying to find a suitable vmhgfs module for your running kernel.
The module bld-2.6.9-5.EL-i686-RHEL4 loads perfectly in the running kernel.
pcnet32 30153 0
Unloading pcnet32 module
Trying to find a suitable vmxnet module for your running kernel.
The module bld-2.6.9-5.EL-i686-RHEL4 loads perfectly in the running kernel.
Detected X.org version 6.8.
关闭控制台鼠标服务: [ 确定 ]
启动控制台鼠标服务: [ 确定 ]