CentOS 6.4 命令行 安装 VMware Tools

新建cdrom挂载目录
mkdir /mnt/cdrom
挂载光驱
mount -t auto /dev/cdrom /mnt/cdrom这命令就是把CentOS CDROM挂载在/mnt/cdrom目录中,就可以访问里面的内容了;
使用光驱中的文件,进行安装
 
[root@CentOS6 /]# cd /mnt/cdrom
[root@CentOS6 /]# ls -a
[root@CentOS6 /]# cp VMwareTools-8.6.1-19175.tar.gz /tmp
[root@CentOS6 /]# cd /tmp
[root@CentOS6 /]# tar zxpf VMwareTools-8.6.1-19175.tar.gz
[root@CentOS6 /]# cd vmware-tools-distrib
[root@CentOS6 vmware-tools-distrib]# ./vmware-install.pl
Creating a new installer database using the tar3 format.
 
Installing the content of the package. 
 
# 安装过程的画面,全部使用默认值,一直按 Enter 就对了
 
一直到出现:
To use the vmxnet driver, restart networking using the following commands:
/etc/init.d/network stop
rmmod pcnet32
rmmod vmxnet
depmod -a
modprobe vmxnet
/etc/init.d/network start
 
Enjoy,
 
--the VMware team
 
出现以上,则基本安装完!
 
5 shutdown -r now 重启
 
6 重新启动计算机再次登入之后,我们就会发觉到,当我们要离开 Guest OS 的时候,不再需要按「Ctrl + Alt」了,
 
现在我们来分享 Host OS 的数据夹给 Guest OS 使用,〔VM〕→〔Settings〕
注:左下角原本都会显示「You do not have VMware Tools installed」,现在我们装了 VMware Tools,就不再显示;
 
問題排除:
1. 需要 perl
2. 需要 gcc
3. 如果不是用指令解壓縮, 要注意解出來的檔案script是否執行的權限. 用 tar -zxvf 比較保險.
 
 
文件共享:
mount -t vmhgfs .host:/ /home/username/
原文地址:https://www.cnblogs.com/phpdragon/p/4506800.html