Skip to content

Instantly share code, notes, and snippets.

@carlessanagustin
Forked from fernandoaleman/gist:5083680
Last active December 7, 2016 14:50
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 carlessanagustin/13570631ca0bf34feecd8b9c80194b12 to your computer and use it in GitHub Desktop.
Save carlessanagustin/13570631ca0bf34feecd8b9c80194b12 to your computer and use it in GitHub Desktop.
VAGRANT: How to update VirtualBox Guest Additions with Vagrant
  • In host machine ($ )
vagrant init centos/7
vagrant up
vagrant ssh
  • In guest machine ([vagrant@localhost ~]$ )
sudo yum -y update
sudo yum -y install wget gcc make
cd /opt
VERSION=5.1.10
sudo wget -c http://download.virtualbox.org/virtualbox/$VERSION/VBoxGuestAdditions_$VERSION.iso \
    -O VBoxGuestAdditions_$VERSION.iso
sudo mount VBoxGuestAdditions_$VERSION.iso -o loop /mnt
cd /mnt
sudo sh VBoxLinuxAdditions.run --nox11
cd /opt
sudo rm *.iso
sudo /etc/init.d/vboxadd setup
sudo chkconfig --add vboxadd
sudo chkconfig vboxadd on
exit
  • In host machine ($ )
vagrant reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment