83 private links
Example project showing how to test Ansible roles with Molecule using Testinfra and a multiscenario approach with Docker, Vagrant & AWS EC2 as infrastructure providers - jonashackt
Make vagrant use another folder / mount / directory
Ansible Best Practices
(Vagrant Test environment)
Starting with version 1.5 Vagrant introduced new "rsync synced folders" feature.
So in my case type rsync was automatically chosen, which is one-way sync: from host to guest.
To make folders sync in two-way I added explicit definition in my Vagrantfile:
config.vm.synced_folder ".", "/vagrant", type: "virtualbox"
Of course, this will work only for VirtualBox.
Two way sync is useful for workflows, where apllication on guest machine creating files, for example, database migration files in modern web frameworks.
Note: virtualbox synced folders have known performance issues when your project has large amount of files.
shareimprove this answer
answered Dec 24 '15 at 7:06
Anton Belonovich
624918
After a fresh install, you are likely to receive the following error creating the shared folder: Vagrant was unable to mount VirtualBox shared folders. This is usually because the filesystem "vboxsf" is not available. This filesystem is made available via the VirtualBox Guest Additions and kernel module. Please verify that these guest additions are properly installed in the guest. This is not a bug in Vagrant and is usually caused by a faulty Vagrant box. Install Guest Additions vagrant plugin install vagrant-vbguest