To get started, select the virtual machine to wish to configure then click ‘Settings’ and select the shared folder on the left menu. Click ‘Add’ the select the the folder to share.
Login to Ubuntu and run the commands below to add your user account into VirtualBox account group.
sudo adduser <username> vboxsf
Next, logout or restart your computer and go to the /media/ folder to access the shared folder.