VirtualBox

Ticket #16404 (closed defect: fixed)

Opened 8 months ago

Last modified 7 months ago

vboxsf does not get autoloaded when a mount happens (fs-vboxsf alias missing)

Reported by: hyperair Owned by:
Priority: major Component: other
Version: VirtualBox 5.0.14 Keywords: vboxsf shared folders
Cc: Guest type: Linux
Host type: all

Description

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:

MODULE_ALIAS_FS("vboxsf");

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.

Attachments

0001-Add-MODULE_ALIAS_FS-vboxsf.patch Download (784 bytes) - added by hyperair 8 months ago.

Change History

Changed 8 months ago by hyperair

comment:1 Changed 8 months ago by frank

Thanks! Added this together with an #ifdef MODULE_ALIAS_FS ... #endif. The change will be part of the next 5.1.x maintenance release.

comment:2 Changed 7 months ago by frank

  • Status changed from new to closed
  • Resolution set to fixed

Fix is part of VBox 5.1.16.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use