I tried sshfs
, but the local directory where I want to mount a folder from the VM does not open after running the command.
Guest Additions
on the virtual machine. These can be dowloaded from within the virtual machine from the Devices > Install Guest Additions menu.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.