'Vagrant box after rebooting itself doesn't mount synced folders
When I reboot vagrant box from inside it with sudo /sbin/shutdown -r now
synced folders remain empty.
How can I manage remounting synced folders?
Solution 1:[1]
you should run vagrant reload
from the host; if you reboot from the VM sync folder will not be remount as it needs to be done from the host
If the reboot is done automatically and after its done you will need to issue the mount command yourself
sudo mount -t vboxsf <name of shared> <path>
for example
sudo mount -t vboxsf vagrant /vagrant/
Solution 2:[2]
As a workaround, re-mount the volumes, e.g.:
sudo mount -a
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | |
Solution 2 | h q |