jason-w
4/20/2017 - 5:36 PM

Vagrant VirtualBox 5.1.20 Guest Additions manual install and mount issue solutions

Vagrant VirtualBox 5.1.20 Guest Additions manual install and mount issue solutions

# Log into running vagrant instance:
vagrant ssh

# in vagrant instance:
sudo su
cd /tmp
wget http://download.virtualbox.org/virtualbox/5.1.20/VBoxGuestAdditions_5.1.20.iso
mkdir /media/VBoxGuestAdditions
mount -o loop,ro VBoxGuestAdditions_4.1.20.iso /media/VBoxGuestAdditions
sh /media/VBoxGuestAdditions/VBoxLinuxAdditions.run
rm VBoxGuestAdditions_5.1.20.iso
umount /media/VBoxGuestAdditions
rmdir /media/VBoxGuestAdditions
exit
exit # exit out of ssh

# reload vagrant instance
vagrant reload

# During reload I had issues with mounts so I followed these directions:
# https://stackoverflow.com/questions/43492322/vagrant-was-unable-to-mount-virtualbox-shared-folders/43497420#43497420

vagrant ssh

# inside vagrant instance
sudo ln -sf /opt/VBoxGuestAdditions-5.1.20/lib/VBoxGuestAdditions/mount.vboxsf /sbin/mount.vboxsf

# logout
exit

# reload vagrant
vagrant reload

Issues with vagrant vbguest not working correctly with VBox Guest Additions 5.1.20. Links and command that I followed to resolve issues.

Vagrant Docs - Install vbox guest additions via the command line

http://www.vagrantup.com/docs/virtualbox/boxes.html

VirtualBox 5.1.20 Guest Addtions

http://download.virtualbox.org/virtualbox/5.1.20/VBoxGuestAdditions_5.1.20.iso

Issues with mounts

https://stackoverflow.com/questions/43492322/vagrant-was-unable-to-mount-virtualbox-shared-folders/43497420#43497420