winnfsd / vagrant-winnfsd

Manage and adds support for NFS for Vagrant on Windows.
Other
570 stars 61 forks source link

Can't access to NFS shared folders from guest? (Windows 8.1 host, Homestead guest) #42

Open rombat opened 9 years ago

rombat commented 9 years ago

Here's my setup: My host OS is Windows 8.1, and my guest VM is Vagrant Homestead (Ubuntu 14.04).

Since it was terribly slow with VirtualBox shared folders, I installed vagrant winnfsd. Then I edited my Homestead.yaml, and added type: nfs after my folder map:

folders:
- map: D:/VagrantBoxes/HomesteadImproved
  to: /home/vagrant/Code
  type: nfs

If I do a vagrant up, everything is working just fine: the folder is mounted, and I can see my projet from my host machine.

The only problem is, when I vagrant ssh, if I want to go to my project folder (cd ~/Code/laravel), my terminal (Git for Windows) just hang and I can't do anything more. I can ls ~/Code/laravel, but if I try to cd ~/Code/laravel, it's stuck.

It only happens if the folder is mounted with NFS. If I use VirtualBox shared folders, I can browse whatever I want (but laravel is painfully slow).

Does anyone know how to fix this? I'm sure I'm not the only one to have tried this.

Thanks in advance.

rombat commented 9 years ago

Ok, here's the weird thing. I've found what the problem is, even if I don't understand why: I was using zsh with oh-my-zsh inside my VM. If I use bash, I can do whatever I want inside the NFS shared folder. But as soon as I try with zsh, my shell is stuck.

I've tried to remove oh-my-zsh: no problem, I can cd into my NFS shared folder. I don't understand.

Any idea?

la2ha commented 8 years ago

I was using zsh with oh-my-zsh inside my VM put git config --global --add oh-my-zsh.hide-status 1