Created
January 17, 2016 11:49
-
-
Save nurrony/7a6bfb02d4e48d6cfeb5 to your computer and use it in GitHub Desktop.
Update VirtualBox Guest Additions in Vagrant box
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| nurrony@devmachine:vagrant-playbox$ vagrant up | |
| #Let it finish the initial tasks to boot up your vagrant box | |
| nurrony@devmachine:vagrant-playbox$ vagrant ssh | |
| vagrant@vagrant-playbox:~$ sudo yum -y update | |
| vagrant@vagrant-playbox:~$ cd /opt | |
| vagrant@vagrant-playbox:~$ sudo wget -c http://download.virtualbox.org/virtualbox/5.0.12/VBoxGuestAdditions_5.0.12.iso -O VBoxGuestAdditions_5.0.12.iso | |
| vagrant@vagrant-playbox:~$ sudo mount VBoxGuestAdditions_5.0.12.iso -o loop /mnt | |
| vagrant@vagrant-playbox:~$ cd /mnt | |
| vagrant@vagrant-playbox:~$ sudo sh VBoxLinuxAdditions.run --nox11 | |
| vagrant@vagrant-playbox:~$ cd /opt | |
| vagrant@vagrant-playbox:~$ sudo rm *.iso | |
| vagrant@vagrant-playbox:~$ sudo /etc/init.d/vboxadd setup | |
| vagrant@vagrant-playbox:~$ sudo chkconfig --add vboxadd | |
| vagrant@vagrant-playbox:~$ sudo chkconfig vboxadd on | |
| vagrant@vagrant-playbox:~$ exit | |
| # Now check that the Guest Additions work | |
| nurrony@devmachine:vagrant-playbox$ vagrant halt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment