二、安裝VMware tools
- 點擊虛擬機
- 點擊安裝 VMware tools
- 將/run/media/zhaojq/VMware\ Tools 目錄下的VMwareTools-9.6.2-1688356.tar.gz拷貝到家目錄下
- 解壓後生成vmware-tools-distrib
-
[zhaojq
@localhost vmware-tools-distrib]$ ls
-
bin doc etc
FILES INSTALL installer lib vmware-install.pl
運行./vmware-install.pl
[zhaojq@localhost vmware-tools-distrib]$ ./vmware-install.pl
一直enternode
-
The path
"" is not valid path to the gcc binary.
-
Would you like
to change it? [yes] no
-
-
The
path "" is not a valid path to the 3.10.0-514.26.2.el7.x86_64 kernel
-
-
Would you
like to change it? [yes] no
-
安裝成功後返回linux
-
-
-
二、掛載Windows主機的共享文件夾
mnt/hgfs 目錄
-
[zhaojq
@localhost ~] cd /mnt/hgfs/
-
[zhaojq
@localhost hgfs] pwd
-
vmware-hgfsclient 命令查看當前共享的目錄redis
-
[zhaojq
@localhost hgfs]$ vmware-hgfsclient
-
mount報錯ruby
-
[zhaojq
@localhost hgfs]$ sudo mount -t vmhgfs .host:/E /mnt/hgfs
-
Error
: cannot mount filesystem: No such device
vmhgfs-fuse,須要安裝工具包markdown
-
[zhaojq
@localhost hgfs]$ yum install open-vm-tools-devel -y
-
[zhaojq
@localhost hgfs]$ vmhgfs-fuse .host:/E /mnt/hgfs
三、查看掛載
注意:須要root權限查看。框架
Windows 主機的E盤狀況
Centos虛擬機下的掛載狀況
-
-
jashkenas-coffeescript-
1.12.6-0-gf0e9837.tar.gz LeaRun敏捷後臺開發框架_6.3.4 $RECYCLE.BIN System Volume Information
-
LeaRun_6
.3.4.zip node-v6.11.1-linux-x64.tar.xz redis-3.2.9.tar.gz
掛載成功工具