Homestead — Ошибка настройки виртуальной машины

В настоящее время я настраиваю Homestead для Laravel в Windows.

-уже установлены VirtualBox и Vagrant.

-включена виртуальная машина в биосе

-нет «вкладки» в моем файле .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.

person Vince Parker    schedule 21.06.2015    source источник


Ответы (2)


Можно ли запустить машину вручную (из графического интерфейса)? Это сообщение об ошибке обычно указывает на проблемы с VIrtualBox.

person Viktor    schedule 21.06.2015

Эта ошибка обычно возникает из-за того, что «VT-x» отключен в настройках BIOS.

Во-первых, убедитесь, что он включен, и перезапустите его. если вы по-прежнему получаете ту же ошибку, попробуйте запустить ее в графическом интерфейсе виртуальной машины. вы получите всплывающее окно с ошибкой.

Тем не менее, в сообщении об ошибке они дают вам несколько полезных советов.

если вы используете VirtualBox, запустите vagrant up, когда графический интерфейс VirtualBox открыт.

Как только ваша виртуальная машина заработает, запустите «vagrant up» в обычном режиме.

person devnull    schedule 23.06.2015