Every couple of years, some piece of shared folder mounting breaks, and apparently it's that time again...
Historically, most of the problems have come from race conditions where the guest tries to mount a shared folder before VBox has reached a state where it's capable of doing so. This was originally only a problem for fstab mounts, but later also broke rc.local-style mounts if systemd was involved and you were unlucky. Adding vboxsf to /etc/modules to force it to load "early" resolved at least the second case for several years.
As of 6.1.26 though, I can no longer find ANY way to get a custom mount to actually work at boot time.
edit> I've just discovered that the bug goes at least as far back as 6.1.23. Since that was a test build to stop the audio crashes I never bothered updating the GAs in that install, so THAT piece was still using 6.1.18.
Mounting via fstab, covered here: viewtopic.php?f=3&t=101168 no longer works; and mounting via rc.local (the method I prefer and have been using for the last decade or so) is also broken.
The rc.local approach fails with
Code: Select all
/sbin/mount.vboxsf: shared folder '/cold' was not found (check VM settings / spelling)
Aug 18 14:24:42 brandi systemd[1]: Failed to start rc.local.
Aug 18 14:24:42 brandi kernel: [ 885.064384] vboxsf: SHFL_FN_MAP_FOLDER failed for '/cold': share not found
No amount of delays, retries, or other hackery seems to be able to get past this. I also went as far as to create a unit file for systemd forcing rc.local to depend on vbox, but I want to emphasize that I may well have gotten that wrong, as I think I had it trying to require vboxsf rather than vboxadd.service. (In my defense, it shouldn't need this level of duct tape in the first place).
In my particular case, the host is W10 and the guest is Ubuntu 18.04 (4.15 kernel, i.e. not HWE), though the bug is clearly not related to the guest version, and was clearly introduced somewhere between 6.1.18 and 6.1.24 (to use official versions only).
Anyway, my question is, does anyone have a working method for custom automatic/boot-time mounts in 6.1.26? Thanks.