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
% vagrant plugin install vagrant-vbguest
% 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?
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
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.
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