Skip to content

Instantly share code, notes, and snippets.

@cullylarson
Last active December 19, 2015 21:28
Show Gist options
  • Save cullylarson/8e8e3df2401e1d147e31 to your computer and use it in GitHub Desktop.
Save cullylarson/8e8e3df2401e1d147e31 to your computer and use it in GitHub Desktop.

Addresses something like this:

Got different reports about installed GuestAdditions version:
Virtualbox on your host claims:   4.3.10
VBoxService inside the vm claims: 5.0.10

Option 1

% vagrant plugin install vagrant-vbguest

Option 2

% vagrant up
% VBoxManage list vms
% BoxManage guestproperty set <uidd> /VirtualBox/GuestAdd/Version
% vagrant ssh
% sudo su -
% /opt/VBoxGuestAdditions-5.0.10/uninstall.sh
% rmdir /opt/VBoxGuestAdditions-5.0.10
% reboot
% vagrant ssh
% sudo su -
% apt-get install dkms gcc
% wget http://download.virtualbox.org/virtualbox/5.0.12/VBoxGuestAdditions_5.0.12.iso
% mount -o loop VBoxGuestAdditions_5.0.12.iso /mnt
% /mnt/VBoxLinuxAdditions.run
% exit
% exit
% vagrant halt
% vagrant up

At this point, Vagrant will actually uninstall the GuestAdditions you just installed (because it wants to install 5.10 and you have 5.12), and then install a fresh copy of 5.10. For some reason, after it does this, everything works great.

I tried doing the same thing with the 5.0.10 ISO, but the version isn't quite the same (5.0.10 r104061 vs. 5.0.10), and it didn't work. I think because the fresh install tries to use the same /opt folder and maybe just doesn't overwrite anything?

Options 3

Overwrite ~/Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso with http://download.virtualbox.org/virtualbox/5.0.10/VBoxGuestAdditions_5.0.10.iso and then start the VM.

% vagrant up
% vagrant ssh
% sudo rm /tmp/VBoxGuestAdditions.iso
% exit
% vagrant halt
% wget -P ~/Downloads http://download.virtualbox.org/virtualbox/5.0.10/VBoxGuestAdditions_5.0.10.iso
% sudo mv /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso.orig
% sudo cp ~/Downloads/VBoxGuestAdditions_5.0.10.iso /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso
% vagrant up

Option 4

If all else fails, just uninstall the vagrant-vbguest plugin and ignore the error message:

% vagrant plugin uninstall vagrant-vbguest

This is especially useful if you have the correct version installed, but vagrant isn't removing the revision number (which apparently they'll do in a future release), and you're getting an error like this one:

Got different reports about installed GuestAdditions version:
Virtualbox on your host claims:   5.0.12 r104815
VBoxService inside the vm claims: 5.0.12

NOTE: After I uninstalled vagrant-vbguest, I stopped getting the message. So apparently it's the plugins fault.

References

dotless-de/vagrant-vbguest#95 (comment) http://sharadchhetri.com/2014/10/07/ubuntu-14-04-install-virtualbox-guest-additions-also-create-videos/ dotless-de/vagrant-vbguest#111

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment