/vagrant not populated with files

I've figured out what the issue is - while the /vagrant directory existed on the machine, the shared folder was not being automatically mounted by VirtualBox, despite the auto-mount feature being set to on in the GUI, and the debug output saying that it had indeed been mounted.

Running sudo mount -t vboxsf vagrant /vagrant manually solves the issue. I put this line into the prestart script for my upstart job to start my server.


This is more likely to happen if the VM was shutdown or rebooted from within the VM.

Halt the VM using "vagrant halt" and start the VM again using "vagrant up". This is should automatically mount it under /vagrant

Tags:

Vagrant