Create a shared folder with Ubuntu20.04 in VMware under Win10 system

1. Set up in VMware

insert image description here

2. Setup in Ubuntu

1. Enter the following command in the terminal to list the name of the VMware shared folder set in step 1, indicating that it can be mounted

~$ vmware-hgfsclient

return

free sharing

2. Execute the following command to create a dedicated mount directory for shared folders

~$ sudo mkdir -p /mnt/hgfs

3. Execute the following command to mount the shared folder

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

Now you can access the shared folder on the host

~$ ls /mnt/hgfs

return

free sharing

Note: ctrl+c to copy the content, press shift+ctrl+v on Ubuntu to paste the content.

Reference:
Linux (Ubuntu 22.04) study notes - let the virtual machine share the folder on the host

Guess you like

Origin blog.csdn.net/u014157109/article/details/128348344