Skip to content

Instantly share code, notes, and snippets.

@cordoval
Created July 6, 2012 10:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cordoval/3c6fea9315ec5c4b5798 to your computer and use it in GitHub Desktop.
Save cordoval/3c6fea9315ec5c4b5798 to your computer and use it in GitHub Desktop.
Script to upgrade vagrant box to the latest 4.1.18 Guest Additions
# Installing the virtualbox guest additions
sudo apt-get -y install linux-headers-$(uname -r) build-essential
sudo apt-get -y install dkms
#VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
VBOX_VERSION=4.1.18
cd /tmp
wget http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
sudo mount -o loop VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
sudo sh /mnt/VBoxLinuxAdditions.run
sudo umount /mnt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment