I've been working with Homestead for quite some time. A few days ago, I deleted ubuntu because it had several instability problems, I changed to mint with the promise of being a little more stable and I got this error... Thinking that I had some problem in the distro, I went back to Ubuntu Mate. But the error turns out to persist
I saw someone raise a similar issue on es.stack but they didn't delve too deep. So I decided to open this.
I found several solutions, like entering the vagrant gui (which I can do) and changing the ports and some other settings without results
The one they suggest the most is to change the value of "config.vm.boot_timeout" in the VagrantFile to 600. But the truth is that my vagrantfile is not the same as the one they propose and this variable does not appear. So I don't know how to add it:
# -*- mode: ruby -*-
# vi: set ft=ruby :
require 'json'
require 'yaml'
VAGRANTFILE_API_VERSION ||= "2"
confDir = $confDir ||= File.expand_path("~/.homestead")
homesteadYamlPath = confDir + "/Homestead.yaml"
homesteadJsonPath = confDir + "/Homestead.json"
afterScriptPath = confDir + "/after.sh"
aliasesPath = confDir + "/aliases"
require File.expand_path(File.dirname(__FILE__) + '/scripts/homestead.rb')
Vagrant.require_version '>= 1.8.4'
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
if File.exist? aliasesPath then
config.vm.provision "file", source: aliasesPath, destination: "~/.bash_aliases"
end
if File.exist? homesteadYamlPath then
settings = YAML::load(File.read(homesteadYamlPath))
elsif File.exist? homesteadJsonPath then
settings = JSON.parse(File.read(homesteadJsonPath))
end
Homestead.configure(config, settings)
if File.exist? afterScriptPath then
config.vm.provision "shell", path: afterScriptPath, privileged: false
end
if defined? VagrantPlugins::HostsUpdater
config.hostsupdater.aliases = settings['sites'].map { |site| site['map'] }
end
end
Try to destroy it, recreate it and nothing. I would like to try an older version of vagrant. I don't remember which one I had before.
vagrant version: 1.8.7 vbox version: 5.0.24
Any solution?
The Vagrantfile is nothing more than a Ruby file and what Vagrant does at the end of loading the configurations is to mix them all (the ones from the virtual machine and its overrides like this one from Homestead).
In that vein you can put the config line anywhere other than inside a conditional or similar, perhaps before the Homestead config script is included (it's just another Ruby file).
If you're using Vagrant 1.8.7, it seems you should use Virtualbox 5.1+, which works with Vagrant 1.8.4+
If you are using a version of Vagrant lower than 1.8.4, you will need to use Virtualbox 5.0.x