Note that vagrant may select nfs or rsync as default synced_folder (#1630)

Depending on the installed packages present on the host system, vagrant
may select either nfs or rsync as the default synced_folder
implementation.

Fixes: #419
This commit is contained in:
Darragh Bailey 2022-10-05 00:56:31 +01:00 committed by GitHub
parent 48c31f12b3
commit 2c67743f07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -191,20 +191,25 @@ collisions for multi machine environments gracefully.
Vagrant automatically syncs the project folder on the host to `/vagrant` in Vagrant automatically syncs the project folder on the host to `/vagrant` in
the guest. You can also configure additional synced folders. the guest. You can also configure additional synced folders.
If the type is not specified, vagrant will attempt to select one based on the
highest priority that is usable. This can mean that depending on whether you have
the packages installed to support nfs and or rsync, you may experience different
behaviour on different machines. Recommendation is to be explicit.
**SECURITY NOTE:** for remote Libvirt, nfs synced folders requires a bridged **SECURITY NOTE:** for remote Libvirt, nfs synced folders requires a bridged
public network interface and you must connect to Libvirt via ssh. public network interface and you must connect to Libvirt via ssh.
**NFS** **NFS**
`vagrant-libvirt` supports `vagrant-libvirt` supports
[NFS](https://www.vagrantup.com/docs/synced-folders/nfs) as default with [NFS](https://www.vagrantup.com/docs/synced-folders/nfs) as with
bidirectional synced folders. bidirectional synced folders.
Example with NFS: Example with NFS:
``` ruby ``` ruby
Vagrant.configure("2") do |config| Vagrant.configure("2") do |config|
config.vm.synced_folder "./", "/vagrant" config.vm.synced_folder "./", "/vagrant", type: "nfs"
end end
``` ```