A shared VirtualBox folder allows to easily share files between host OS and guest OS. This guide shows how to mount the VirtualBox shared folder on Linux.
Define a shared folder:
Create a folder where the shared folder will be mounted:
mount -t vboxsf Temp ~/Temp
If you want to have it mount automatically upon each boot, put the mount command in
/etc/rc.local (Debian based distro’s),
or whatever script is run at the end of the boot process. When you put the mount command in
so it’s mounted at startup, you can’t use the short notation for your home folder.
During startup, everything is done through the root user, so using
~ for home, means it’s the home folder of Root (
Change it to the full path.
mount -t vboxsf Temp /home/<username>/Temp