What is the difference between shared folder and s

2019-06-18 04:23发布

问题:

While going through Vagrant tutorials, I have seen two options for sharing folders between host and guest machines - shared folders and synced folders. What are the difference between them?

Or, is synced folder the new name for shared folder, in Vagrant 2?

回答1:

Shared Folders is more VirtualBox specific (vboxsf) and have known performance issues as number of files grows.

Vagrant v2 (For vagrant 1.1.x and 1.2.x) docs use a more generic name Synced Folder, which includes the default vboxsf and NFS.

In addition to vboxsf and NFS, sshfs is also worth looking into if your host is running Linux.



回答2:

As you guessed, synced folder is the new, more generic name for a feature that is not only VirtualBox specific anymore as of Vagrant 1.1.



标签: vagrant