2015-06-21 133 views
0

我目前在Windows中设置家园为LaravelHomestead - 错误设置虚拟机

- 已安装VirtualBox和Vagrant。

- 启用虚拟机BIOS

- 没有“标签”在我.YAML文件中只空格

到目前为止,这是我已经解决了所有问题。

我已经运行:

homestead up 

但它返回一个错误:

Bringing machine 'default' up with 'virtualbox' provider... 
==> default: Importing base box 'laravel/homestead'... 
←[K==> default: Matching MAC address for NAT networking... 
==> default: Setting the name of the VM: homestead 
==> 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 => 8000 (adapter 1) 
    default: 443 => 44300 (adapter 1) 
    default: 3306 => 33060 (adapter 1) 
    default: 5432 => 54320 (adapter 1) 
    default: 22 => 2222 (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 
    default: Warning: Connection timeout. Retrying... 
    default: Warning: Connection timeout. Retrying... 
    default: Warning: Connection timeout. Retrying... 
    default: Warning: Remote connection disconnect. Retrying... 
    default: Warning: Remote connection disconnect. Retrying... 
    default: Warning: Remote connection disconnect. Retrying... 
The guest machine entered an invalid state while waiting for it 
to boot. Valid states are 'starting, running'. The machine is in the 
'unknown' state. Please verify everything is configured 
properly and try again. 

If the provider you're using has a GUI that comes with it, 
it is often helpful to open that and watch the machine, since the 
GUI often has more helpful error messages than Vagrant can retrieve. 
For example, if you're using VirtualBox, run `vagrant up` while the 
VirtualBox GUI is open. 

回答

0

你能(从GUI)手动启动机器?此错误消息通常表示VIrtualBox问题。

0

此错误通常发生是因为在您的BIOS设置中禁用了“VT-x”。

首先,确保它已启用并重新运行它。如果仍然出现相同的错误,请尝试在VM GUI中运行。您将收到错误弹出窗口。

不过,在错误消息中,他们会为您提供一些不错的提示。

if you're using VirtualBox, run vagrant up while the VirtualBox GUI is open.

一旦你的虚拟机工作正常运行'流浪'了。