When running Vagrant 1.5.1 with VirtualBox 4.3.10 on your shiny OS X 10.9.2 Mavericks, you may run into issue when trying to mount the /vagrant folder on Ubuntu VMs. The bug looks like
Failed to mount folders in Linux guest. This is usually because
the “vboxsf” file system is not available. Please verify that
the guest additions are properly installed in the guest and
can work properly. The command attempted was:
mount -t vboxsf -o uid=`id -u vagrant`,gid=`getent group vagrant | cut -d: -f3` /vagrant /vagrant
mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` /vagrant /vagrant
A fix was proposed to ssh into each and every Ubuntu VMs you got and perform the necessary symlink fix to get the VBoxGuestAdditions to work. This is quite clumsy in my opinion.
Here’s an alternative approach to the one liner symlink fix. This is based on the fixed VBoxGuestAdditions ISO as outlined in #12879.
Essentially boils down to copying the fixed ISO to the VirtualBox folder and letting vbguest plugin do its usual magic. Voila. Works for all ubuntu vms.
$ sudo cp VBoxGuestAdditions_4.3.11-93070.iso /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso