I know there are many questions already about this problem, but all the solutions that people came up with don't work for me. Personally I took the
/etc/fstab approach. This is how the content of the file looks like
david@debian:~$ sudo cat /etc/fstab # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # <file system> <mount point> <type> <options> <dump> <pass> # / was on /dev/sda1 during installation UUID=e5de59a3-0619-47f9-9a08-858e1e4f6415 / ext4 errors=remount-ro 0 1 # swap was on /dev/sda5 during installation UUID=b9140523-9685-48c4-a870-3604a8f58788 none swap sw 0 0 /dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0 GitHub-VM /home/david/Documents vboxsf uid=david,gid=david,dmode=774,fmode=664 0 0
- GitHub-VM: is the folder that I'm sharing from my host system (macOS)
- /home/david/Documents: is the folder on the VirtualMachine (Debian 8)
Of course I didn't forget to force the
vboxsf kernel module to be loaded at boot time.
david@debian:~$ sudo cat /etc/modules # /etc/modules: kernel modules to load at boot time. # # This file contains the names of kernel modules that should be loaded # at boot time, one per line. Lines beginning with "#" are ignored. vboxsf
Sadly, after log-in in, my Document folder is not mapped to the host folder :(. What am I missing?