Reputation: 272
On my work machine (with the same configuration) its works fine. But on a home laptop is very slow. I tried to destroy it and then to up
, but no effect.
This is my config:
ip: "192.168.10.10"
memory: 2048
cpus: 2
provider: virtualbox
ssl: true
folders:
- map: ~/pr/my-site.loc
to: /home/vagrant/my-site.loc
sites:
- map: my-site.loc
to: /home/vagrant/my-site.loc/public
type: apache
php: "7.4"
databases:
- my_site_loc
When I run vagrant up
I get several warnings:
P. S. Maybe a memory leak ...
P. S. 2 Opened UI VirtualBox. Fixed the errors that he highlighted:
Got better. At least it doesn't turn off ...
Upvotes: 1
Views: 441
Reputation: 2241
Most Probably the slowness is due to the "share folder"
Try to use the NFS.
folders:
- map: ~/code/project1
to: /home/vagrant/project1
type: "nfs"
In short you can refer the Laravel Documentation: https://laravel.com/docs/8.x/homestead#configuring-shared-folders
In detail walkthrough, you can refer this tutorial https://dogcomp.medium.com/install-laravel-8-x-on-win-10-with-homestead-virtualbox-ec996f9a2cb6
Upvotes: 1