Last active
January 27, 2020 11:53
-
-
Save fedecarg/cc2820a535bc7c78763c0b3c9df1900f to your computer and use it in GitHub Desktop.
GuestAdditions versions on your host (version) and guest (version) do not match
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
# | |
# How to update VirtualBox Guest Additions with vagrant | |
# | |
$ vagrant up | |
# Check the guest additions version: | |
$ vagrant vbguest --status | |
# If there's a version mismatch, you should see this message: | |
# [default] GuestAdditions versions on your host (x.x.x) and guest (x.x.x) do not match. | |
$ vagrant ssh | |
$ cd /opt | |
# Download the version of the iso file you want to install from http://download.virtualbox.org/virtualbox | |
$ sudo wget -c http://download.virtualbox.org/virtualbox/4.3.36/VBoxGuestAdditions_4.3.36.iso -O VBoxGuestAdditions_4.3.36.iso | |
$ sudo mount VBoxGuestAdditions_4.3.36.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 | |
# 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