vboxsf does not get autoloaded when a mount happens (fs-vboxsf alias missing)
|Reported by:||hyperair||Owned by:|
|Keywords:||vboxsf shared folders||Cc:|
|Guest type:||Linux||Host type:||all|
When the vboxsf kernel module is not loaded, mounting a shared folder (e.g. mount -t vboxsf foo /media/foo` fails with ENODEV.
The reason for this is that vboxsf lacks the fs-vboxsf alias, which is what the kernel uses to autoload filesystem modules during mount. This can be fixed by adding the following to vboxsf/vfsmod.c:
Alternatively, it can be worked around by adding "alias fs-vboxsf vboxsf" to a file in /etc/modprobe.d.
Please see the attached MIT-licensed patch for a proposed fix.