Package: virtualbox-ose-guest-utils Version: 2.2.4-dfsg-1 Tags: patch Trying to mount a shared folder with virtualbox results in the following error:
$ sudo mount.vboxsf Test /mnt/test mount.vboxsf: mounting failed with the error: No such device $ sudo modprobe vboxvfs solves the problem. So /etc/init.d/virtualbox-ose-guest-utils should automatically load vboxvfs.
diff -u virtualbox-ose-2.2.4-dfsg/debian/virtualbox-ose-guest-utils.init virtualbox-ose-2.2.4-dfsg/debian/virtualbox-ose-guest-utils.init --- virtualbox-ose-2.2.4-dfsg/debian/virtualbox-ose-guest-utils.init +++ virtualbox-ose-2.2.4-dfsg/debian/virtualbox-ose-guest-utils.init @@ -28,8 +28,7 @@ start) in_virtual_machine || exit 0 log_action_begin_msg 'Starting VirtualBox Additions'; - # udev should have already handled this module - # double check if kernel support is present or die + modprobe --quiet vboxadd if [ "$?" -ne 0 ]; then # vboxadd not installed, or has a problem @@ -38,6 +37,17 @@ exit 0 fi + modprobe --quiet vboxvfs + if [ "$?" -ne 0 ]; then + # vboxvfs not installed, or has a problem + log_action_msg 'shared folders not available, kernel module not loadable'; + log_end_msg 1 + exit 0 + fi + # Mount all shared folders from /etc/fstab. Normally this is done by some + # other startup script but this requires the vboxdrv kernel module loaded. + mount -a -t vboxsf + start-stop-daemon --start --quiet --exec /usr/sbin/vboxadd-timesync -- --daemonize log_end_msg $? ;;

