Skip to content

Instantly share code, notes, and snippets.

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 n370/63e78c0ed1b1f30619a587c82f8e0134 to your computer and use it in GitHub Desktop.
Save n370/63e78c0ed1b1f30619a587c82f8e0134 to your computer and use it in GitHub Desktop.
VirtualBox Guest Additions
# Based on https://gist.github.com/fernandoaleman/5083680
# Start the old vagrant
$ vagrant init ubuntu_saucy
$ vagrant up
# You should see a message like:
# [default] The guest additions on this VM do not match the install version of
# VirtualBox! This may cause things such as forwarded ports, shared
# folders, and more to not work properly. If any of those things fail on
# this machine, please update the guest additions and repackage the
# box.
$ vagrant ssh
vagrantup:~$ sudo wget -c http://download.virtualbox.org/virtualbox/5.0.10/VBoxGuestAdditions_5.0.10.iso -O VBoxGuestAdditions_5.0.10.iso
vagrantup:~$ sudo mount VBoxGuestAdditions_5.0.10.iso -o loop /mnt
vagrantup:~$ cd /mnt
vagrantup:~$ sudo sh VBoxLinuxAdditions.run --nox11
vagrantup:~$ cd
vagrantup:~$ sudo rm *.iso
vagrantup:~$ sudo /etc/init.d/vboxadd setup
vagrantup:~$ sudo update-rc.d vboxadd defaults
vagrantup:~$ sudo update-rc.d vboxadd enable
vagrantup:~$ exit
# Now check that the Guest Additions work
$ vagrant halt
$ vagrant up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment