Closed grtjn closed 7 years ago
This is likely caused by guest-addons that are added by Vagrant, are not in synch with VBox. Vagrant comes with addons for VBox 4, not for VBox 5.
Solution is relatively simple:
vagrant plugin install vagrant-vbguest
That will make sure correct addons are loaded. See also: http://stackoverflow.com/questions/22717428/vagrant-error-failed-to-mount-folders-in-linux-guest
I should add a note to the README about this..
I managed to get the shared folders working by following the instructions here
and then these steps: Create shared folder with host
Host: Mac OS Guest: centOs
sudo mkdir /mnt/share sudo mount -t vboxsf shared_folder /mnt/share [shared_folder is the name of your shared folder]
sudo vim /etc/fstab
add a line at the bottom of the file, it looks like this (get the gid/uid from running id
):
shared_folder /mnt/share vboxsf rw,gid=100,uid=1000,auto 0 0
vagrant-vbguest comes with commands to install the correct guest additions version: https://github.com/dotless-de/vagrant-vbguest#running-as-a-command
Doing that after a vagrant up (--no-provision), and then doing vagrant halt & vagrant up should fix issues too. See also #104..
Using VirtualBox 5+, one might observe errors like: