
I suffered a year and a half with one unpleasant feature of ubuntu under vagrant — a damn slow shared folder. Simple benchmarks showed a drop in the performance of I / O operations by almost 2 orders of magnitude; projects in php worked up to 10 times slower than on the native host. So, today I’ve finally gotten bogged down, I searched well ... and it turned out that there is a solution, and now I just can’t help sharing it with someone. The solution is simple, it will seem obvious to someone, someone knew about it from birth (well, or it will be argued that way), but I am sure that not everyone knows about it.
And what's the problem then?
By default, vagrant uses the vboxsf file system, which sometimes works extremely slowly (when this “sometimes” happens - I don't know, it always slowed me down). You can find out your file system type using the mount command.

')
You can replace the file system, but the problem is that the official documentation ... is lying! She says they say yes, sometimes there are problems with the performance of shared folders, in such cases use nfs and you will be happy. And below the postscript - on windows does not work, and do not try.

Do you know what the salt is? Yes, it works on windows, you can not believe the documentation!
And what to do?
Go here
https://github.com/winnfsd/vagrant-winnfsd , read, set, rejoice. For those who are too lazy to read:
- run in windows console “vagrant plugin install vagrant-winnfsd”
- add two lines to vagrantfile
config.vm.network "private_network", type: "dhcp"
config.vm.synced_folder ".", "/ vagrant", type: "nfs"
Reboot vagrant, done! I do not know, maybe there are some pitfalls, maybe someone will not help, but for me, it seems, it works fine. My configuration: Windows 10 (host) + ubuntu 14.04 (guest). My project on laravel accelerated the return of the page from 6.5 seconds to 0.5, which is good news.
PS The post turned out to be short, muddled, but if I had gotten it a year ago, I would have been extremely happy.
UPD.
The comments say that it is unstable. After a day of work, I was convinced myself - there are problems with file synchronization. So, not everything is as perfect as it seemed at first glance ...