Ever since I’ve upgraded my Mac
to Monteray
, I’ve been having issues with Vagrant
.
Initially, I use to see a vBoxManage
error on terminal
when running vagrant up
. I posted a question on this on SO previously, see here for details.
Today, I uninstalled VirtualBox
again (removed VirtualBox VMs
folder and moved application to trash) and reinstalled VirtualBox 6.1.3
for OS X hosts` (link here).
I then ran vagrant up
on terminal
and it successfully compiled:
After seeing the famous green teddy, I tried going to vvv.test
but, the page doesn’t load. I’ve tried accessing URLs of sites that have been provisioned
before, but they too do not load.
I’ve also ran vagrant up --debug
, and nothing concerning was seen.
My Vagrant
version is 2.2.19
Unsure what steps to take next?
Edit:
Steps taken:
- Have ran
vagrant up --provision
to provision sites inconfig.yml
file (config.yml
file can be seen below) - Have tried to access
website-dev.test
, page doesn’t load - Have tried to access
vvv.test
, page doesn’t load - Have ran
vagrant reload --provision
and repeated steps 2 and 3, but same results - Have ran
vagrant halt
andvagrant up
and repeated steps 2 and 3, but same results
I don’t believe there’s an issue in my config.yml
file, as before Monteray
update, everything was working fine (and I’ve made no changes to my yml
file since). But, to cover all scenario’s, here is my config.yml
file:
sites:
website-dev:
skip_provisioning: false
description: ""
hosts:
- website-dev.test
custom:
wpconfig_constants:
WP_DEBUG: true
WP_DEBUG_LOG: true
WP_DISABLE_FATAL_ERROR_HANDLER: true
wordpress-trunk:
skip_provisioning: true
description: "An svn based WP Core trunk dev setup, useful for contributor days, Trac tickets, patches"
repo: https://github.com/Varying-Vagrant-Vagrants/custom-site-template-develop.git
hosts:
- trunk.wordpress.test
wordpress-meta-environment:
skip_provisioning: true
description: "An environment useful for contributions to the WordPress meta team."
repo: https://github.com/WordPress/meta-environment.git
hosts:
- wp-meta.test
custom:
provision_site:
"buddypressorg.test": true
"jobs.wordpressnet.test": true
"wordcamp.test": true
"wordpressorg.test": true
"wordpresstv.test": true
utilities:
core:
- tls-ca
- phpmyadmin
vm_config:
memory: 1600
cores: 2
general:
db_backup: true
db_restore: true
db_share_type: false
vagrant-plugins:
disksize: 10GB
In regards to vagrant ssh
, I’m unsure on what steps I would need to take to get vvv.test
to start working again here, can’t see anything on the docs for this also?
2
Answers
Thanks to guidance from @Tinxuanna, I've managed to solve the issue (finally!).
For anyone else having similar issues, here's what I did:
/etc/hosts
folderhosts
and open it in a text editor.vagrant
(I kept a backup of the original file just in case)hosts
file the IP addresses removed, I ranvagrant up --provision
vagrant up
vvv.test
After trying the solutions provided by others, I determined that the problem on my machine was a wrong ip range in Vagrantfile. To solve this:
defaults['private_network_ip'] = '192.168.56.4'
to different rangevagrant up --provision
If Freddy’s solution doesn’t work, then give this a try.