mohatt / dashbrew

Vagrant build for developing PHP projects on different PHP versions and configurations
490 stars 38 forks source link

Unable to find the file '/provision/main/etc/hosts.json' #10

Closed ghost closed 9 years ago

ghost commented 9 years ago

I get this error after a clean recurisive clone and a vagrant up, no records are added to my hosts file, adding 192.168.10.10 dashbrew.dev manually still doesn't work.

I'm on Win64 / Virtualbox 4.3.24 / Vagrant 1.7.2 w/ hosts provisioner plugin and vagrant-vbguest plugin installed.

Any help is much appriciated.

ghost commented 9 years ago

The problem was actaully due to provisioning not running due to a dodgy characters in the shell script from windows git convering EOLs. Setting git config --global core.autocrlf false solved the problem for me.

chillyistkult commented 9 years ago

It's still not working on Windows 7 Vagrant 1.7.2

==> default: Updating hosts file on the host machine (password may be required)...
==> default: Unable to find the file '/provision/main/etc/hosts.json'
==> default: 'C:\Windows\System32\drivers\etc\hosts' file updated successfully