Skip to content

Instantly share code, notes, and snippets.

@eldondevcg
Last active August 29, 2015 14:21
Show Gist options
  • Save eldondevcg/271fb0a880dc11c59da8 to your computer and use it in GitHub Desktop.
Save eldondevcg/271fb0a880dc11c59da8 to your computer and use it in GitHub Desktop.
A vagrantfile to upgrade the vbox additions
Vagrant.configure(2) do |config|
config.vm.box = "hashicorp/precise64"
config.vm.provider "virtualbox" do |v|
v.memory = 4096
v.cpus = 2
end
config.vm.provision "shell", inline: <<-SHELL
set -e
sudo apt-get install -y dkms wget linux-headers-`uname -r`
wget http://dlc-cdn.sun.com/virtualbox/4.3.28/VBoxGuestAdditions_4.3.28.iso
md5sum VBoxGuestAdditions_4.3.28.iso | grep ed0796a1ec2cfc75eae20e3b1211ab73
sha256sum VBoxGuestAdditions_4.3.28.iso | grep 9f52e186d6c9407b2676d4b2ed1cdf96940ec129cc2bd92e54b24526271a9733
mount -o loop VBoxGuestAdditions_4.3.28.iso /mnt/
cd /mnt/
sh VBoxLinuxAdditions.run 2>&1 |grep "Could not find the X.Org or XFree86 Window System, skipping."
SHELL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment