[packer] Re: Packer + amazon-ebs + Winrm connection timeout

2020-03-05 Thread Gautam Singh
It turned out I just needed to increase  the winrm_timeout to 30m.

Thanks,
-Gautam

On Wednesday, March 4, 2020 at 4:14:09 PM UTC-6, Gautam Singh wrote:
>
> I am trying to create Windows 2016 Server AMI using following script
> https://gist.github.com/gsinghab2/1adf869a60ac198b0ecb63b9e2ad1b1a
>
> I have tried Packer both version 1.4.3 and 1.5.4.
>
> Even though I can RDP to the builder VM, packer is timing out with 
> following error
>  packer-builder-amazon-ebs plugin: [ERROR] WinRM connection err: unknown 
> error Post https://private_ip:5986/wsman: dial tcp: lookup private_ip on 
> 127.0.0.53:53: server misbehaving
> 2020/03/04 22:02:22 ui error: ==> amazon-ebs: Timeout waiting for WinRM.
>
>
> I will highly appreciate your help in this matter.
>
> Thanks,
> -Gautam
>
>

-- 
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 packer-tool+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/aedb3fa3-2208-4902-8fda-072f6fb94633%40googlegroups.com.


Re: [packer] Packer in OCI Government

2020-03-05 Thread Rickard von Essen
If you have a key account manager at Oracle try contacting him/her since
Oracle contributed and maintains this plugin. That might increase the
visibility of your issue for them.

On Wed, Mar 4, 2020, 23:33 'twmcel...@me.com' via Packer <
packer-tool@googlegroups.com> wrote:

> Looking for help with this bug. It is filed under hashicorp/packer #8842
> (OCI Government Region Fails)
>
>
> Overview of the Issue
>
> I am working with Packer and using Oracle Government Cloud. oracle-oci
> builder calls https://iaas..oraclecloud.com/xxx which does not work for
> us-luke-1 and us-langley-1 regions. It needs to call
> https://iaas.region.oraclegovcloud.com/xxx. I cannot override this
> behavior even though the CLI will naturally call the right endpoint when
> the region is a Government region.
> Reproduction Steps
>
> Set "access_cfg_file_account" to profile that uses Oracle government cloud
> region.
> packer build .json
> Packer version
>
> $ packer version
> Packer v1.5.1
> Simplified Packer Buildfile
>
> "builders":[{
> "access_cfg_file_account": "{{user cli_account}}",
> "availability_domain": "{{user availability_domain}}",
> "base_image_ocid": "{{user base_image}}",
> "compartment_ocid": "{{user compartment_id}}",
> "image_name": "ConsulServer",
> "shape": "VM.Standard2.1",
> "ssh_username": "opc",
> "subnet_ocid": "{{user subnet_id}}",
> "type": "oracle-oci"
> }],
> Operating system and Environment details
>
> Windows 10.
> Log Fragments and crash.log files
>
> 2020/03/04 14:48:07 packer.exe plugin: Serving a plugin connection...
> 2020/03/04 14:48:07 ui: oracle-oci: output will be in this color.
> 2020/03/04 14:48:07 ui:
> 2020/03/04 14:48:07 Build debug mode: false
> 2020/03/04 14:48:07 Force build: false
> 2020/03/04 14:48:07 On error:
> 2020/03/04 14:48:07 Preparing build: oracle-oci
> 2020/03/04 14:48:07 Waiting on builds to complete...
> 2020/03/04 14:48:07 Starting build run: oracle-oci
> 2020/03/04 14:48:07 Running builder: oracle-oci
> 2020/03/04 14:48:07 [INFO] (telemetry) Starting builder oracle-oci
> 2020/03/04 14:48:07 ui: ==> oracle-oci: Creating temporary ssh key for
> instance...
> 2020/03/04 14:48:07 ui: ==> oracle-oci: Creating instance...
> 2020/03/04 14:48:07 ui error: ==> oracle-oci: Problem creating instance:
> Post https://iaas.us-langley-1.oraclecloud.com/20160918/instances: dial
> tcp: lookup iaas.us-langley-1.oraclecloud.com: getaddrinfow: This is
> usually a temporary error during hostname resolution and means that the
> local server did not receive a response from an authoritative server.
> 2020/03/04 14:48:07 [INFO] (telemetry) ending oracle-oci
> 2020/03/04 14:48:07 ui error: Build 'oracle-oci' errored: Problem creating
> instance: Post
> https://iaas.us-langley-1.oraclecloud.com/20160918/instances: dial tcp:
> lookup iaas.us-langley-1.oraclecloud.com: getaddrinfow: This is usually a
> temporary error during hostname resolution and means that the local server
> did not receive a response from an authoritative server.
> 2020/03/04 14:48:07 machine readable: error-count []string{"1"}
> 2020/03/04 14:48:07 ui error:
> ==> Some builds didn't complete successfully and had errors:
> 2020/03/04 14:48:07 machine readable: oracle-oci,error []string{"Problem
> creating instance: Post
> https://iaas.us-langley-1.oraclecloud.com/20160918/instances: dial tcp:
> lookup iaas.us-langley-1.oraclecloud.com: getaddrinfow: This is usually a
> temporary error during hostname resolution and means that the local server
> did not receive a response from an authoritative server."}
> 2020/03/04 14:48:07 ui error: --> oracle-oci: Problem creating instance:
> Post https://iaas.us-langley-1.oraclecloud.com/20160918/instances: dial
> tcp: lookup iaas.us-langley-1.oraclecloud.com: getaddrinfow: This is
> usually a temporary error during hostname resolution and means that the
> local server did not receive a response from an authoritative server.
> 2020/03/04 14:48:07 ui:
> ==> Builds finished but no artifacts were created.
>
> --
> 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 packer-tool+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/packer-tool/6403ce20-7ef5-48df-b3ed-660b4f7ec3ea%40googlegroups.com
> 
> .
>

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in viola