现在的位置: 首页 > 综合 > 正文

CentOS 6.3 安装VMware Tools

2019年06月06日 ⁄ 综合 ⁄ 共 1442字 ⁄ 字号 评论关闭

CentOS 6.3 安装VMware Tools

 

1 在VMWare图形界面中,将CentOS光驱设定为C:\Program Files\VMware\VMware Workstation\linux.iso,根据你的VM安装目录进行设定;
2 然后,启动CentOS; 
3 启动好后,挂载光驱
mount -t auto /dev/cdrom /mnt/cdrom这命令就是把CentOS CDROM挂载在/mnt/cdrom目录中,就可以访问里面的内容了;
可能发生的问题:
/mnt/cdrommount: mount point /mnt/cdrom does not exist --/mnt/cdrom目录不存在,需要先创建。
[root@CentOS6 /]# cd /mnt
[root@CentOS6 /]# mkdir -p /mnt/cdrom  --创建/mnt/cdrom目录
[root@CentOS6 /]# mount -t auto /dev/cdrom /mnt/cdrom  --挂载CentOS CDROM挂载mount: block device /dev/cdrom is write-protected, mounting read-only --挂载成功。
4 使用光驱中的文件,进行安装
[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,就不再显示;
新增要分享的数据夹:〔Options〕→〔Shared Folders〕→〔Add〕〔下一步〕点选〔Browse〕,选取要分享的数据夹,这里是以 D盘为例,上面的「Name」您可以随意输入,这里是以 test 为例「Enable this share」启用这个分享
顺利的话,我们只要到「/mnt/hgfs」数据夹,就可以看到刚刚分享的数据夹了

抱歉!评论已关闭.