[PART-SOLVED] fstab: virtualbox shares in VB4.2.16/Fedora 19
Posted: 6. Jul 2013, 04:38
Automounting for virtualbox shared folders seems to have stopped working. I'm not sure whether the upgrade to 4.2.16 or Fedora 19 is the culprit (though I strongly suspect the latter - I'm guessing it may be a timing problem with the loading of the modules to support vboxsf file type. In any case, I had the following in my fstab:
This worked up to 4.2.14 in Fedora 17. Now, it causes the boot to hang, presumably because the mount fails. I'm providing my temporary fix here in case it's of use to others... It's further complicated because rc.local seems to have been definitively removed from the default systemctl initialisation. To enable it again, create rc.local in /etc/rc.d:
In rc.local I have
If I don't have the 'sleep 30', I get errors about an invalid file type, which is why I suspect the fstab problem has to do with timing of loading of the modules needed for vboxsf file type.
Code: Select all
#VBoxShare /share vboxsf defaults 0 0
#guestbackup /backup vboxsf defaults,gid=2004 0 0Code: Select all
-rwxr-xr-x. root root system_u:object_r:initrc_exec_t:s0 rc.local
systemctl enable rc-local.service
systemctl start rc-local.service (to test)Code: Select all
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
# Make sure all other initialisation has completed
sleep 30
mount -t vboxsf VBoxShare /share
mount -o gid=2004 -t vboxsf guestbackup /backup