windows and VMware virtual machine file sharing + mount folder

1, install VMware Tools virtual machine DVD drive.
Unable to install VMware Tools can look at this: https://blog.csdn.net/zxc120389574/article/details/104806189
Here Insert Picture Description

2, VMwareTools-10.3.10-13959562.tar.gz copied from the DVD drive to your own folder (I copy it to the current folder).

cp /media/zxc/VMware\ Tools/VMwareTools-10.3.10-13959562.tar.gz .

3, unzip and install it.

tar -zxvf VMwareTools-10.3.10-13959562.tar.gz
cd vmware-tools-distrib/
sudo ./vmware-install.pl

4, right-click the virtual machine, set up shared folders.
Here Insert Picture Description
Here Insert Picture Description
If added successfully, you can run the vmware-hgfsclient see the shared files folder just set.

vmware-hgfsclient

Here Insert Picture Description
5, shared folders will be mapped to / mnt / hgfs. If successful, this end; otherwise continue down.

6, generally shared folders in / mnt / hgfs below. If you can not find the shared folder, because not mounted, we can mount it on (my shared folder called VMshare, I put it in to the / mnt / hgfs).

sudo /usr/bin/vmhgfs-fuse .host:/VMshare /mnt/hgfs -o subtype=vmhgfs-fuse,allow_other

Detailed usage mount command is as follows:

Prior to the 4.0 Linux kernel 4.0 and later versions of the Linux kernel Explanation
mount -t vmhgfs .host:/ /home/user1/shares /usr/bin/vmhgfs-fuse .host:/ /home/user1/shares -o subtype=vmhgfs-fuse,allow_other All loaded into the shared / home / user1 / shares
mount -t vmhgfs .host:/foo /tmp/foo /usr/bin/vmhgfs-fuse .host:/foo /tmp/foo -o subtype=vmhgfs-fuse,allow_other The load sharing to named foo / tmp / foo
mount -t vmhgfs .host:/foo/bar /var/lib/bar /usr/bin/vmhgfs-fuse .host:/foo/bar /var/lib/bar -o subtype=vmhgfs-fuse,allow_other Foo in the shared bar is loaded into the subdirectory / var / lib / bar

Reference:
https://blog.csdn.net/BjarneCpp/article/details/95899425

Published 92 original articles · won praise 2 · Views 3427

Guess you like

Origin blog.csdn.net/zxc120389574/article/details/104807016