I was very frustrated with setting up Laravel Homestead to sync with my windows 10. So hopefully this tutorial can help you who are facing the same issue with me.
Before we start, let me tell you that I have tested with the following app versions:
- VirtualBox 5.1.14 & 5.1.18
- Vagrant 1.9.1 & 1.9.2
If you are not sure, just download:
- VirtualBox 5.1.18
- Vagrant 1.9.2
You can use the below step if you have followed the Laravel documentation https://laravel.com/docs/5.2/homestead. I will probably make a full tutorial on how to setup Laravel with Windows 10 later on.
Before we start, you need to enable Hardware Virtualization (VT-x) in your BIOS.
Fixing Sync Issue in Windows 10
For you who have already followed the steps in: https://laravel.com/docs/5.2/homestead, you can go to your user directory folder:
Not sure if it’s a bug in vagrant or in virtualbox itself, but this is how I fixed the sync issue.
The documentation stated that you need to go to
.homestead folder (
C:\Users\YOUR_USERNAME\.homestead\) and modify the
Homestead.yaml. However I found it that instead of modifying
Homestead.yaml in that folder, you are supposed to modify
Homestead.yaml inside the
Homestead git folder. So if you followed the step in the Laravel documentation correctly which is below
git clone https://github.com/laravel/homestead.git Homestead
You should have the Homestead repository in this path:
C:\Users\YOUR_USERNAME\Homestead\ which means the file that you need to modify is in this path
This is how my
C:\Users\YOUR_USERNAME\Homestead.yaml looks like
- map: C:/vagrant_code/homestead
- map: homestead.app
# - id: foo
# token: bar
# client-id: foo
# client-token: bar
# - send: 50000
# to: 5000
# - send: 7777
# to: 777
# protocol: udp
After updating your
Homestead.yaml file, you can run
vagrant reload --provision or
homestead reload --provision if you have added homestead in your .bash_profile.