莫名其妙,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
那么,就发在这里吧
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