macOS Big Sur 11.2.1 (20D74)
---
ip: "192.168.10.10"
memory: 4096
cpus: 4
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: /Users/user/Projects/one
to: /home/vagrant/one
- map: /Users/user/Projects/two
to: /home/vagrant/two
sites:
- map: one.local.com
to: /home/vagrant/one/public
php: "7.4"
- map: two.local.com
to: /home/vagrant/two/public
php: "7.1"
databases:
- one
- two
features:
- mysql: true
- rabbitmq: true
- mariadb: false
- postgresql: false
- ohmyzsh: false
- webdriver: false
#services:
# - enabled:
# - "postgresql@12-main"
# - disabled:
# - "postgresql@11-main"
ports:
- send: 80
to: 80
- send: 3306
to: 3306
- send: 15672
to: 15672
https://gist.github.com/petcumihai/0276d8ed753c7938e850cfd766bfe612
Don't freeze
It freezes randomly. I gradually increased the VM's resources (CPU and RAM) and it still froze.
At first I thought it was related to RabbitMQ but it happens with the service turned off as well.
I manage to do everything I need (SSH into the machine, run the app, develop, etc) but for no reason it freezes to the point I have to forcefully remove the VM and recreate the box.
I'm not able to figure out any pattern or trigger for this behaviour. It freezes for no apparent reason.
Just wait I guess
Add this to after.sh (and run it in the VM if you don't want to re-provision)
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
Add this to
after.sh(and run it in the VM if you don't want to re-provision)
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
Will do that right now. I've just installed a fresh homestead setup and ran apt update; apt upgrade -y and froze again.
Will come back with feedback on your solution. 馃檹 Thanks!
I've also ran into those random freeze issues. Just ran your command. Will report if this resolves this issue.
Add this to
after.sh(and run it in the VM if you don't want to re-provision)
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
Nice! This seem to have worked. Managed to upgrade installed packages and run heavy work loads on the VM for almost 3 hours now and hasn't froze. 鉂わ笍
I'm guessing this fix should get reviewed and pushed directly into after.sh.
'm guessing this fix should get reviewed and pushed directly into
after.sh.
We should fix this upstream in https://github.com/laravel/settler
Will be resolved in the next base box version https://github.com/laravel/settler/commit/20c1fd3bd1850bc4360fa14e6ad76f067ae44c7b
Most helpful comment
Add this to
after.sh(and run it in the VM if you don't want to re-provision)sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target