Setting up a shared folder

This is optional. You will not need to share files or data between your VM and the host, if you checkout your SVN repo in the VM.

1 Creating a shared folder on your host

  • Create a folder on the Host computer (your machine) that you would like to share, for example sharewithVM
  • Start Virtualbox.
  • Select Settings -> Shared Folders…
  • Click the ‘Add’ button on the right side.
  • Browse to and Select sharewithVM 
  • Optionally select the ‘Make permanent’ option

2 Prepare the folder in the VM

  • Create a folder in your VM e.g. sharewithHost anywhere you want. Make sure you are in the parent directory of this directory when executing the command below.
  • With a shared folder named sharewithVM, as we set up in step 1, the folder in your VM can be mounted as the directory sharewithHost with the command:
Unix-based Host (Linux, Mac, etc.)
sudo mount -t vboxsf -o uid=$UID,gid=$(id -g) sharewithVM ./sharewithHost
Windows Host
sudo mount -t vboxsf sharewithVM ./sharewithHost

Note that the last argument is the path to mount the dir in your VM and the second last is the name of the directory on the host.


Make sure the last component (./sharewithHost) is a valid path to an existing folder. You can also use the absolute path instead of a relative one.