我目前在Windows中为 Laravel 设置Homestead。
- 已经安装了VirtualBox和Vagrant。
启用BIOS中的虚拟机
-no“tab”在我的.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 :(得分:0)
您可以手动启动机器(从GUI)吗?此错误消息通常表示VIrtualBox问题。
答案 1 :(得分:0)
此错误通常是因为" VT-x"在BIOS设置中被禁用。
首先,确保已启用并重新运行它。如果仍然出现相同的错误,请尝试在VM GUI中运行。你会收到错误的弹出窗口。
仍然,在错误消息中,他们为您提供了一些不错的提示。
如果您正在使用VirtualBox,请在VirtualBox GUI上运行
vagrant up
是开放的。
一旦你的虚拟机正在运行,就可以使用'流浪汉''一般。