alt3 / cakebox

Framework agnostic virtual PHP Development Environment
128 stars 27 forks source link

Shared folders not mounting (VBoxGuestAdditions) #73

Closed bravo-kernel closed 8 years ago

bravo-kernel commented 8 years ago

When starting my box my shared folders are not mounting giving me the following error

==> default: Mounting shared folders...
    default: /vagrant => C:/Git/cakebox/.vagrant
Vagrant::Errors::VirtualBoxMountFailed: Vagrant was unable to mount VirtualBox shared folders. This is usually
because the filesystem "vboxsf" is not available. This filesystem is
made available via the VirtualBox Guest Additions and kernel module.
Please verify that these guest additions are properly installed in the
guest. This is not a bug in Vagrant and is usually caused by a faulty
Vagrant box. For context, the command attemped was:

set -e
mount -t vboxsf -o uid=`id -u vagrant`,gid=`getent group vagrant | cut -d: -f3`,dmode=777,fmode=766 vagrant /vagrant
mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant`,dmode=777,fmode=766 vagrant /vagrant

The error output from the command was:

/sbin/mount.vboxsf: mounting failed with the error: No such device
bravo-kernel commented 7 years ago

Caused by outdated version of VBoxGuestAdditions inside your box.

Advised solution would be to install the vagrant-vbguest plugin and then restarting your box by running this on your local machine:

vagrant plugin install vagrant-vbguest
vagrant reload

The plugin will make sure that versions of VBoxGuestAdditions on your local machine and box are kept in sync.

birdy247 commented 7 years ago

image

birdy247 commented 7 years ago

Ahh, I upgraded vagrant and now all is A-ok :-) Thanks for your help as always!