Skip to content

Instantly share code, notes, and snippets.

@sc250024
Created May 21, 2018 20:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sc250024/e6047427724eabf00c960445f415fcca to your computer and use it in GitHub Desktop.
Save sc250024/e6047427724eabf00c960445f415fcca to your computer and use it in GitHub Desktop.
22:24 $ PACKER_LOG=1 packer build windows-server-2012r2-amd64-webserver-app-prod.json
2018/05/21 22:24:20 [INFO] Packer version: 1.2.3
2018/05/21 22:24:20 Packer Target OS/Arch: darwin amd64
2018/05/21 22:24:20 Built with Go Version: go1.10.1
2018/05/21 22:24:20 Detected home directory from env var: /Users/myuser
2018/05/21 22:24:20 Using internal plugin for vmware-vmx
2018/05/21 22:24:20 Using internal plugin for ncloud
2018/05/21 22:24:20 Using internal plugin for oneandone
2018/05/21 22:24:20 Using internal plugin for parallels-iso
2018/05/21 22:24:20 Using internal plugin for scaleway
2018/05/21 22:24:20 Using internal plugin for virtualbox-iso
2018/05/21 22:24:20 Using internal plugin for alicloud-ecs
2018/05/21 22:24:20 Using internal plugin for amazon-instance
2018/05/21 22:24:20 Using internal plugin for qemu
2018/05/21 22:24:20 Using internal plugin for null
2018/05/21 22:24:20 Using internal plugin for amazon-ebssurrogate
2018/05/21 22:24:20 Using internal plugin for googlecompute
2018/05/21 22:24:20 Using internal plugin for virtualbox-ovf
2018/05/21 22:24:20 Using internal plugin for hyperv-vmcx
2018/05/21 22:24:20 Using internal plugin for oracle-classic
2018/05/21 22:24:20 Using internal plugin for vmware-iso
2018/05/21 22:24:20 Using internal plugin for amazon-chroot
2018/05/21 22:24:20 Using internal plugin for amazon-ebs
2018/05/21 22:24:20 Using internal plugin for digitalocean
2018/05/21 22:24:20 Using internal plugin for lxd
2018/05/21 22:24:20 Using internal plugin for parallels-pvm
2018/05/21 22:24:20 Using internal plugin for profitbricks
2018/05/21 22:24:20 Using internal plugin for triton
2018/05/21 22:24:20 Using internal plugin for cloudstack
2018/05/21 22:24:20 Using internal plugin for docker
2018/05/21 22:24:20 Using internal plugin for file
2018/05/21 22:24:20 Using internal plugin for amazon-ebsvolume
2018/05/21 22:24:20 Using internal plugin for lxc
2018/05/21 22:24:20 Using internal plugin for oracle-oci
2018/05/21 22:24:20 Using internal plugin for azure-arm
2018/05/21 22:24:20 Using internal plugin for hyperv-iso
2018/05/21 22:24:20 Using internal plugin for openstack
2018/05/21 22:24:20 Using internal plugin for shell
2018/05/21 22:24:20 Using internal plugin for ansible
2018/05/21 22:24:20 Using internal plugin for converge
2018/05/21 22:24:20 Using internal plugin for powershell
2018/05/21 22:24:20 Using internal plugin for salt-masterless
2018/05/21 22:24:20 Using internal plugin for shell-local
2018/05/21 22:24:20 Using internal plugin for ansible-local
2018/05/21 22:24:20 Using internal plugin for puppet-server
2018/05/21 22:24:20 Using internal plugin for file
2018/05/21 22:24:20 Using internal plugin for puppet-masterless
2018/05/21 22:24:20 Using internal plugin for windows-restart
2018/05/21 22:24:20 Using internal plugin for windows-shell
2018/05/21 22:24:20 Using internal plugin for chef-client
2018/05/21 22:24:20 Using internal plugin for chef-solo
2018/05/21 22:24:20 Using internal plugin for amazon-import
2018/05/21 22:24:20 Using internal plugin for docker-save
2018/05/21 22:24:20 Using internal plugin for docker-tag
2018/05/21 22:24:20 Using internal plugin for manifest
2018/05/21 22:24:20 Using internal plugin for vagrant
2018/05/21 22:24:20 Using internal plugin for vagrant-cloud
2018/05/21 22:24:20 Using internal plugin for docker-import
2018/05/21 22:24:20 Using internal plugin for docker-push
2018/05/21 22:24:20 Using internal plugin for vsphere
2018/05/21 22:24:20 Using internal plugin for artifice
2018/05/21 22:24:20 Using internal plugin for atlas
2018/05/21 22:24:20 Using internal plugin for alicloud-import
2018/05/21 22:24:20 Using internal plugin for checksum
2018/05/21 22:24:20 Using internal plugin for compress
2018/05/21 22:24:20 Using internal plugin for googlecompute-export
2018/05/21 22:24:20 Using internal plugin for shell-local
2018/05/21 22:24:20 Using internal plugin for vsphere-template
2018/05/21 22:24:20 Detected home directory from env var: /Users/myuser
2018/05/21 22:24:20 Attempting to open config file: /Users/myuser/.packerconfig
2018/05/21 22:24:20 [WARN] Config file doesn't exist: /Users/myuser/.packerconfig
2018/05/21 22:24:20 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[parallels-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-iso virtualbox-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-iso alicloud-ecs:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-alicloud-ecs amazon-ebs:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs cloudstack:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-cloudstack qemu:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu googlecompute:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-googlecompute digitalocean:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-digitalocean lxd:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxd lxc:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxc profitbricks:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-profitbricks file:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-file azure-arm:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-azure-arm vmware-vmx:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-vmx oracle-classic:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-classic amazon-ebsvolume:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebsvolume scaleway:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-scaleway amazon-ebssurrogate:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebssurrogate hyperv-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-iso amazon-instance:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-instance null:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-null hyperv-vmcx:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-vmcx amazon-chroot:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-chroot oracle-oci:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-oci openstack:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-openstack ncloud:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-ncloud virtualbox-ovf:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-ovf parallels-pvm:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-pvm triton:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-triton docker:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-docker oneandone:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oneandone vmware-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-iso] PostProcessors:map[docker-save:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-save shell-local:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-shell-local checksum:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-checksum compress:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-compress manifest:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-manifest alicloud-import:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-alicloud-import vagrant-cloud:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant-cloud artifice:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-artifice googlecompute-export:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-export vsphere-template:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere-template amazon-import:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-amazon-import vagrant:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant docker-push:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-push vsphere:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere atlas:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-atlas docker-tag:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-tag docker-import:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-import] Provisioners:map[chef-client:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-client ansible-local:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible-local shell-local:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell-local windows-restart:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-restart chef-solo:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-solo shell:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell ansible:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible converge:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-converge file:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-file puppet-masterless:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-masterless windows-shell:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-shell powershell:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-powershell salt-masterless:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-salt-masterless puppet-server:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-server]}
2018/05/21 22:24:20 Detected home directory from env var: /Users/myuser
2018/05/21 22:24:20 Setting cache directory: /Users/myuser/git-projects/mycompany/mycompany-packer/packer_cache
2018/05/21 22:24:20 Detected home directory from env var: /Users/myuser
2018/05/21 22:24:20 Loading builder: amazon-ebs
2018/05/21 22:24:20 Plugin could not be found. Checking same directory as executable.
2018/05/21 22:24:20 Current exe path: /usr/local/bin/packer
2018/05/21 22:24:20 Creating plugin client for path: /usr/local/bin/packer
2018/05/21 22:24:20 Starting plugin: /usr/local/bin/packer []string{"/usr/local/bin/packer", "plugin", "packer-builder-amazon-ebs"}
2018/05/21 22:24:20 Waiting for RPC address for: /usr/local/bin/packer
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 [INFO] Packer version: 1.2.3
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Packer Target OS/Arch: darwin amd64
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Built with Go Version: go1.10.1
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Detected home directory from env var: /Users/myuser
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Attempting to open config file: /Users/myuser/.packerconfig
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 [WARN] Config file doesn't exist: /Users/myuser/.packerconfig
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Detected home directory from env var: /Users/myuser
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Setting cache directory: /Users/myuser/git-projects/mycompany/mycompany-packer/packer_cache
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 args: []string{"packer-builder-amazon-ebs"}
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Detected home directory from env var: /Users/myuser
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Plugin minimum port: 10000
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Plugin maximum port: 25000
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Plugin address: unix /var/folders/kj/0vbbpst91p335xd5d1jq7skh0000gn/T/packer-plugin884485317
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Waiting for connection...
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Serving a plugin connection...
2018/05/21 22:24:20 Loading provisioner: file
2018/05/21 22:24:20 Plugin could not be found. Checking same directory as executable.
2018/05/21 22:24:20 Current exe path: /usr/local/bin/packer
2018/05/21 22:24:20 Creating plugin client for path: /usr/local/bin/packer
2018/05/21 22:24:20 Starting plugin: /usr/local/bin/packer []string{"/usr/local/bin/packer", "plugin", "packer-provisioner-file"}
2018/05/21 22:24:20 Waiting for RPC address for: /usr/local/bin/packer
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 [INFO] Packer version: 1.2.3
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Packer Target OS/Arch: darwin amd64
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Built with Go Version: go1.10.1
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Detected home directory from env var: /Users/myuser
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Attempting to open config file: /Users/myuser/.packerconfig
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 [WARN] Config file doesn't exist: /Users/myuser/.packerconfig
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Detected home directory from env var: /Users/myuser
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Setting cache directory: /Users/myuser/git-projects/mycompany/mycompany-packer/packer_cache
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Detected home directory from env var: /Users/myuser
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 args: []string{"packer-provisioner-file"}
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Plugin minimum port: 10000
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Plugin maximum port: 25000
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Plugin address: unix /var/folders/kj/0vbbpst91p335xd5d1jq7skh0000gn/T/packer-plugin553446925
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Waiting for connection...
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Serving a plugin connection...
2018/05/21 22:24:20 Loading provisioner: powershell
2018/05/21 22:24:20 Plugin could not be found. Checking same directory as executable.
2018/05/21 22:24:20 Current exe path: /usr/local/bin/packer
2018/05/21 22:24:20 Creating plugin client for path: /usr/local/bin/packer
2018/05/21 22:24:20 Starting plugin: /usr/local/bin/packer []string{"/usr/local/bin/packer", "plugin", "packer-provisioner-powershell"}
2018/05/21 22:24:20 Waiting for RPC address for: /usr/local/bin/packer
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 [INFO] Packer version: 1.2.3
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Packer Target OS/Arch: darwin amd64
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Built with Go Version: go1.10.1
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Detected home directory from env var: /Users/myuser
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Attempting to open config file: /Users/myuser/.packerconfig
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 [WARN] Config file doesn't exist: /Users/myuser/.packerconfig
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Detected home directory from env var: /Users/myuser
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Setting cache directory: /Users/myuser/git-projects/mycompany/mycompany-packer/packer_cache
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Detected home directory from env var: /Users/myuser
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 args: []string{"packer-provisioner-powershell"}
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Plugin minimum port: 10000
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Plugin maximum port: 25000
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Plugin address: unix /var/folders/kj/0vbbpst91p335xd5d1jq7skh0000gn/T/packer-plugin534376424
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Waiting for connection...
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Serving a plugin connection...
2018/05/21 22:24:20 Loading provisioner: windows-shell
2018/05/21 22:24:20 Plugin could not be found. Checking same directory as executable.
2018/05/21 22:24:20 Current exe path: /usr/local/bin/packer
2018/05/21 22:24:20 Creating plugin client for path: /usr/local/bin/packer
2018/05/21 22:24:20 Starting plugin: /usr/local/bin/packer []string{"/usr/local/bin/packer", "plugin", "packer-provisioner-windows-shell"}
2018/05/21 22:24:20 Waiting for RPC address for: /usr/local/bin/packer
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 [INFO] Packer version: 1.2.3
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Packer Target OS/Arch: darwin amd64
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Built with Go Version: go1.10.1
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Detected home directory from env var: /Users/myuser
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Attempting to open config file: /Users/myuser/.packerconfig
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 [WARN] Config file doesn't exist: /Users/myuser/.packerconfig
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Detected home directory from env var: /Users/myuser
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Setting cache directory: /Users/myuser/git-projects/mycompany/mycompany-packer/packer_cache
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Detected home directory from env var: /Users/myuser
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 args: []string{"packer-provisioner-windows-shell"}
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Plugin minimum port: 10000
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Plugin maximum port: 25000
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Plugin address: unix /var/folders/kj/0vbbpst91p335xd5d1jq7skh0000gn/T/packer-plugin815387128
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Waiting for connection...
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Serving a plugin connection...
2018/05/21 22:24:20 ui: amazon-ebs output will be in this color.
2018/05/21 22:24:20 ui:
2018/05/21 22:24:20 Build debug mode: false
2018/05/21 22:24:20 Force build: false
2018/05/21 22:24:20 On error:
2018/05/21 22:24:20 Preparing build: amazon-ebs
amazon-ebs output will be in this color.
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Config: {PackerConfig:{PackerBuildName:amazon-ebs PackerBuilderType:amazon-ebs PackerDebug:false PackerForce:false PackerOnError: PackerUserVars:map[vpc_id:vpc-09dd3330252c3145b appveyor_key:5nsoq3ry6bm4ip46 name:pb-winsrv2012r2-amd64-webserver-app-prod region:eu-west-1 subnet_id:subnet-XXXXXXXXXXXXXXXXX]} AccessConfig:{AccessKey: CustomEndpointEc2: MFACode: ProfileName: RawRegion:eu-west-1 SecretKey: SkipValidation:false SkipMetadataApiCheck:false Token: session:<nil>} AMIConfig:{AMIName:pb-winsrv2012r2-amd64-webserver-app-prod AMIDescription: AMIVirtType: AMIUsers:[] AMIGroups:[] AMIProductCodes:[] AMIRegions:[] AMISkipRegionValidation:false AMITags:map[Name:{{user `name`}}-{{ isotime | clean_ami_name }} Version:{{ isotime | clean_ami_name }}] AMIENASupport:false AMISriovNetSupport:false AMIForceDeregister:true AMIForceDeleteSnapshot:true AMIEncryptBootVolume:true AMIKmsKeyId: AMIRegionKMSKeyIDs:map[] SnapshotTags:map[] SnapshotUsers:[] SnapshotGroups:[]} BlockDevices:{AMIBlockDevices:{AMIMappings:[{DeleteOnTermination:true DeviceName:/dev/sda1 Encrypted:false IOPS:0 NoDevice:false SnapshotId: VirtualName: VolumeType:gp2 VolumeSize:50 KmsKeyId:}]} LaunchBlockDevices:{LaunchMappings:[{DeleteOnTermination:true DeviceName:/dev/sda1 Encrypted:false IOPS:0 NoDevice:false SnapshotId: VirtualName: VolumeType:gp2 VolumeSize:0 KmsKeyId:}]}} RunConfig:{AssociatePublicIpAddress:false AvailabilityZone: EbsOptimized:false IamInstanceProfile: InstanceType:t2.medium RunTags:map[Name:Packer Builder (Windows 2012 R2 Webserver Prod AMI)] SourceAmi: SourceAmiFilter:{Filters:map[0xc420088530:0xc420088550] Owners:[0xc4200885d0] MostRecent:true} SpotPrice:auto SpotPriceAutoProduct:Windows (Amazon VPC) DisableStopInstance:false SecurityGroupId: SecurityGroupIds:[] TemporarySGSourceCidr:0.0.0.0/0 SubnetId:subnet-XXXXXXXXXXXXXXXXX TemporaryKeyPairName:packer_5b032af4-f3c3-f0cd-12e5-00f9854d54ee UserData: UserDataFile:/Users/myuser/git-projects/mycompany/mycompany-packer/bootstrap/aws/userdata/bootstrap-aws.txt WindowsPasswordTimeout:30m0s VpcId:vpc-09dd3330252c3145b InstanceInitiatedShutdownBehavior:stop Comm:{Type:winrm SSHHost: SSHPort:0 SSHUsername: SSHPassword: SSHPrivateKey: SSHPty:false SSHTimeout:0s SSHAgentAuth:false SSHDisableAgentForwarding:false SSHHandshakeAttempts:0 SSHBastionHost: SSHBastionPort:0 SSHBastionAgentAuth:false SSHBastionUsername: SSHBastionPassword: SSHBastionPrivateKey: SSHFileTransferMethod: SSHProxyHost: SSHProxyPort:0 SSHProxyUsername: SSHProxyPassword: SSHKeepAliveInterval:0s SSHReadWriteTimeout:0s WinRMUser:Administrator WinRMPassword: WinRMHost: WinRMPort:5986 WinRMTimeout:30m0s WinRMUseSSL:true WinRMInsecure:true WinRMUseNTLM:false WinRMTransportDecorator:<nil>} SSHKeyPairName: SSHInterface:} VolumeRunTags:map[] ctx:{Data:<nil> Funcs:map[clean_ami_name:0x18430a0] UserVariables:map[vpc_id:vpc-09dd3330252c3145b appveyor_key:5nsoq3ry6bm4ip46 name:pb-winsrv2012r2-amd64-webserver-app-prod region:eu-west-1 subnet_id:subnet-XXXXXXXXXXXXXXXXX] EnableEnv:false BuildName:amazon-ebs BuildType:amazon-ebs TemplatePath:/Users/myuser/git-projects/mycompany/mycompany-packer/windows-server-2012r2-amd64-webserver-app-prod.json}}
2018/05/21 22:24:20 Waiting on builds to complete...
2018/05/21 22:24:20 Starting build run: amazon-ebs
2018/05/21 22:24:20 Running builder: amazon-ebs
2018/05/21 22:24:20 [INFO] (telemetry) Starting builder amazon-ebs
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 Found region eu-west-1
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 [INFO] AWS Auth provider used: "SharedConfigCredentials: /Users/myuser/.aws/credentials"
2018/05/21 22:24:20 packer: 2018/05/21 22:24:20 [INFO] Finding AZ and VpcId for the given subnet 'subnet-XXXXXXXXXXXXXXXXX'
==> amazon-ebs: Force Deregister flag found, skipping prevalidating AMI Name
2018/05/21 22:24:21 packer: 2018/05/21 22:24:21 [INFO] AvailabilityZone found: 'eu-west-1a'
2018/05/21 22:24:21 ui: ==> amazon-ebs: Force Deregister flag found, skipping prevalidating AMI Name
2018/05/21 22:24:21 packer: 2018/05/21 22:24:21 Using AMI Filters {
2018/05/21 22:24:21 packer: Filters: [{
2018/05/21 22:24:21 packer: Name: "name",
2018/05/21 22:24:21 packer: Values: ["*pb-winsrv2012r2-amd64-base*"]
2018/05/21 22:24:21 packer: }],
2018/05/21 22:24:21 packer: Owners: ["058766304861"]
2018/05/21 22:24:21 packer: }
2018/05/21 22:24:21 ui: amazon-ebs: Found Image ID: ami-0b215e4236894009e
amazon-ebs: Found Image ID: ami-0b215e4236894009e
2018/05/21 22:24:21 ui: ==> amazon-ebs: Creating temporary keypair: packer_5b032af4-f3c3-f0cd-12e5-00f9854d54ee
==> amazon-ebs: Creating temporary keypair: packer_5b032af4-f3c3-f0cd-12e5-00f9854d54ee
2018/05/21 22:24:21 ui: ==> amazon-ebs: Creating temporary security group for this instance: packer_5b032af5-1fbf-7247-c9ef-18ac625ecb71
==> amazon-ebs: Creating temporary security group for this instance: packer_5b032af5-1fbf-7247-c9ef-18ac625ecb71
2018/05/21 22:24:21 ui: ==> amazon-ebs: Authorizing access to port 5986 from 0.0.0.0/0 in the temporary security group...
==> amazon-ebs: Authorizing access to port 5986 from 0.0.0.0/0 in the temporary security group...
2018/05/21 22:24:21 packer: 2018/05/21 22:24:21 [DEBUG] Waiting for temporary security group: sg-0488a732aeea78e10
2018/05/21 22:24:22 packer: 2018/05/21 22:24:22 [DEBUG] Found security group sg-0488a732aeea78e10
2018/05/21 22:24:22 packer: 2018/05/21 22:24:22 [DEBUG] base64 encoding user data...
2018/05/21 22:24:22 ui: ==> amazon-ebs: Launching a source AWS instance...
==> amazon-ebs: Launching a source AWS instance...
2018/05/21 22:24:22 ui: amazon-ebs: Finding spot price for Windows (Amazon VPC) t2.medium...
amazon-ebs: Finding spot price for Windows (Amazon VPC) t2.medium...
2018/05/21 22:24:22 packer: 2018/05/21 22:24:22 [INFO] Candidate spot price: 0.033000
2018/05/21 22:24:22 ui: ==> amazon-ebs: Adding tags to source instance
==> amazon-ebs: Adding tags to source instance
2018/05/21 22:24:22 ui: amazon-ebs: Adding tag: "Name": "Packer Builder (Windows 2012 R2 Webserver Prod AMI)"
2018/05/21 22:24:22 ui: amazon-ebs: Requesting spot instance 't2.medium' for: 0.038
amazon-ebs: Adding tag: "Name": "Packer Builder (Windows 2012 R2 Webserver Prod AMI)"
amazon-ebs: Requesting spot instance 't2.medium' for: 0.038
2018/05/21 22:24:22 ui: amazon-ebs: Waiting for spot request (sir-37xi4dpp) to become active...
amazon-ebs: Waiting for spot request (sir-37xi4dpp) to become active...
2018/05/21 22:24:22 packer: 2018/05/21 22:24:22 Waiting for state to become: active
2018/05/21 22:24:22 packer: 2018/05/21 22:24:22 Using 2s as polling delay (change with AWS_POLL_DELAY_SECONDS)
2018/05/21 22:24:22 packer: 2018/05/21 22:24:22 Allowing 300s to complete (change with AWS_TIMEOUT_SECONDS)
2018/05/21 22:24:24 ui: amazon-ebs: Instance ID: i-047b2a326fa58e1a2
amazon-ebs: Instance ID: i-047b2a326fa58e1a2
2018/05/21 22:24:24 ui: ==> amazon-ebs: Waiting for instance (i-047b2a326fa58e1a2) to become ready...
==> amazon-ebs: Waiting for instance (i-047b2a326fa58e1a2) to become ready...
2018/05/21 22:24:55 ui: ==> amazon-ebs: Waiting for auto-generated password for instance...
==> amazon-ebs: Waiting for auto-generated password for instance...
2018/05/21 22:24:55 ui: amazon-ebs: It is normal for this process to take up to 15 minutes,
amazon-ebs: but it usually takes around 5. Please wait.
amazon-ebs: It is normal for this process to take up to 15 minutes,
amazon-ebs: but it usually takes around 5. Please wait.
2018/05/21 22:25:00 packer: 2018/05/21 22:25:00 [DEBUG] Password is blank, will retry...
2018/05/21 22:25:05 packer: 2018/05/21 22:25:05 [DEBUG] Password is blank, will retry...
2018/05/21 22:25:10 packer: 2018/05/21 22:25:10 [DEBUG] Password is blank, will retry...
2018/05/21 22:25:15 packer: 2018/05/21 22:25:15 [DEBUG] Password is blank, will retry...
2018/05/21 22:25:21 packer: 2018/05/21 22:25:21 [DEBUG] Password is blank, will retry...
2018/05/21 22:25:26 packer: 2018/05/21 22:25:26 [DEBUG] Password is blank, will retry...
2018/05/21 22:25:31 packer: 2018/05/21 22:25:31 [DEBUG] Password is blank, will retry...
2018/05/21 22:25:36 ui: amazon-ebs:
amazon-ebs: Password retrieved!
amazon-ebs:
amazon-ebs: Password retrieved!
2018/05/21 22:25:36 packer: 2018/05/21 22:25:36 Waiting for WinRM, up to timeout: 30m0s
2018/05/21 22:25:36 ui: ==> amazon-ebs: Waiting for WinRM to become available...
==> amazon-ebs: Waiting for WinRM to become available...
2018/05/21 22:25:41 packer: 2018/05/21 22:25:41 [INFO] Attempting WinRM connection...
2018/05/21 22:25:41 packer: 2018/05/21 22:25:41 [DEBUG] connecting to remote shell using WinRM
2018/05/21 22:26:11 packer: 2018/05/21 22:26:11 [ERROR] connection error: unknown error Post https://34.243.248.95:5986/wsman: dial tcp 34.243.248.95:5986: i/o timeout
2018/05/21 22:26:11 packer: 2018/05/21 22:26:11 [ERROR] WinRM connection err: unknown error Post https://34.243.248.95:5986/wsman: dial tcp 34.243.248.95:5986: i/o timeout
2018/05/21 22:26:16 packer: 2018/05/21 22:26:16 [INFO] Attempting WinRM connection...
2018/05/21 22:26:16 packer: 2018/05/21 22:26:16 [DEBUG] connecting to remote shell using WinRM
2018/05/21 22:26:21 packer: 2018/05/21 22:26:21 Checking that WinRM is connected with: 'powershell.exe -EncodedCommand aQBmACAAKABUAGUAcwB0AC0AUABhAHQAaAAgAHYAYQByAGkAYQBiAGwAZQA6AGcAbABvAGIAYQBsADoAUAByAG8AZwByAGUAcwBzAFAAcgBlAGYAZQByAGUAbgBjAGUAKQB7ACQAUAByAG8AZwByAGUAcwBzAFAAcgBlAGYAZQByAGUAbgBjAGUAPQAnAFMAaQBsAGUAbgB0AGwAeQBDAG8AbgB0AGkAbgB1AGUAJwB9ADsAIABlAGMAaABvACAAIgBXAGkAbgBSAE0AIABjAG8AbgBuAGUAYwB0AGUAZAAuACIA'
2018/05/21 22:26:21 packer: 2018/05/21 22:26:21 [INFO] starting remote command: powershell.exe -EncodedCommand aQBmACAAKABUAGUAcwB0AC0AUABhAHQAaAAgAHYAYQByAGkAYQBiAGwAZQA6AGcAbABvAGIAYQBsADoAUAByAG8AZwByAGUAcwBzAFAAcgBlAGYAZQByAGUAbgBjAGUAKQB7ACQAUAByAG8AZwByAGUAcwBzAFAAcgBlAGYAZQByAGUAbgBjAGUAPQAnAFMAaQBsAGUAbgB0AGwAeQBDAG8AbgB0AGkAbgB1AGUAJwB9ADsAIABlAGMAaABvACAAIgBXAGkAbgBSAE0AIABjAG8AbgBuAGUAYwB0AGUAZAAuACIA
2018/05/21 22:26:22 packer: 2018/05/21 22:26:22 [INFO] command 'powershell.exe -EncodedCommand aQBmACAAKABUAGUAcwB0AC0AUABhAHQAaAAgAHYAYQByAGkAYQBiAGwAZQA6AGcAbABvAGIAYQBsADoAUAByAG8AZwByAGUAcwBzAFAAcgBlAGYAZQByAGUAbgBjAGUAKQB7ACQAUAByAG8AZwByAGUAcwBzAFAAcgBlAGYAZQByAGUAbgBjAGUAPQAnAFMAaQBsAGUAbgB0AGwAeQBDAG8AbgB0AGkAbgB1AGUAJwB9ADsAIABlAGMAaABvACAAIgBXAGkAbgBSAE0AIABjAG8AbgBuAGUAYwB0AGUAZAAuACIA' exited with code: 0
2018/05/21 22:26:22 ui: amazon-ebs: WinRM connected.
amazon-ebs: WinRM connected.
2018/05/21 22:26:22 packer: 2018/05/21 22:26:22 Connected to machine
2018/05/21 22:26:22 ui: ==> amazon-ebs: Connected to WinRM!
==> amazon-ebs: Connected to WinRM!
2018/05/21 22:26:22 packer: 2018/05/21 22:26:22 Running the provision hook
2018/05/21 22:26:22 [INFO] (telemetry) Starting provisioner file
2018/05/21 22:26:22 ui: ==> amazon-ebs: Uploading /Users/myuser/git-projects/mycompany/mycompany-packer/files/windows/webserver-app/ => c:\
==> amazon-ebs: Uploading /Users/myuser/git-projects/mycompany/mycompany-packer/files/windows/webserver-app/ => c:\
2018/05/21 22:26:22 packer: 2018/05/21 22:26:22 Uploading dir '/Users/myuser/git-projects/mycompany/mycompany-packer/files/windows/webserver-app/' to 'c:\'
2018/05/21 22:26:32 [INFO] (telemetry) ending file
2018/05/21 22:26:32 [INFO] (telemetry) Starting provisioner powershell
2018/05/21 22:26:32 ui: ==> amazon-ebs: Provisioning with Powershell...
==> amazon-ebs: Provisioning with Powershell...
2018/05/21 22:26:32 ui: ==> amazon-ebs: Provisioning with powershell script: /Users/myuser/git-projects/mycompany/mycompany-packer/provisioners/powershell/install-iis.ps1
2018/05/21 22:26:32 packer: 2018/05/21 22:26:32 Opening /Users/myuser/git-projects/mycompany/mycompany-packer/provisioners/powershell/install-iis.ps1 for reading
==> amazon-ebs: Provisioning with powershell script: /Users/myuser/git-projects/mycompany/mycompany-packer/provisioners/powershell/install-iis.ps1
2018/05/21 22:26:32 packer: 2018/05/21 22:26:32 Uploading env vars to c:/Windows/Temp/packer-ps-env-vars-5b032af4-9b6d-1020-5e89-d2750189bc40.ps1
2018/05/21 22:26:32 packer: 2018/05/21 22:26:32 [INFO] 114 bytes written for 'uploadData'
2018/05/21 22:26:32 [INFO] 114 bytes written for 'uploadData'
2018/05/21 22:26:33 packer: 2018/05/21 22:26:33 Uploading file to 'c:/Windows/Temp/packer-ps-env-vars-5b032af4-9b6d-1020-5e89-d2750189bc40.ps1'
2018/05/21 22:26:34 packer: 2018/05/21 22:26:34 Building elevated command wrapper for: powershell -executionpolicy bypass "& { if (Test-Path variable:global:ProgressPreference){$ProgressPreference='SilentlyContinue'};. c:/Windows/Temp/packer-ps-env-vars-5b032af4-9b6d-1020-5e89-d2750189bc40.ps1; &'c:/Windows/Temp/script-5b032af4-30b4-0f6c-f061-472aadd26b8d.ps1'; exit $LastExitCode }"
2018/05/21 22:26:34 packer: 2018/05/21 22:26:34 Command [powershell -executionpolicy bypass "& { if (Test-Path variable:global:ProgressPreference){$ProgressPreference='SilentlyContinue'};. c:/Windows/Temp/packer-ps-env-vars-5b032af4-9b6d-1020-5e89-d2750189bc40.ps1; &'c:/Windows/Temp/script-5b032af4-30b4-0f6c-f061-472aadd26b8d.ps1'; exit $LastExitCode }" > %SYSTEMROOT%/Temp/packer-5b032b7a-a296-aa47-c228-9416f6c6a054.out 2>&1] converted to [powershell -executionpolicy bypass &#34;&amp; { if (Test-Path variable:global:ProgressPreference){$ProgressPreference=&#39;SilentlyContinue&#39;};. c:/Windows/Temp/packer-ps-env-vars-5b032af4-9b6d-1020-5e89-d2750189bc40.ps1; &amp;&#39;c:/Windows/Temp/script-5b032af4-30b4-0f6c-f061-472aadd26b8d.ps1&#39;; exit $LastExitCode }&#34; &gt; %SYSTEMROOT%/Temp/packer-5b032b7a-a296-aa47-c228-9416f6c6a054.out 2&gt;&amp;1] for use in XML string
2018/05/21 22:26:34 packer: 2018/05/21 22:26:34 Uploading elevated shell wrapper for command [powershell -executionpolicy bypass "& { if (Test-Path variable:global:ProgressPreference){$ProgressPreference='SilentlyContinue'};. c:/Windows/Temp/packer-ps-env-vars-5b032af4-9b6d-1020-5e89-d2750189bc40.ps1; &'c:/Windows/Temp/script-5b032af4-30b4-0f6c-f061-472aadd26b8d.ps1'; exit $LastExitCode }" > %SYSTEMROOT%/Temp/packer-5b032b7a-a296-aa47-c228-9416f6c6a054.out 2>&1] to [C:/Windows/Temp/packer-elevated-shell-5b032b7a-4d8c-8e4d-70e0-f28e3f254e14.ps1]
2018/05/21 22:26:34 packer: 2018/05/21 22:26:34 [INFO] 2771 bytes written for 'uploadData'
2018/05/21 22:26:34 [INFO] 2771 bytes written for 'uploadData'
2018/05/21 22:26:36 [INFO] (telemetry) ending powershell
2018/05/21 22:26:36 ui: ==> amazon-ebs: Cancelling the spot request...
==> amazon-ebs: Cancelling the spot request...
2018/05/21 22:26:37 packer: 2018/05/21 22:26:37 Waiting for state to become: cancelled
2018/05/21 22:26:37 packer: 2018/05/21 22:26:37 Using 2s as polling delay (change with AWS_POLL_DELAY_SECONDS)
2018/05/21 22:26:37 packer: 2018/05/21 22:26:37 Allowing 300s to complete (change with AWS_TIMEOUT_SECONDS)
2018/05/21 22:26:37 ui: ==> amazon-ebs: Terminating the source AWS instance...
==> amazon-ebs: Terminating the source AWS instance...
2018/05/21 22:26:37 packer: 2018/05/21 22:26:37 Waiting for state to become: terminated
2018/05/21 22:26:37 packer: 2018/05/21 22:26:37 Using 2s as polling delay (change with AWS_POLL_DELAY_SECONDS)
2018/05/21 22:26:37 packer: 2018/05/21 22:26:37 Allowing 300s to complete (change with AWS_TIMEOUT_SECONDS)
2018/05/21 22:27:22 ui: ==> amazon-ebs: Cleaning up any extra volumes...
==> amazon-ebs: Cleaning up any extra volumes...
2018/05/21 22:27:22 ui: ==> amazon-ebs: No volumes to clean up, skipping
==> amazon-ebs: No volumes to clean up, skipping
2018/05/21 22:27:22 ui: ==> amazon-ebs: Deleting temporary security group...
==> amazon-ebs: Deleting temporary security group...
2018/05/21 22:27:22 ui: ==> amazon-ebs: Deleting temporary keypair...
==> amazon-ebs: Deleting temporary keypair...
2018/05/21 22:27:22 [INFO] (telemetry) ending amazon-ebs
2018/05/21 22:27:22 ui error: Build 'amazon-ebs' errored: Error processing command: Error generating elevated runner: Error preparing elevated powershell script: Couldn't determine whether destination was a folder or file: unknown error Post https://34.243.248.95:5986/wsman: read tcp 192.168.0.45:56801->34.243.248.95:5986: read: connection reset by peer
2018/05/21 22:27:22 Builds completed. Waiting on interrupt barrier...
2018/05/21 22:27:22 machine readable: error-count []string{"1"}
2018/05/21 22:27:22 ui error:
==> Some builds didn't complete successfully and had errors:
2018/05/21 22:27:22 machine readable: amazon-ebs,error []string{"Error processing command: Error generating elevated runner: Error preparing elevated powershell script: Couldn't determine whether destination was a folder or file: unknown error Post https://34.243.248.95:5986/wsman: read tcp 192.168.0.45:56801->34.243.248.95:5986: read: connection reset by peer"}
2018/05/21 22:27:22 ui error: --> amazon-ebs: Error processing command: Error generating elevated runner: Error preparing elevated powershell script: Couldn't determine whether destination was a folder or file: unknown error Post https://34.243.248.95:5986/wsman: read tcp 192.168.0.45:56801->34.243.248.95:5986: read: connection reset by peer
2018/05/21 22:27:22 ui:
==> Builds finished but no artifacts were created.
2018/05/21 22:27:22 [INFO] (telemetry) Finalizing.
Build 'amazon-ebs' errored: Error processing command: Error generating elevated runner: Error preparing elevated powershell script: Couldn't determine whether destination was a folder or file: unknown error Post https://34.243.248.95:5986/wsman: read tcp 192.168.0.45:56801->34.243.248.95:5986: read: connection reset by peer
==> Some builds didn't complete successfully and had errors:
--> amazon-ebs: Error processing command: Error generating elevated runner: Error preparing elevated powershell script: Couldn't determine whether destination was a folder or file: unknown error Post https://34.243.248.95:5986/wsman: read tcp 192.168.0.45:56801->34.243.248.95:5986: read: connection reset by peer
==> Builds finished but no artifacts were created.
2018/05/21 22:27:23 waiting for all plugin processes to complete...
2018/05/21 22:27:23 /usr/local/bin/packer: plugin process exited
2018/05/21 22:27:23 /usr/local/bin/packer: plugin process exited
2018/05/21 22:27:23 /usr/local/bin/packer: plugin process exited
2018/05/21 22:27:23 /usr/local/bin/packer: plugin process exited
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment