2015-06-21 100 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.

一旦你的虛擬機工作正常運行'流浪'了。