Hi Guys,

Thanks for the information.

I have tried that and it gets to the point where packer is waiting for 
WinRM to respond, it eventuall fails with http error 401 ( as shown ) and 
rolls back. 

  2016/09/07 11:10:37 packer: 2016/09/07 11:10:37 [DEBUG] connecting to 
remote shell using WinRM
  2016/09/07 11:10:37 packer: 2016/09/07 11:10:37 [ERROR] connection error: 
http error: 401 -
  2016/09/07 11:10:37 packer: 2016/09/07 11:10:37 [ERROR] WinRM connection 
err: http error: 401 -

here is the packer build file

{
  "builders": [{
  "type": "openstack",
        "communicator": "winrm",
        "winrm_username": "administrator",
        "winrm_password": "Super1234Secure ",
        "winrm_timeout": "7m",
        "winrm_insecure": "true",
  "image_name": "gd-windows-test-image-template",
  "source_image": "b0c87517-a0e9-406d-9076-002fb639ee72",
  "flavor": "c1.c2r8",
  "security_groups": ["default","rdp-access-from-cat-akl"],
  "floating_ip_pool": "public-net",
  "networks": ["49236d09-8107-43c6-aa1b-211730edb8e8"]
    }],
  "provisioners": [{
  "type": "powershell",
  "inline": ["(New-Object 
System.Net.WebClient).DownloadString(\"https://api.nz-por-1.catalystcloud.io:8443/swift/v1/PublicTestBinaries/Firefox
 
Setup 48.0.2.exe\",\"C:\firefox.exe\")",
  "c:\firefox.exe -ms"]
    }]
}

If I run the following from a python shell at the same time, using the same 
credentials as above, with the floating IP address that packer generates it 
works just fine and returns the full ipconfig output.

  import winrm

  s = winrm.Session('150.242.xxx.xxx', 
auth=('administrator','Super1234Secure'))
  r = s.run_cmd('ipconfig', ['/all'])
  r.std_out

Thoughts??

Cheers,
Glyn

On Wednesday, 7 September 2016 06:45:15 UTC+12, Rickard von Essen wrote:
>
> I added support in the OpenStack builder for fetching a admin password 
> specifically for Windows. So I have used it successfully for that.
>
> I suggest that you post a example template.
>
> Ensure that your image https://cloudbase.it/cloudbase-init/ installed. 
>
> On Sep 5, 2016 10:59 PM, "Alvaro Miranda Aguilera" <[email protected] 
> <javascript:>> wrote:
>
>> Hello,
>>
>> Packer by default will try to use ssh, you can override that to use WiRM 
>> with the communicator
>>
>> ie
>>
>> {
>>     "builders": [{
>>         "type": "amazon-ebs",
>>         "communicator": "ssh"
>>     }]}
>>
>>
>> On Mon, Sep 5, 2016 at 8:58 PM, Glyn Davies <[email protected] 
>> <javascript:>> wrote:
>>
>>> Hi folks,
>>>
>>> I am trying to use packer to create a new windows instance on an 
>>> openstack cloud. 
>>>
>>> The current issue is that the openstack builder defaults to assuming it 
>>> is building a linux image and therefore needs to check for an SSH 
>>> connection. Is it not possible to support Windows with this builder?
>>>
>>> Cheers,
>>> Glyn
>>>
>>> -- 
>>> This mailing list is governed under the HashiCorp Community Guidelines - 
>>> https://www.hashicorp.com/community-guidelines.html. Behavior in 
>>> violation of those guidelines may result in your removal from this mailing 
>>> list.
>>>  
>>> GitHub Issues: https://github.com/mitchellh/packer/issues
>>> IRC: #packer-tool on Freenode
>>> --- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Packer" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to [email protected] <javascript:>.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/packer-tool/25c87296-5f10-4947-a91e-5bc6aa6f68bb%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/packer-tool/25c87296-5f10-4947-a91e-5bc6aa6f68bb%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> -- 
>> Alvaro
>> (+31)103400555
>>
>> -- 
>> This mailing list is governed under the HashiCorp Community Guidelines - 
>> https://www.hashicorp.com/community-guidelines.html. Behavior in 
>> violation of those guidelines may result in your removal from this mailing 
>> list.
>>  
>> GitHub Issues: https://github.com/mitchellh/packer/issues
>> IRC: #packer-tool on Freenode
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Packer" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/packer-tool/CAHqq0eyURzqjDRbDr27-R-C6%2BkxhKhj0-WUm%2BPvE7AXBFHd-MQ%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/packer-tool/CAHqq0eyURzqjDRbDr27-R-C6%2BkxhKhj0-WUm%2BPvE7AXBFHd-MQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/30f18bc0-4aac-42a5-b580-b8e5d37c3b07%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to