• 首页
  • 产品与方案
  • 众成服务
  • 走进众成
  • 新闻中心
  • 企业文化
  • 联系我们
  • 解决方案
  • 众成软件
  • 维护支持
  • 运维服务
  • 技术交流
  • 公司介绍
  • 荣誉资质
  • 合作伙伴
  • 招贤纳士
  • 公司新闻
  • 业界动态
  • 文化建设
  • 企业文化
  • 荣誉榜

首页 > 众成服务 > 技术交流

技术交流

RHEL 和CentOS 安装VMware Tools

 作者:金超超   文章来源:运维部    点击数:  更新时间:2017-12-07 10:11:03

1 在VMWare图形界面中,将CentOS光驱设定为C:\Program Files\VMware\VMware Workstation\linux.iso,根据你的VM安装目录进行设定;

 

2 然后,启动CentOS; 

 

或在vmware的菜单栏→虚拟机→安装vmware tools,也可以启动并挂载Linux.ios

 

3 启动好后,挂载光驱

mount -t auto /dev/cdrom /mnt/cdrom这命令就是把CentOS CDROM挂载在/mnt/cdrom目录中,就可以访问里面的内容了;

 

可能发生的问题:

mount: 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挂载

-t, --types vfstype

              The argument following the -t is used to indicate the filesystem type.

If no -t option is given, or if  the  auto  type  is  specified,

              mount  will try to guess the desired type. 

mount: block device /dev/cdrom is write-protected, mounting read-only --挂载成功。

 

4 使用光驱中的文件,进行安装

 

[root@CentOS6 /]# cd /mnt/cdrom

[root@CentOS6 /]# ls -a

[root@CentOS6 /]# cpVMwareTools-9.6.0-1294478.tar.gz/tmp

[root@CentOS6 /]# cd /tmp

[root@CentOS6 /]# tarzxpfVMwareTools-9.6.0-1294478.tar.gz

z代表gzip的压缩包;x代表解压;f代表后面接的是文件

-z, --gzip

filter the archive through gzip

-x, --extract, --get

extract files from an archive

-p, --preserve-permissions

extract  information  about  file permissions (default for superuser)

-f, --file=ARCH IVE

use archive file or device ARCHIVE

注意绿色表示文件名,根据vmware workstation的版本不同会不一样。

如果你看到的是.exe的文件,请卸载并重新开始。

因为Linux是无法运行.exe 文件的。

Linxu是区分大小写的。

 

[root@CentOS6 /]# cdvmware-tools-distrib

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

Creating a new installer database using the tar3 format.

 

进入了vmware-tools-distrib文件夹后里面有一个vmware-install.pl文件

那个就使用./来安装

 

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

rmmodvmxnet

depmod -a

modprobevmxnet

/etc/init.d/network start

 

Enjoy,

 

--the VMware team

 

出现以上,则基本安装完!

 

5 输入reboot 重启

或shutdown -r now 关机

       -r     Requests that the system be rebooted after it has been brought down.

       -h    Requests  that the system be either halted or powered off after it has been brought down, with the choice as to which left up to the system.

 

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」数据夹,就可以看到刚刚分享的数据夹了

 

 

相关参考:

RHEL/CentOS虚拟机安装VMware Tools

http://jincc.net/8951.html

 

CentOS CDROM挂载使用mount命令

http://os.51cto.com/art/201001/178745.htm

 

[ CentOS ] 安装VMware Tools

http://xxjcom.blog.51cto.com/259691/48462

 

如何在CentOS安裝VMWare Tools? (OS) (Linux) (CentOS) (VMWare)

http://www.cnblogs.com/oomusou/archive/2008/06/06/centos_vmware_tools.html

 

Linux 安装VMware Tools

http://www.ilegal.cn/POST/33.html

 

如何给CentOS 安装Vmware Tools

http://jingyan.baidu.com/article/6dad5075ca4d6da123e36e34.html

下载此文档:RHEL 和CentOS 安装VMware Tools金超超   类型:docx,   大小:17 KB
  • 地址:温州市车站大道大诚商厦E幢四楼 | 电话:0577-88891333 | 技术服务电话:4008515159 | 传真:0577-88363999
  • 邮箱:jucher@jucher.com | 浙ICP备05000620号-1
  • Copyright © 2009-2019 JUCHER CORPORATION CO., LTD All Rights Reserve