제목에 설명 된대로 SSH
연결되지 않는 Vagrant로 win8.1 VM을 시작하는 데 몇 가지 문제가 있습니다. 콘솔에 아래와 같은 오류가 표시됩니다.
기본값 : 경고 : 연결 시간이 초과되었습니다. 재시도 중 ...
전체 로그 :
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 22 => 2222 (adapter 1)
==> 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: cyg_server
default: SSH auth method: password
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...
cygwin64와 openssh를 설치하고 사용자 이름 cyg_server
과 암호를 vagrant
. VM 내에서 작동하는지 확인하고 일부 자습서에 설명 된대로 ssh localhost
디렉터리 트리를 표시 ls -lh /cygdrive/c
합니다.
My Vagrantfile
는 위와 같이 구성됩니다.
config.ssh.username = "cyg_server"
config.ssh.password = "vagrant"
그러나 아직 성공하지 못했습니다.
물론 나는 좋은 정보없이 그것에 대해 검색했으며 내가하고있는 것과 똑같은 일을하는 튜토리얼은 없었습니다.
이 문제를 해결하는 방법을 아는 사람이 있습니까?
나는 ,, 및을 Mac Yosemite
사용 하고 있습니다.vagrant1.7.2
VirtualBox4.3.28
Windows8.1 VM box
미리 감사드립니다.
나는 그것을 스스로 해결했다. Vagrant의 문서에 따르면 Windows 상자는 WinRM을 사용하여 vagrant rdp
명령을 통해 Vagrant와 통신 할 수 있으므로 Vagrantfile
구성을 다음과 같이 변경하기 만하면됩니다 .
config.vm.guest = :windows
config.vm.communicator = "winrm"
config.vm.network :forwarded_port, guest: 3389, host: 13389
config.vm.network :forwarded_port, guest: 5985, host: 15985, id: "winrm", auto_correct: true
그런 다음 콘솔에 아래 명령을 삽입하여 OS에서 WinRM을 활성화하고 구성합니다 (관리자로 실행).
winrm quickconfig -q
winrm set winrm/config/winrs @{MaxMemoryPerShellMB="512"}
winrm set winrm/config @{MaxTimeoutms="1800000"}
winrm set winrm/config/service @{AllowUnencrypted="true"}
winrm set winrm/config/service/auth @{Basic="true"}
sc config WinRM start= auto
위의 WinRM 명령은 모두 문서 페이지에 설명되어 있습니다. http://docs.vagrantup.com/v2/boxes/base.html
이 후 나는 vagrant up
다시 그것을했고 모든 것이 잘 작동했습니다.
참고 : 어떤 사람들은이 이후에 문제가 발생했습니다 (일부 포럼에서 읽기).이 경우에는 Windows 방화벽도 확인하는 것을 잊지 마십시오.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다