Search code examples
ubuntu-14.04virtualboxsshfs

How can I mount a folder from an ubuntu virtual machine on ubuntu?


I tried sshfs, but the local directory where I want to mount a folder from the VM does not open after running the command.


Solution

    1. Install the Guest Additions on the virtual machine. These can be dowloaded from within the virtual machine from the Devices > Install Guest Additions menu.
    2. Add the folder you wish to share to the Shared Folders, this option can also be found in the Devices menu.
    3. The folder can now be mounted with

      sudo mount -t vboxsf -o uid=$UID,gid=$(id -g) folder ~/host

    For more info, or troubleshooting, check out this Ubuntu Help article.