
나는 wamp에서 laravel homestead vagrant box로 마이그레이션하기 시작했지만 상자를 시작할 때 당황했습니다. 모든 자산을 다운로드 및 구성하고 vagrant up을 실행하여 상자를 부팅했지만 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
==> 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비슷한 문제인 것 같아도 도움이 되지 않았습니다.
저는 윈도우 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가 여전히 실패하면 다음을 사용하여 다시 실행하십시오.GUI(예 config.gui = true
: ).
그렇지 않은 경우 실행 중인 프로세스(예: vagrant ssh -c 'pstree -a'
)를 확인하거나 sshd_config
.
일회용 VM이라면 언제든지 다시 destroy
사용할 수 있습니다 up
. 또한 Vagrant 및 Virtualbox 업그레이드를 고려해보세요.