Sharing folders with rsync

Sharing files and folders with Vagrant machines is a typical use of Vagrant in a development environment. Files on a host machine can be shared with a running Vagrant machine, giving developers the advantage of being able to execute code in a production-like environment while having the ability to use desktop productivity tools (IDEs and text editors) to modify code. There are some cases where sharing folders between a host and a guest might not be possible, or might not perform well for the task at hand.

Two possible examples are:

  • Processes that generate significant disk activity (I/O) on shared folders: Hypervisor folder sharing (particularly VirtualBox) can cause Vagrant processes to become I/O bound. Using NFS can ...

Get Vagrant Virtual Development Environment Cookbook now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.