Skip to content

Instantly share code, notes, and snippets.

@bom-d-van
Created November 1, 2016 02:46
Show Gist options
  • Save bom-d-van/811636006bf50c92ded7f9d1c3017930 to your computer and use it in GitHub Desktop.
Save bom-d-van/811636006bf50c92ded7f9d1c3017930 to your computer and use it in GitHub Desktop.
VirtualBox Shared Folder Setup
# set up shared folder
VBoxManage sharedfolder add "VM name" --name "sharename" --hostpath "/path"
# test mounting
mkdir ~/path
sudo mount -t vboxsf sharename ~/path
# error: /sbin/mount.vboxsf: mounting failed with the error: No such file or directory
sudo apt-get install dkms build-essential linux-headers-$(uname -r) virtualbox-guest-additions-iso
sudo reboot
# permanant automatic mounting
echo "code /path/to/mount vboxsf defaults,_netdev,uid=1000,gid=1000 0 0" >> /etc/fstab
# useful links:
# http://stackoverflow.com/a/32436310/576497
# https://www.virtualbox.org/manual/ch04.html#sf_mount_auto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment