Installing VBoxGuestAdditions in VirtualBox Ubuntu
Try:
Reminder:
Virtualbox and VBGuestAdditions should have same version
vagrant plugin install vagrant-vbguest
vagrant up
If won't work, here are the manual steps to install VirtualBox Guest Additions kernel modules inside the VM:
Download the ISO file, e.g.
wget http://download.virtualbox.org/virtualbox/5.1.4/VBoxGuestAdditions_5.1.4.iso -P /tmp
Mount the ISO file:
sudo mount -o loop /tmp/VBoxGuestAdditions_5.1.4.iso /mnt
Run installer (add -x after sh to debug):
sudo sh /mnt/VBoxLinuxAdditions.run
If you're using Vagrant, installation is much simpler, just run: vagrant vbguest.
VBoxLinuxAdditions problem
sudo apt-get update && sudo apt-get install linux-headers-3.5.0-36-generic
I could even automate it:
sudo apt-get update && sudo apt-get install linux-headers-`uname -r`
sudo apt-get update && sudo apt-get install linux-headers-generic
To find the right version of ISO file, check it at: http://download.virtualbox.org/virtualbox/