VMWare Workstation中實現Win7和linux虛擬機之間的文件共享

共享文件夾有幾步操作:


設置共享文件夾,設置共享之前把虛擬機關閉(這點很重要)

去VMWare中,VM->Settings:

默認的文件共享:Options->Shared Folders:Always Enabled:

然後再去添加文件夾:Add Shared Folder,這裏要設置共享文件夾的目錄和名稱(暫且叫shared)

最後一步是啓用共享:Enable this share


打開虛擬機,檢測我們共享模塊是否安裝:

cd /mnt
[root@localhost www]# cd /mnt
[root@localhost mnt]# ll
total 5
dr-xr-xr-x. 1 root root 4192 Apr  8 18:13 hgfs

看到有hgfs文件夾,我們共享的文件夾正學的話,都應該在這個目錄下,如果目錄下沒有我們設置的共享文件夾,再次運行命令:

[root@localhost mnt]# modprobe vmhgfs

如果返回

FATAL: Module vmhgfs not found.

那需要重新安裝vmware tools

vm->reinstall vmware tools

最後再運行pl腳本即可

ubuntu系統
sudo vmware-config-tools.pl 
centos
vmware-config-tools.pl

最後我們來看一下效果

[root@localhost mnt]# cd hgfs/
[root@localhost hgfs]# ll
total 0
drwxrwxrwx. 1 root root 0 Apr  8 18:06 shared




發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章