Edit your /etc/fstab:
sudo nano /etc/fstab
Add the following:
[NAME] [MOUNT_POINT] vboxsf rw 0 0
Where [NAME] is the name setup in the virtual machine settings and [MOUNT_POINT] is the path in the guest OS (Ubuntu) you want the shared folder located.