carlessanagustin
12/7/2016 - 10:32 AM

VAGRANT: How to update VirtualBox Guest Additions with Vagrant

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