linux命令行安装VmwareTools(CentOS)

1、开机启动登录进入Linux命令行,然后点击

Vmware菜单栏上 VM -> Install VMware Tools

这个时候相当于VMtools的光盘就已经插入linux系统了,接下来要挂载光盘

2、挂载光盘

 cd /mnt
 mkdir cdrom
 mount /dev/cdrom /mnt/cdrom
 cd /mnt/cdrom
 有两个文件,一个是rpm,一个事tar.gz,你可以选择你喜欢的,我用rpm包

3、安装

rpm -ivh VM*********.rpm

或者用压缩包文件安装

cp VMwareTools-5.5.1-19175.tar.gz /tmp 
cd /tmp 
tar zxpf VMwareTools-5.5.1-19175.tar.gz 
cd vmware-tools-distrib 
[root@centos 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 programisgoingto create it, including needed parent directories. Is thiswhatyou 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. 

关闭控制台鼠标服务: [ 确定 ] 
启动控制台鼠标服务: [ 确定 ] 

Enjoy, 

--the VMware team 

[root@centos vmware-tools-distrib]# shutdown -r now 

# 修改完成之后,重新启动计算机,让 VMware Tools 生效

4、

设置共享就是在VM里设置了,VM→Setting→Options→SharedFolders→Add→选定要共享的文件夹并给这个文件夹命名→OK,vmware会把这个文件夹自动mount到/mnt/hgfs目录下,OK了!


郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。