Vagrant up timeout VirtualBox

时间:2015-12-23 14:46:44

标签: timeout vagrant virtualbox

我有一个virtualbo的问题,我尝试在我的电脑上运行vagrant但我得到错误。我尝试解决这个问题,我一直在网上寻找解决方案,但仍然无法解决。有人可以帮我解决这个问题吗?

Bringing machine 'default' up with 'virtualbox' provider...
default: Box 'laravel/homestead' could not be found. Attempting to        find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
default: Loading metadata for box 'laravel/homestead'
default: URL: https://atlas.hashicorp.com/laravel/homestead
default: Adding box 'laravel/homestead' (v0.4.0) for provider: virtualbox
default: Downloading:  https://atlas.hashicorp.com/laravel/boxes/homestead/versions/0.4.0/providers/virtualbox.box
default: Successfully added box 'laravel/homestead' (v0.4.0) for 'virtualbox'!
default: Importing base box 'laravel/homestead'...
default: Matching MAC address for NAT networking...
default: Checking if box 'laravel/homestead' is up to date...
default: Setting the name of the VM: homestead-7
default: Clearing any previously set network interfaces...
default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
default: Forwarding ports...
default: 80 (guest) => 8000 (host) (adapter 1)
default: 443 (guest) => 44300 (host) (adapter 1)
default: 3306 (guest) => 33060 (host) (adapter 1)
default: 5432 (guest) => 54320 (host) (adapter 1)
default: 22 (guest) => 2222 (host) (adapter 1)
default: Running 'pre-boot' VM customizations...
default: Booting VM...
default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key

Timed out while waiting for the machine to boot. This means that
Vagrant was unable to communicate with the guest machine within
the configured ("config.vm.boot_timeout" value) time period.

If you look above, you should be able to see the error(s) that 
Vagrant had when attempting to connect to the machine. These errors
are usually good hints as to what may be wrong.

If you're using a custom box, make sure that networking is properly
working and you're able to connect to the machine. It is a common
problem that networking isn't setup properly in these boxes.
Verify that authentication configurations are also setup properly,
as well.

If the box appears to be booting properly, you may want to increase
the timeout ("config.vm.boot_timeout") value.

我尝试使用VirtualBox 5.0.12在Ubuntu 15.10上运行。在我的上网本上一切正常但我想在桌面PC上使用这个项目

Ps:我的bios中没有任何虚拟化选项

2 个答案:

答案 0 :(得分:2)

有几个这样的问题,但这里有一个答案最多的问题:Vagrant stuck connection timeout retrying,可能你会在那里找到解决方案。

在我的情况下,问题是Vagrant框中的64位Debian - Virtual Box将其视为32位,我不得不在设置中手动更改它。您可以在上面的链接中找到更准确的描述。

答案 1 :(得分:1)

事实证明,在Windows 10计算机上解决此问题几天后,BIOS中的虚拟化设置已关闭,需要打开。

一旦我弄明白了并打开了两个虚拟化设置,我就没有遇到SSH进入我的虚拟机的问题。我还有其他一些小问题,但那些与我的Vagrantfiles或配置文件有关,这只是我自己的定制。

此处也可以看到这个答案: https://stackoverflow.com/a/34305608/6436098