VMware配置CentOS-7虛擬機與windows主機之間的文件共享

首先確認CentOS-7已經安裝了open-vm-tools,若是沒有安裝,則經過yum安裝:windows

yum install open-vm-tools

關閉虛擬機並配置好windows主機的共享目錄後,能夠選擇手動或者自動掛載共享文件 CentOS中的掛載點爲/vmshare,需提早手動建立目錄 手動方式:ui

vmhgfs-fuse -o allow_other -o auto_unmount -o uid=1000 -o gid=1000 .host:/ /vmshare

自動方式: 編輯/etc/fstab,加上一行code

.host:/  /vmshare  fuse.vmhgfs-fuse allow_other,uid=1000,gid=1000,auto_unmount,defaults 0 0
相關文章
相關標籤/搜索