vmware共享文件夾

環境: ubuntu

VMware Workstation 11.0windows

虛擬機中的系統:Ubuntu 16.04bash

物理機:window 7ui

安裝好vmware tools後在 /mnt/hgfs 裏沒有東西,是空白的!spa

解決辦法:code

安裝open-vm-toolsblog

sudo apt-get install open-vm-tools

而後一路按回車。get

安裝好後能夠使用vmhgfs-fuse命令,好比在虛擬機裏有個目錄 ~/share,終端中切換到家目錄,而後:虛擬機

vmhgfs-fuse share

這樣就把windows裏的目錄共享到了ubuntu裏了。固然前提是在虛擬機設置裏已經設置好了共享文件夾。io

若是要在開機是自動掛載共享文件夾,則需更改/etc/fstab文件。打開文件後在最後添加:

.host:/         /mnt/hgfs               fuse.vmhgfs-fuse allow_other,defaults   0       0

 


 

在debian jessie中的方法不同!

sudo apt-get install open-vm-tools
sudo apt-get install open-vm-tools-desktop

安裝完這2個後,在終端中使用 vmhgfs-fuse無論用:

vmhgfs-fuse
bash: vmhgfs-fuse: command not found

掛載有個提示,可是實際上能夠掛載:

sudo mount -t vmhgfs .host:/ /mnt/hgfs
Could not add entry to mtab, continuing

設置爲開機掛載:

.host:/    /mnt/hgfs    vmhgfs    defaults    0    0

 

-- END --

相關文章
相關標籤/搜索