作者:金超超 文章来源:运维部 点击数: 更新时间:2017-12-07 10:11:03
1 在VMWare图形界面中,将CentOS光驱设定为C:\Program Files\VMware\VMware Workstation\linux.iso,根据你的VM安装目录进行设定;
或在vmware的菜单栏→虚拟机→安装vmware tools,也可以启动并挂载Linux.ios
mount -t auto /dev/cdrom /mnt/cdrom这命令就是把CentOS CDROM挂载在/mnt/cdrom目录中,就可以访问里面的内容了;
mount: mount point /mnt/cdrom does not exist --/mnt/cdrom目录不存在,需要先创建。
[root@CentOS6 /]# mkdir -p /mnt/cdrom --创建/mnt/cdrom目录
[root@CentOS6 /]# mount -t auto /dev/cdrom /mnt/cdrom --挂载CentOS CDROM挂载
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 --挂载成功。
[root@CentOS6 /]# cd /mnt/cdrom
[root@CentOS6 /]# cpVMwareTools-9.6.0-1294478.tar.gz/tmp
[root@CentOS6 /]# tarzxpfVMwareTools-9.6.0-1294478.tar.gz
filter the archive through gzip
extract information about file permissions (default for superuser)
use archive file or device ARCHIVE
注意绿色表示文件名,根据vmware workstation的版本不同会不一样。
[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:
-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」数据夹,就可以看到刚刚分享的数据夹了
http://jincc.net/8951.html
http://os.51cto.com/art/201001/178745.htm
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
http://www.ilegal.cn/POST/33.html
http://jingyan.baidu.com/article/6dad5075ca4d6da123e36e34.html