Solving Laravel Homestead Sync Issue with VirtualBox in Windows 10

Solving Laravel Homestead Sync Issue with VirtualBox in Windows 10

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.

Prequisites

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: C:\Users\YOUR_USERNAME\

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

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 C:\Users\YOUR_USERNAME\Homestead\Homestead.yaml.

This is how my C:\Users\YOUR_USERNAME\Homestead.yaml looks like

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.

Leave a reply:

Your email address will not be published.