无法使用共享文件夹?VMware怎么安装VMware Tools? (GCC、kernel headers、make)(失败)
文章目錄
- 20210501
- 20220323 快一年了,我這次成功了哦!
VMware安裝linux系統(tǒng)無法使用共享文件夾?
需要重裝VMware-tools
以下為安裝教程
右鍵點擊
輸入tar -zxvf,使勁按tab鍵,它會自動補全
遇到了問題
可以把它復制到其他文件夾,再解壓縮
不行我放棄了,重裝虛擬機系統(tǒng)
20210501
好的我又回來了
把壓縮包等五個文件拷貝到桌面并tar -zxvf解壓,并進入文件夾使用命令./vmware-install.pl運行安裝文件
然后一直enter
然后它會提示有個東西沒安裝
運行命令sudo apt install net-tools安裝
然后繼續(xù)我們之前的安裝
報錯,又說需要安裝make、gcc、kernel headers of the running kernel
先裝下GCC
然后再安裝
sudo ./vmware-install.pl還是說沒有GCC
重啟客戶機
還是不行
安裝make
接下來搞kernel headers of the running kernel
執(zhí)行命令:
sudo apt-get updatesudo apt-get install build-essential linux-headers-$(uname -r)
裝好了,
接下來再運行
sudo ./vmware-install.pl不重啟不行,再重啟一遍運行
sudo ./vmware-install.pl
裝好了
然后測試共享文件夾:
還是不行,啥都沒有!
參照官網(wǎng)幫助
https://docs.vmware.com/cn/VMware-Workstation-Player-for-Windows/14.0/com.vmware.player.win.using.doc/GUID-AB5C80FE-9B8A-4899-8186-3DB8201B1758.html
執(zhí)行/usr/sbin/mount.vmhgfs -h命令查看幫助:
dontla@dontla-virtual-machine:/usr$ /sbin/mount.vmhgfs -h Usage: mount.vmhgfs <sharename> <dir> [-o <options>] Mount the HGFS share, specified by name, to a local directory. Share name must be in host:dir format.Options:ro mount read-onlyrw mount read-writenosuid ignore suid/sgid bitssuid allow suid/sgid bits (default)uid=<arg> mount owner (by uid or username)gid=<arg> mount group (by gid or groupname)fmask=<arg> file umask (in octal)dmask=<arg> directory umask (in octal)nodev prevent device node accessdev allow device node access (default)noexec prevent program executionexec allow program execution (default)sync file writes are synchronousasync file writes are asynchronous (default)mand allow mandatory locksnomand prevent mandatory locks (default)noatime do not update access timesatime update access times (default)nodiratime do not update directory access timesdiratime update access directory times (default)ttl=<arg> time before file attributes must berevalidated (in seconds). Improvesperformance but decreases coherency.Defaults to 1 if not set.bind perform bind mountbind move an existig mount pointserverino Use server generated inode numbers.noserverino Use client generated inode numbers.remount remount already mounted filesystemThis command is intended to be run from within /bin/mount by passing the option '-t vmhgfs'. For example:mount -t vmhgfs .host:/ /mnt/hgfs/mount -t vmhgfs .host:/foo /mnt/foomount -t vmhgfs .host:/foo/bar /var/lib/bar dontla@dontla-virtual-machine:/usr$執(zhí)行mount -t vmhgfs .host:/ /mnt/hgfs/命令,雖然不知道是什么意思
dontla@dontla-virtual-machine:/mnt/hgfs$ sudo mount -t vmhgfs .host:/D/Dontla_virtual_machines/Dontla_VMware_share /mnt/hgfs Error: cannot mount filesystem: No such device安裝vmhgfs-fuse需要的工具包,參考Vmware10中Centos7掛載Windows主機的共享文件夾,提示:Error: cannot mount filesystem: No such device
執(zhí)行文件夾掛載命令:`sudo vmhgfs-fuse .host:/D/Dontla_virtual_machines/Dontla_VMware_share /mnt/hgfs
貌似沒報錯??`
dontla@dontla-virtual-machine:/mnt/hgfs$ sudo vmhgfs-fuse .host:/D/Dontla_virtual_machines/Dontla_VMware_share /mnt/hgfs dontla@dontla-virtual-machine:/mnt/hgfs$但是打開文件夾里面還是沒文件。。。。
最終還是失敗啊!!!!!!!
——————華麗的分割線——————————
再來:
https://blog.csdn.net/weixin_36058293/article/details/80693275
dontla@dontla-virtual-machine:~/桌面$ sudo vmhgfs-fuse .host:/D/Dontla_virtual_machines/Dontla_VMware_share /mnt/hgfs [sudo] dontla 的密碼: dontla@dontla-virtual-machine:~/桌面$切換到root用戶權限,否則無法訪問
dontla@dontla-virtual-machine:/mnt$ sudo -s root@dontla-virtual-machine:/mnt#說沒有那個文件或目錄是怎么回事???
root@dontla-virtual-machine:/mnt# cd /mnt/hgfs bash: cd: /mnt/hgfs: 沒有那個文件或目錄 root@dontla-virtual-machine:/mnt#直接用界面看看吧,我去,怎么不是文件夾呢??
重啟一下,好了
還是失敗了,怎么也不能共享
20220323 快一年了,我這次成功了哦!
windows和ubuntu虛擬機之間不能自由復制粘貼東西(要安裝VMware Tools)vmware-install.pl
如果有依賴問題,可能是appstreamcli版本不對,把它purge,然后autoremove,然后再upgrade重裝版本不對的所有依賴,參考:linux apt-get update報錯:Error in `appstreamcli‘: double free or corruption … Aborted (core dumped)
總結
以上是生活随笔為你收集整理的无法使用共享文件夹?VMware怎么安装VMware Tools? (GCC、kernel headers、make)(失败)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: web前端入门学习 css(10)移动端
- 下一篇: VMware ubuntu没法共享剪贴板