geerlingguy / drupal-vm

A VM for Drupal development
https://www.drupalvm.com/
MIT License
1.37k stars 647 forks source link

NFS error #2155

Closed jmevalentin closed 3 years ago

jmevalentin commented 3 years ago

Issue Type

Your Environment

Vagrant 2.2.14                                                                                                                                                                                                                  "VirtualBox `vboxmanage --version`"                                                                                                                                                                                             'ansible' is not recognized as an internal or external command,                                                                                                                                                                 operable program or batch file.  

Your OS

Full console output

https://gist.github.com/jmevalentin/15caf6f7ec670a5f4b9af4e341b6a6ac

Summary

When trying to run vagrant up, I'm getting the following error:

It appears your machine doesn't support NFS, or there is not an
adapter to enable NFS on this machine for Vagrant. Please verify
that 'nfsd' is installed on your machine, and try again. If you're
on Windows, NFS isn't supported. If the problem persists, please
contact Vagrant support.

Initially, the vm works. I vagrant ssh into the vm, remove the site files, replace them with a git repo, change the enabled host so to use the new site's docroot site. Are there settings I can add to a custom config.yml file to fix this?

geerlingguy commented 3 years ago

If you want to use NFS on windows, you have to do some extra work: http://docs.drupalvm.com/en/latest/other/performance/#nfs

Otherwise, consider switching to SMB or native shares.

jmevalentin commented 3 years ago

I was able to solve this for new installations, though not the existing repo. I needed to add an entry for vagrant_synced_folder_default_type and set it to virtualbox. Additionally, it was important to have a vagrant_synced_folders entry and add a type: virtualbox there as well.

Thanks!