# GuestAdditions setup
apt-get -y purge virtualbox-guest-utils
apt-get -y autoremove

apt-get -y install dkms

VBOX_VERSION=$(cat .vbox_version)
VBOX_ISO=VBoxGuestAdditions_$VBOX_VERSION.iso
mount -o loop /home/vagrant/$VBOX_ISO /mnt
yes|sh /mnt/VBoxLinuxAdditions.run
umount /mnt

rm $VBOX_ISO


# GuestAdditions setup
apt-get -y purge virtualbox-guest-utils
apt-get -y install dkms
apt-get -y autoremove

VBOX_VERSION=$(cat .vbox_version)
VBOX_ISO=VBoxGuestAdditions_$VBOX_VERSION.iso
mount -o loop /home/vagrant/$VBOX_ISO /mnt
yes|bash /mnt/VBoxLinuxAdditions.run --nox11
umount /mnt
rm $VBOX_ISO

# Fix Fail to mount a shared folder on VirtualBox 4.3.10
if [ ! -d "/usr/lib/VBoxGuestAdditions" ]; then
	ln -s /opt/VBoxGuestAdditions-*/lib/VBoxGuestAdditions /usr/lib/VBoxGuestAdditions
fi

mkdir /vagrant


Fix Fail to mount a shared folder on VirtualBox 4.3.10
Fix Fail to mount a shared folder on VirtualBox 4.3.10
