Sharing a firewall is slower if by default you have thousands of files and a base directory of roaming monsters, so try disabling the default share:
config.vm.synced_folder ".", "/vagrant", disabled: true
You can try turning on the FS cache . I did not see much of the difference whether it was turned on or not, but in any case it remained turned on ... Install cachefilesd in the guest system and add fsc to the mount options:
config.vm.synced_folder "src/", "/mnt/project", type: "nfs", mount_options: ['rw', 'vers=3', 'tcp', 'fsc']
And you will probably have NFS permissions issues, you can use the bindfs plugin to do this:
config.bindfs.bind_folder "/mnt/project", "/var/www/drupal", owner: "www-data", group: "www-data"
Here's the final Vagrantfile we use to develop drupal8:
["vagrant-bindfs", "vagrant-vbguest"].each do |plugin| unless Vagrant.has_plugin?(plugin) raise plugin + ' plugin is not installed. Hint: vagrant plugin install ' + plugin end end Vagrant.configure("2") do |config| config.vm.box = "geerlingguy/ubuntu1604"
source share