Skip to content

Commit

Permalink
Adding workaround to fix shared folders not working with VirtualBox 4…
Browse files Browse the repository at this point in the history
….3.10
  • Loading branch information
Mischa Taylor committed Apr 17, 2014
1 parent 6f9d4ac commit 1c238e9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion template/ubuntu/script/vmtools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,11 @@ if [[ $PACKER_BUILDER_TYPE =~ virtualbox ]]; then

VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
mount -o loop /home/vagrant/VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
# sh /mnt/VBoxLinuxAdditions.run --nox11
sh /mnt/VBoxLinuxAdditions.run
umount /mnt
rm /home/vagrant/VBoxGuestAdditions_$VBOX_VERSION.iso

if [[ $VBOX_VERSION =~ 4.3.10 ]]; then
ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions /usr/lib/VBoxGuestAdditions
fi
fi

0 comments on commit 1c238e9

Please sign in to comment.