Vagrant up prompt: Timed out while waiting for the machine to boot.

problem description

homestead after installation vagrant up prompt:

clipboard.png

:

clipboard.png

but my Vagrantfile configuration file is as follows:

-sharp -*- mode: ruby -*-
-sharp vi: set ft=ruby :

require "json"
require "yaml"

VAGRANTFILE_API_VERSION ||= "2"
confDir = $confDir ||= File.expand_path(File.dirname(__FILE__))

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 ">= 2.1.0"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
    if File.exist? aliasesPath then
        config.vm.provision "file", source: aliasesPath, destination: "/tmp/bash_aliases"
        config.vm.provision "shell" do |s|
            s.inline = "awk "{ sub(\"\r$\", \"\"); print }" /tmp/bash_aliases > /home/vagrant/.bash_aliases"
        end
    end

    if File.exist? homesteadYamlPath then
        settings = YAML::load(File.read(homesteadYamlPath))
    elsif File.exist? homesteadJsonPath then
        settings = JSON::parse(File.read(homesteadJsonPath))
    elsevb.gui
        abort "Homestead settings file not found in -sharp{confDir}"
    end

    Homestead.configure(config, settings)

    if File.exist? afterScriptPath then
        config.vm.provision "shell", path: afterScriptPath, privileged: false, keep_color: true
    end

    if Vagrant.has_plugin?("vagrant-hostsupdater")
        config.hostsupdater.aliases = settings["sites"].map { |site| site["map"] }
    elsif Vagrant.has_plugin?("vagrant-hostmanager")
        config.hostmanager.enabled = true
        config.hostmanager.manage_host = true
        config.hostmanager.aliases = settings["sites"].map { |site| site["map"] }
    end
end

have you encountered this problem?

Mar.29,2021

I don't know which one was modified successfully, just do the following two actions!

  1. configuration file Vagrantfile

add: config.ssh.insert_key = false

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
    config.ssh.insert_key = false
    if File.exist? aliasesPath then
        config.vm.provision "file", source: aliasesPath, destination: "/tmp/bash_aliases"
        config.vm.provision "shell" do |s|
            s.inline = "awk '{ sub(\"\r$\", \"\"); print }' /tmp/bash_aliases > /home/vagrant/.bash_aliases"
        end
    end
  1. enable the virtualization of BIOS on the computer motherboard

reference: https://blog.csdn.net/github_.
Asustek motherboard reference: from=singlemessage&isappinstalled=0 "rel=" nofollow noreferrer "> https://zhidao.baidu.com/ques.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3336a-2b1dc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3336a-2b1dc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?