Closed ghost closed 6 years ago
Window instances are not currently supported by knife-oci. The issue is that the Windows instances must first have WinRM manually enabled. However, once that is done you should be able to bootstrap using "knife bootstrap windows winrm".
I am trying to bootstrap knife bootstrap windows winrm xx.xx.xx.xx --winrm-user opc --winrm-password 'abcd' --node-name winr12 and getting below error: Creating new client for win Creating new node for win
Waiting for remote response before bootstrap.ERROR: Failed to authenticate to xx.xx.xx.xx as opc Response: WinRM::WinRMAuthorizationError Hint: Make sure to prefix domain usernames with the correct domain name. Hint: Local user names should be prefixed with computer name or IP address. EXAMPLE: my_domain\user_namer
I've verified that I can bootstrap a Windows instance using image "Windows-Server-2012-R2-Standard-Edition-VM-2017.07.25-0". There are a number of manual steps - here are a few things to look for:
Also, the winrm-user name that I used includes the compute name, such as "mywindowsinstance\opc".
telnet to 3389 and 5985 working fine. i have done below setup on windows node: winrm quickconfig -q winrm set winrm/config/winrs @{MaxMemoryPerShellMB="300"} winrm set winrm/config @{MaxTimeoutms="1800000"} winrm set winrm/config/service @{AllowUnencrypted="true"} winrm set winrm/config/service/auth @{Basic="true"}
netsh advfirewall firewall set rule name="Windows Remote Management (HTTP-In)" profile=public protocol=tcp localport=5985 remoteip=localsubnet new remoteip=any
but still getting same error for
Waiting for remote response before bootstrap.ERROR: Failed to authenticate to xx.xx.xx.x as server_name\opc Response: WinRM::WinRMAuthorizationError Hint: Make sure to prefix domain usernames with the correct domain name. Hint: Local user names should be prefixed with computer name or IP address. EXAMPLE: my_domain\user_namer ..^C.
I am using below command for bootstrap from my chef server which is on Centos :
knife bootstrap windows winrm xx.xx.xx.xx --winrm-user "servername\opc" --winrm-password 'password' --node-name win
It seems that my domain is causing issue. When i try to bootstrap server which is not in domain it's working fine.
Is there any workaround for this issue?
We have to provision windows server 2012 R2 using knife oci. Can we achieve this? Please provide us knife oci command to provision windows server,