summaryrefslogtreecommitdiff
path: root/wheezy/virtualbox.sh
blob: e4afe25bbb4b10b7dcd85415fc71969d22fff95d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
if test -f .vbox_version ; then
  # The netboot installs the VirtualBox support (old) so we have to remove it
  /etc/init.d/virtualbox-ose-guest-utils stop
  rmmod vboxguest
  aptitude -y purge virtualbox-ose-guest-x11 virtualbox-ose-guest-dkms virtualbox-ose-guest-utils

  # Install the VirtualBox guest additions
  VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
  VBOX_ISO=VBoxGuestAdditions_$VBOX_VERSION.iso
  mount -o loop $VBOX_ISO /mnt
  yes|sh /mnt/VBoxLinuxAdditions.run
  umount /mnt
fi