Skip to content

Commit

Permalink
Add workaround for mount folders in Linux guest
Browse files Browse the repository at this point in the history
See hashicorp/vagrant#3341

This should fix a known issue of VirtualBox 4.3.10

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
  • Loading branch information
gmacario committed Apr 20, 2014
1 parent 92c94d6 commit 2d9be8d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bootstrap.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#!/bin/bash

# Quick fix to enable vbguest on VirtualBox 4.3.10
# See https://github.com/mitchellh/vagrant/issues/3341
if [ ! -e /usr/lib/VBoxGuestAdditions ]; then
sudo ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions \
/usr/lib/VBoxGuestAdditions || true
fi

sudo apt-get update

# NOTE: If kernel is upgraded, you need to upgrade VirtualBox Guest Additions as well
Expand Down

0 comments on commit 2d9be8d

Please sign in to comment.