When using virtual machines, we often consider how to copy the files on the host to the virtual machine.
First of all, through the network card bridging, virtual machine networks and the host network is connected, then we can use some network file transfer, such as relatively simple FTP, or can consider NFS and cifs such a way of file sharing. But in fact the VirtualBox tool itself has a file sharing function, today is about how to configure this feature.
First select the corresponding virtual click settings---shared folder
Then select Create, specify a path to the local Windows host, and then name the shared folder. I'm here to edit, create almost.
Start the virtual machine after saving.
In the Virtual machine window, select device---Install enhancements
After that, you can see the contents of the shared folder in the device.
Then we create a directory locally to give it the relevant permissions
And then mount the shared file to this directory.
So we can see what's in this directory.
is the same as under Windows. We can also transfer the virtual machine file to the Windows host from the file under the CP required under this directory to the other path of the virtual machine.
VirtualBox virtual Machine (Ubuntu) shared files with Windows