Hi guys,
First, I'm French, and sorry for my bad English ;)
Well, I starting learn Laravel ~1 month ago and I use Homestead box for a better environment. But, I'm on Windows and by default, Vagrant use a mouting system very very slow when you have much files to load. For example, I need between 3 and 6 seconds to have a simple page on my webview (fully loaded).
After that, I visited Google, StackOverflow, Laracast forum and this forum to find a solution, but without any result.
I've tried NFS mouting (Yes I know, on Windows it's not possible), but I try anyway. After my first failure, I've tried SMB mouting, but I have a errors when Vagrant try to mount files like that :
C:\Vagrant\Homestead (master)
λ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'laravel/homestead' is up to date...
==> default: Preparing SMB shared folders...
default: You will be asked for the username and password to use for the SMB
default: folders shortly. Please use the proper username/password of your
default: Windows account.
default:
default: Username: PallMallShow
default: Password (will be hidden):
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 80 => 8000 (adapter 1)
default: 443 => 44300 (adapter 1)
default: 3306 => 33060 (adapter 1)
default: 5432 => 54320 (adapter 1)
default: 22 => 2222 (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Connection timeout. Retrying...
==> default: Machine booted and ready!
GuestAdditions 4.3.26 running --- OK.
==> default: Checking for guest additions in VM...
==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
==> default: Mounting SMB shared folders...
default: C:/Vagrant/Homestead/www => /home/vagrant/www
Failed to mount folders in Linux guest. This is usually because
the "vboxsf" file system is not available. Please verify that
the guest additions are properly installed in the guest and
can work properly. The command attempted was:
mount -t cifs -o uid=`id -u vagrant`,gid=`getent group vagrant | cut -d: -f3`,sec=ntlm,username=PallMallShow,pass=PASSWORDHIDDEN //192.168.33.1/1023868ffabedd49a88ba96ed0f50c04 /home/vagrant/www
mount -t cifs -o uid=`id -u vagrant`,gid=`id -g vagrant`,sec=ntlm,username=PallMallShow,pass=PASSWORDHIDDEN //192.168.33.1/1023868ffabedd49a88ba96ed0f50c04 /home/vagrant/www
The error output from the last command was:
mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
I'm so desperate to have a good dev server.
If you have any idea, any revolutionary mouting system or blue genuis in a magic lamp, I take anything ! For information, I run with vagrant 1.7.2 and VirtualBox 4.3.26.
PS : I don't have any password on my Windows account for the moment, so maybe the scripts of mouting doesn't take this option ?
have you tried this? https://websanova.com/blog/laravel/speeding-up-homestead-on-windows-using-nfs
I gotta give it a shot. I will reply here when I get it done.
Btw, just installing winnfsd (vagrant plugin install vagrant-winnfsd) plugin and adding "type: nfs" to my folder in homestead.yaml worked for me.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community