/vagrant mount fix for Ubuntu VMs for Vagrant 1.5.1, Virtualbox 4.3.10 on OS X 10.9.2 Mavericks

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

This is a reported issue on both Vagrant and Virtualbox project and I believe the fault lies with VBoxGuestAdditions on the Virtualbox end. See Vagrant issue #3341 and Virtualbox issue #12879.

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.

$ wget https://www.virtualbox.org/download/testcase/VBoxGuestAdditions_4.3.11-93070.iso

$ sudo cp VBoxGuestAdditions_4.3.11-93070.iso /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s