/vagrant not populated with files

后端 未结 2 813
孤街浪徒
孤街浪徒 2021-02-09 19:05

I have Vagrant (1.7.4) configured with the default configuration from vagrant init using the latest version of VirtualBox (5.0.16 r105871) on OS X (10.11.4) and the

相关标签:
2条回答
  • 2021-02-09 19:49

    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

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题