Vagrant :: Невозможно запустить vagrant up; Время ожидания соединения истекло. Повторная попытка

Vagrant :: Невозможно запустить vagrant up; Время ожидания соединения истекло. Повторная попытка

Я начинаю миграцию с wamp на laravel homestead vagrant box, однако я оказался в тупике, когда дело дошло до запуска box. Я скачал и настроил все ресурсы и запустил vagrant up, чтобы загрузить box, однако вот результат vagrant up:

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'laravel/homestead' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Fixed port collision for 22 => 2222. Now on port 2200.
==> 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: 3306 => 33060 (adapter 1)
    default: 5432 => 54320 (adapter 1)
    default: 22 => 2200 (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:2200
    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: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
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.

Вот результат vagrant halt:

$ vagrant halt
==> default: Attempting graceful shutdown of VM...
    default: Guest communication could not be established! This is usually because
    default: SSH is not running, the authentication information was changed,
    default: or some other networking issue. Vagrant will force halt, if
    default: capable.
==> default: Forcing shutdown of VM...

Кажется, проблема может быть в открытии SSH. Ответы здесьhttps://stackoverflow.com/questions/22575261/vagrant-stuck-connection-timeout-retryingне помогло, хотя проблема, похоже, похожая.

Я использую Windows 8.1.

решение1

Истечение времени ожидания соединения SSH во время загрузки может произойти по разным причинам, например:

  • система ожидает взаимодействия с пользователем (напримеробщий раздел не готов),
  • sshdнеправильная конфигурация,
  • неправильная настройка брандмауэра (если он не локальный),
  • несоответствие вашего закрытого ключа,
  • процесс загрузки занимает слишком много времени (попробуйте увеличить config.vm.boot_timeout),
  • проверьте, включена ли виртуализация в BIOS (согласнокомментарий).

Чтобы устранить проблему, запустите ее как:

VAGRANT_LOG=debug vagrant up

Если ничего очевидного нет, то попробуйте подключиться к нему с другого терминала, с помощью vagrant sshили:

vagrant ssh-config > vagrant-ssh; ssh -F vagrant-ssh default

Если SSH все еще не работает, запустите его снова с помощьюграфический интерфейс(например config.gui = true).

Если это не так, проверьте запущенные процессы (например, с помощью: vagrant ssh -c 'pstree -a') или проверьте свой sshd_config.


Если это одноразовая виртуальная машина, вы всегда можете destroyее снова и upснова. Также рассмотрите возможность обновления Vagrant и Virtualbox.

Связанный контент