麦克雷 Mavom.cn

标题: 【经验】vmware共享文件夹,虚拟机是linux [打印本页]

作者: 荧光粉620    时间: 2023-6-13 12:00
标题: 【经验】vmware共享文件夹,虚拟机是linux
莫名其妙,CSDN不能正常发,大概是又升级了,我讨厌升级
那么,就发在这里吧
1.windows中设置好vmware的共享文件夹,
2.linux虚拟机中安装vmware tools
apt-get install open-vm-dkms
或者apt-get install open-vm-tools-dkms
这时在linux虚拟机中仍无法看到windows的共享文件夹的话,需要做这么几件事(在虚拟机中):
mkdir /mnt/hgfs
mount -t vmhgfs ./host:/xxx /mnt/hgfs
或者:vmhgfs-fuse ./host:/xxx /mnt/hgfs
上面的xxx是windows中的共享文件夹名字
但是,这样可能仍有问题,就是只有root用户能访问,那么还要加个参数:
vmhgfs-fuse ./host:/xxx /mnt/hgfs -o allow_other


更高级的命令:
sudo vmhgfs-fuse .host:/winshare /mnt/hgfs -o subtype=vmhgfs-fuse,allow_other,nonemptybb
sudo vmhgfs-fuse .host:/share /share -o allow_other -o uid=1001 -o gid=1001
作者: 艾的民    时间: 2023-6-13 12:01
csdn别用了吧,95%的复制粘贴,我都-cssn搜索的
作者: hspbomjy94    时间: 2023-6-13 12:02
去问都思吧或者虚拟机吧吧,这里是Linux吧。




欢迎光临 麦克雷 Mavom.cn (http://www.mavom.cn/) Powered by Discuz! X3.5