2014-07-09 2 views
1

나이프 랙 스페이스 서버를 통해 윈도우 머신을 만들려고했지만, 원격 노드로부터 응답을받을 때까지 기다릴 시간이 충분하지 못해 타임 아웃 문제가 발생했습니다.나이프 부트 스트랩 창문 winrm timeout issue

시간 초과를 늘리는 방법입니까?

고마워요.

다음은 시간 차이가있는 결과입니다. 1. 나이프 랙 공간 서버를 만듭니다. 2. 칼 부트 스트랩

Waiting server 
    Public DNS Name: 119.9.13.107.xip.io 
    Public IP Address: 119.9.13.107 
    Private IP Address: 10.176.4.151 
    Password: E5yQwJTuo94e 
    Metadata: [] 

    Waiting for winrm 
    Waiting for remote response before bootstrap.ERROR: No response received from remote node after 1.01 minutes, giving up. 
    ERROR: RuntimeError: Command execution failed. 

그런데 winrm은 Windows 템플릿 이미지에 설치됩니다.

± % knife bootstrap -VVV windows winrm "119.9.13.107" -r "recipe[windows_nps],recipe[windows_dhcp],recipe[passthrough_monitor]" -x "autotest\\qa" -P "GibesG9eSEG" 
    WARNING: Could not load IOV methods. Check your GSSAPI C library for an update 
    WARNING: Could not load AEAD methods. Check your GSSAPI C library for an update 

    Waiting for remote response before bootstrap.DEBUG: Adding 119.9.13.107 
    DEBUG: :session => :init 
    DEBUG: :relay_to_servers => echo . & echo Response received. 
    DEBUG: :relayed => 119.9.13.107 
    DEBUG: 119.9.13.107 => :run_command 
    DEBUG: 119.9.13.107[C2E316A7-E69E-4099-A3B3-3F35B384CBD1] => :shell_open 
    DEBUG: 119.9.13.107[C2E316A7-E69E-4099-A3B3-3F35B384CBD1] => :run_command[echo . & echo  Response received.] 
    DEBUG: :relay_output_from_backend => ["119.9.13.107", ". \r\n"] 
    119.9.13.107 . 
    DEBUG: :relay_output_from_backend => ["119.9.13.107", "Response received.\r\n"] 
    119.9.13.107 Response received. 
    DEBUG: 119.9.13.107[C2E316A7-E69E-4099-A3B3-3F35B384CBD1] => :command_cleanup[echo . & echo Response received.] 
    DEBUG: 119.9.13.107[C2E316A7-E69E-4099-A3B3-3F35B384CBD1] => :shell_close 
    DEBUG: :command_complete => 119.9.13.107 with return code 0 
    DEBUG: command complete on 119.9.13.107 
    DEBUG: command complete on All Servers 
    DEBUG: :unbind => :connection 
    DEBUG: 119.9.13.107 => :unbind 
    DEBUG: :unbind_backend => 119.9.13.107 
    DEBUG: :session => :close 
    Remote node responded after 1.08 minutes. 
    Bootstrapping Chef on 119.9.13.107 
+0

winrm set winrm/config @ {MaxTimeoutms = "1800000"} –

+0

나는 그것을했다. 조금 더 오래 할 필요가 있다고 생각합니까? 2500000이라고할까요? – gugo

+0

"1.01 분 후에 원격 노드에서 수신 된 응답이 없습니다." 및 "원격 노드가 1.08 분 후에 응답했습니다." 나는 winrm과 아무 상관이 없다고 생각한다. – gugo

답변

3

Knife-rackspace는 재미있는 작업 전에 TCP 검사를 수행합니다. 내 생각 엔에서 WinRM이 작동하더라도, 당신이 TCP 검사에 끊어지고있는 것입니다 : 내가 최근에 SSH를위한 TCP 확인을 사용하지 않습니다 옵션을 추가하는 패치를 제출

https://github.com/opscode/knife-rackspace/blob/master/lib/chef/knife/rackspace_server_create.rb#L315

,하지만 당신은 할 수있다 액세스 제한의 많은 네트워크에서이 일을하고 특히, Windows에서 비슷한 시도하려는 :

https://github.com/opscode/knife-rackspace/blob/master/lib/chef/knife/rackspace_server_create.rb#L170

희망이 도움이!

+0

고마워요 마틴! – gugo

+0

또한 well.versions/2.1.1/lib/ruby ​​/ gems/2.1.0/gems/knife-windows-0.6.0/lib/chef/knife/bootstrap_windows_base.rb와 같이 유용한 장소를 발견했습니다. – gugo