May 10th, 2016
In the settings window of your virtual machine open the
Shared Folders tab.
Create a new entry with the button
Adds new shared folder.
Folder Path select the folder to share in your host machine and in
Folder Name write the name you want to give to it.
make permanent and save the configuration.
Run the virtual machine, open a terminal window and type the following command to mount the sahared folder
sudo mount -t vboxsf -o uid=1000,gid=1000 SharedFolderName /guest/path/where/to/mount
SharedFolderName is the name chosen in the previous configuration and the path is where you want to have the folder in the virtual machine.
In case you reach this error:
Error opening directory '/media/sf_VirtualBoxSharedFolder': Permission denied
Run the following command in the virtual machine terminal in order to solve it
sudo usermod -aG vboxsf $(whoami)