mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
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:
parent
48c31f12b3
commit
2c67743f07
@ -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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user