日本免费高清视频-国产福利视频导航-黄色在线播放国产-天天操天天操天天操天天操|www.shdianci.com

學無先后,達者為師

網站首頁 編程語言 正文

解決vmware上Ubuntu共享文件夾的問題_VMware

作者:大佬不小 ? 更新時間: 2022-09-03 編程語言

解決vmware上ubuntu無法共享文件夾問題

解決vmware上ubuntu無法共享文件夾問題(ubuntu22.04)

第一步:設置共享文件夾

第二步:安裝open-vm-tools

 sudo apt install open-vm-tools*

第三步:掛載文件夾先查看設置的文件夾有沒有起效

vmware-hgfsclient

如果出現有掛載對應的文件夾就起效

創建目錄并掛載

sudo mkdir /mnt/hgfs

手動掛載/自動掛載

手動掛載方法

但是每次重啟都得掛載一遍,比較麻煩

 sudo vmhgfs-fuse .host:/VMshare /mnt/hgfs 

自動掛載方法

sudo cp /etc/fstab /etc/fstab.bak
sudo vim /etc/fstab

在最后一行插入這樣一句

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

VMshare是自己設置的文件夾名稱,/mnt/hgfs掛載點,fuse.vmhgfs-fuse掛載方法

最后保存退出(先別走!)

由于配置自動掛載文件容易配置錯誤導致系統進入emergency mode,最好要備份好fstab文件,并且做好虛擬機快照,或者搜索在emergency mode的恢復方法

然后cd到/mnt/hgfs里就能看到共享的文件了,有可能需要管理員權限

如果你在此之前安裝過官方的vmtool或者舊版本的open-vm-tools最好先卸載干凈

sudo vmware-uninstall-tools.pl
sudo apt-get remove open-vm-tools
sudo apt-get remove --auto-remove open-vm-tools
sudo apt-get purge open-vm-tools
sudo apt-get purge --auto-remove open-vm-tools

參考引用:

https://www.cnblogs.com/nanopeng/p/7017351.html

https://blog.csdn.net/weixin_43445661/article/details/109497763

https://blog.csdn.net/weixin_44565095/article/details/95937794

原文鏈接:https://www.cnblogs.com/MaRcOGO/archive/2022/07/10/16463460.html

欄目分類
最近更新