Set the shared folder, click devices, and select the shared folder menu, as shown in. Click to add a shared folder. the fixed and temporary options indicate whether the folder is persistent. Share names can be obtained at will, such as share1. try to use English names without spaces. select the folder location, for example, E: \ share1. Click OK, as shown in. Open the terminal and create
Set shared folders
Click devices and select the shared folder menu, as shown in.
Click to add a shared folder. the fixed and temporary options indicate whether the folder is persistent. Share names can be obtained at will, such as share1. try to use English names without spaces. select the folder location, for example, E: \ share1. Click OK, as shown in.
Open the terminal and create a folder in the CentOS system, for example, create a share1 folder under/mnt.
The code is as follows:
Linux code
- Mkdir/mnt/share1
In the CentOS system, access the shared folder created in the previous system.
The code is as follows:
Linux code
- Mount-t vboxsf share1/mnt/share1
"Share1" is the name of the previously created shared folder. "/Mnt/share1" is the path for sharing folders in CentOS, as shown in.
Now the VM and host can upload files to each other. copy the two files in the original system "E: \ share1" and view them in CentOS, as shown in, you can see these two files in CentOS.
Shared Folder setting is complete.