June 21, 2017

Mount virtualbox shared folder at startup

Reference: How to mount a VirtualBox shared folder at startup?

  • Add shared folder in virtualbox, do not select Auto-mount
  • Force the vboxsf module to be loaded before fstab
    • add vboxsf in /etc/modules
  • Add the following line in /etc/fstab (change the uid, gid as needed)
shared_folder   /path/to/mountpoint   vboxsf   auto,rw,uid=0,gid=0  0   0

No comments: