Skip to content

Instantly share code, notes, and snippets.

@res0nance
Created September 26, 2018 05:05
Show Gist options
  • Save res0nance/91c52ac1908cb121b9a98e50a7252359 to your computer and use it in GitHub Desktop.
Save res0nance/91c52ac1908cb121b9a98e50a7252359 to your computer and use it in GitHub Desktop.
Packer spins infinitely
2018/09/25 18:36:23 [INFO] Packer version: 1.3.1
2018/09/25 18:36:23 Packer Target OS/Arch: linux amd64
2018/09/25 18:36:23 Built with Go Version: go1.11
2018/09/25 18:36:23 Detected home directory from env var: /root
2018/09/25 18:36:23 Using internal plugin for file
2018/09/25 18:36:23 Using internal plugin for alicloud-ecs
2018/09/25 18:36:23 Using internal plugin for digitalocean
2018/09/25 18:36:23 Using internal plugin for parallels-pvm
2018/09/25 18:36:23 Using internal plugin for virtualbox-iso
2018/09/25 18:36:23 Using internal plugin for vmware-vmx
2018/09/25 18:36:23 Using internal plugin for lxc
2018/09/25 18:36:23 Using internal plugin for oracle-oci
2018/09/25 18:36:23 Using internal plugin for vmware-iso
2018/09/25 18:36:23 Using internal plugin for oneandone
2018/09/25 18:36:23 Using internal plugin for profitbricks
2018/09/25 18:36:23 Using internal plugin for openstack
2018/09/25 18:36:23 Using internal plugin for cloudstack
2018/09/25 18:36:23 Using internal plugin for lxd
2018/09/25 18:36:23 Using internal plugin for hyperv-iso
2018/09/25 18:36:23 Using internal plugin for ncloud
2018/09/25 18:36:23 Using internal plugin for oracle-classic
2018/09/25 18:36:23 Using internal plugin for amazon-ebs
2018/09/25 18:36:23 Using internal plugin for docker
2018/09/25 18:36:23 Using internal plugin for parallels-iso
2018/09/25 18:36:23 Using internal plugin for amazon-ebssurrogate
2018/09/25 18:36:23 Using internal plugin for azure-arm
2018/09/25 18:36:23 Using internal plugin for null
2018/09/25 18:36:23 Using internal plugin for amazon-instance
2018/09/25 18:36:23 Using internal plugin for hyperv-vmcx
2018/09/25 18:36:23 Using internal plugin for googlecompute
2018/09/25 18:36:23 Using internal plugin for qemu
2018/09/25 18:36:23 Using internal plugin for scaleway
2018/09/25 18:36:23 Using internal plugin for triton
2018/09/25 18:36:23 Using internal plugin for virtualbox-ovf
2018/09/25 18:36:23 Using internal plugin for amazon-chroot
2018/09/25 18:36:23 Using internal plugin for amazon-ebsvolume
2018/09/25 18:36:23 Using internal plugin for windows-restart
2018/09/25 18:36:23 Using internal plugin for chef-client
2018/09/25 18:36:23 Using internal plugin for shell
2018/09/25 18:36:23 Using internal plugin for powershell
2018/09/25 18:36:23 Using internal plugin for salt-masterless
2018/09/25 18:36:23 Using internal plugin for ansible
2018/09/25 18:36:23 Using internal plugin for converge
2018/09/25 18:36:23 Using internal plugin for file
2018/09/25 18:36:23 Using internal plugin for puppet-masterless
2018/09/25 18:36:23 Using internal plugin for puppet-server
2018/09/25 18:36:23 Using internal plugin for shell-local
2018/09/25 18:36:23 Using internal plugin for windows-shell
2018/09/25 18:36:23 Using internal plugin for ansible-local
2018/09/25 18:36:23 Using internal plugin for chef-solo
2018/09/25 18:36:23 Using internal plugin for amazon-import
2018/09/25 18:36:23 Using internal plugin for shell-local
2018/09/25 18:36:23 Using internal plugin for compress
2018/09/25 18:36:23 Using internal plugin for googlecompute-export
2018/09/25 18:36:23 Using internal plugin for googlecompute-import
2018/09/25 18:36:23 Using internal plugin for manifest
2018/09/25 18:36:23 Using internal plugin for artifice
2018/09/25 18:36:23 Using internal plugin for docker-save
2018/09/25 18:36:23 Using internal plugin for docker-tag
2018/09/25 18:36:23 Using internal plugin for vagrant
2018/09/25 18:36:23 Using internal plugin for vagrant-cloud
2018/09/25 18:36:23 Using internal plugin for vsphere
2018/09/25 18:36:23 Using internal plugin for alicloud-import
2018/09/25 18:36:23 Using internal plugin for checksum
2018/09/25 18:36:23 Using internal plugin for docker-import
2018/09/25 18:36:23 Using internal plugin for docker-push
2018/09/25 18:36:23 Using internal plugin for vsphere-template
2018/09/25 18:36:23 Detected home directory from env var: /root
2018/09/25 18:36:23 Attempting to open config file: /root/.packerconfig
2018/09/25 18:36:23 [WARN] Config file doesn't exist: /root/.packerconfig
2018/09/25 18:36:23 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[lxd:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxd amazon-ebssurrogate:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebssurrogate amazon-ebsvolume:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebsvolume vmware-vmx:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-vmx vmware-iso:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-iso hyperv-iso:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-iso docker:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-docker hyperv-vmcx:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-vmcx qemu:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu triton:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-triton profitbricks:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-profitbricks cloudstack:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-cloudstack googlecompute:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-googlecompute amazon-chroot:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-chroot oneandone:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oneandone openstack:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-openstack virtualbox-iso:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-iso file:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-file alicloud-ecs:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-alicloud-ecs scaleway:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-scaleway parallels-pvm:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-pvm oracle-classic:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-classic amazon-instance:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-instance parallels-iso:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-iso azure-arm:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-azure-arm oracle-oci:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-oci amazon-ebs:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs null:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-null digitalocean:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-digitalocean lxc:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxc ncloud:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-ncloud virtualbox-ovf:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-ovf] PostProcessors:map[shell-local:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-shell-local artifice:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-artifice vagrant:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant docker-push:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-push googlecompute-export:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-export googlecompute-import:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-import vsphere:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere docker-import:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-import manifest:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-manifest docker-save:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-save docker-tag:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-tag checksum:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-checksum vsphere-template:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere-template amazon-import:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-amazon-import compress:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-compress vagrant-cloud:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant-cloud alicloud-import:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-alicloud-import] Provisioners:map[salt-masterless:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-salt-masterless powershell:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-powershell puppet-masterless:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-masterless windows-shell:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-shell chef-solo:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-solo chef-client:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-client ansible:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible puppet-server:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-server ansible-local:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible-local windows-restart:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-restart shell:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell converge:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-converge file:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-file shell-local:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell-local]}
2018/09/25 18:36:23 Detected home directory from env var: /root
2018/09/25 18:36:23 Setting cache directory: /mnt/data/jenkins/workspace/t-hardened-ami_windows-base-5FGTO3UPNYCHZO7KHSGZSKXS2DXZBJSK5OHFUA5MP2BUYZIVZGOQ/packer_cache
2018/09/25 18:36:23 Detected home directory from env var: /root
2018/09/25 18:36:23 Loading builder: amazon-ebs
2018/09/25 18:36:23 Plugin could not be found. Checking same directory as executable.
2018/09/25 18:36:23 Current exe path: /bin/packer
2018/09/25 18:36:23 Creating plugin client for path: /bin/packer
2018/09/25 18:36:23 Starting plugin: /bin/packer []string{"/bin/packer", "plugin", "packer-builder-amazon-ebs"}
2018/09/25 18:36:23 Waiting for RPC address for: /bin/packer
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 [INFO] Packer version: 1.3.1
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Packer Target OS/Arch: linux amd64
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Built with Go Version: go1.11
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Detected home directory from env var: /root
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Attempting to open config file: /root/.packerconfig
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 [WARN] Config file doesn't exist: /root/.packerconfig
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Detected home directory from env var: /root
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Setting cache directory: /mnt/data/jenkins/workspace/t-hardened-ami_windows-base-5FGTO3UPNYCHZO7KHSGZSKXS2DXZBJSK5OHFUA5MP2BUYZIVZGOQ/packer_cache
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 args: []string{"packer-builder-amazon-ebs"}
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Detected home directory from env var: /root
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Plugin minimum port: 10000
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Plugin maximum port: 25000
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Plugin address: unix /tmp/packer-plugin116456876
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Waiting for connection...
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Serving a plugin connection...
2018/09/25 18:36:23 Loading provisioner: powershell
2018/09/25 18:36:23 Plugin could not be found. Checking same directory as executable.
2018/09/25 18:36:23 Current exe path: /bin/packer
2018/09/25 18:36:23 Creating plugin client for path: /bin/packer
2018/09/25 18:36:23 Starting plugin: /bin/packer []string{"/bin/packer", "plugin", "packer-provisioner-powershell"}
2018/09/25 18:36:23 Waiting for RPC address for: /bin/packer
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 [INFO] Packer version: 1.3.1
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Packer Target OS/Arch: linux amd64
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Built with Go Version: go1.11
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Detected home directory from env var: /root
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Attempting to open config file: /root/.packerconfig
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 [WARN] Config file doesn't exist: /root/.packerconfig
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Detected home directory from env var: /root
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Setting cache directory: /mnt/data/jenkins/workspace/t-hardened-ami_windows-base-5FGTO3UPNYCHZO7KHSGZSKXS2DXZBJSK5OHFUA5MP2BUYZIVZGOQ/packer_cache
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 args: []string{"packer-provisioner-powershell"}
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Plugin minimum port: 10000
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Plugin maximum port: 25000
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Detected home directory from env var: /root
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Plugin address: unix /tmp/packer-plugin417956172
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Waiting for connection...
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Serving a plugin connection...
2018/09/25 18:36:23 Loading provisioner: powershell
2018/09/25 18:36:23 Plugin could not be found. Checking same directory as executable.
2018/09/25 18:36:23 Current exe path: /bin/packer
2018/09/25 18:36:23 Creating plugin client for path: /bin/packer
2018/09/25 18:36:23 Starting plugin: /bin/packer []string{"/bin/packer", "plugin", "packer-provisioner-powershell"}
2018/09/25 18:36:23 Waiting for RPC address for: /bin/packer
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 [INFO] Packer version: 1.3.1
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Packer Target OS/Arch: linux amd64
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Built with Go Version: go1.11
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Detected home directory from env var: /root
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Attempting to open config file: /root/.packerconfig
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 [WARN] Config file doesn't exist: /root/.packerconfig
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Detected home directory from env var: /root
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Setting cache directory: /mnt/data/jenkins/workspace/t-hardened-ami_windows-base-5FGTO3UPNYCHZO7KHSGZSKXS2DXZBJSK5OHFUA5MP2BUYZIVZGOQ/packer_cache
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Detected home directory from env var: /root
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 args: []string{"packer-provisioner-powershell"}
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Plugin minimum port: 10000
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Plugin maximum port: 25000
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Plugin address: unix /tmp/packer-plugin200180358
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Waiting for connection...
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Serving a plugin connection...
2018/09/25 18:36:23 Loading provisioner: powershell
2018/09/25 18:36:23 Plugin could not be found. Checking same directory as executable.
2018/09/25 18:36:23 Current exe path: /bin/packer
2018/09/25 18:36:23 Creating plugin client for path: /bin/packer
2018/09/25 18:36:23 Starting plugin: /bin/packer []string{"/bin/packer", "plugin", "packer-provisioner-powershell"}
2018/09/25 18:36:23 Waiting for RPC address for: /bin/packer
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 [INFO] Packer version: 1.3.1
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Packer Target OS/Arch: linux amd64
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Built with Go Version: go1.11
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Detected home directory from env var: /root
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Attempting to open config file: /root/.packerconfig
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 [WARN] Config file doesn't exist: /root/.packerconfig
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Detected home directory from env var: /root
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Setting cache directory: /mnt/data/jenkins/workspace/t-hardened-ami_windows-base-5FGTO3UPNYCHZO7KHSGZSKXS2DXZBJSK5OHFUA5MP2BUYZIVZGOQ/packer_cache
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Detected home directory from env var: /root
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 args: []string{"packer-provisioner-powershell"}
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Plugin minimum port: 10000
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Plugin maximum port: 25000
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Plugin address: unix /tmp/packer-plugin670951251
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Waiting for connection...
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Serving a plugin connection...
2018/09/25 18:36:23 Loading provisioner: windows-restart
2018/09/25 18:36:23 Plugin could not be found. Checking same directory as executable.
2018/09/25 18:36:23 Current exe path: /bin/packer
2018/09/25 18:36:23 Creating plugin client for path: /bin/packer
2018/09/25 18:36:23 Starting plugin: /bin/packer []string{"/bin/packer", "plugin", "packer-provisioner-windows-restart"}
2018/09/25 18:36:23 Waiting for RPC address for: /bin/packer
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 [INFO] Packer version: 1.3.1
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Packer Target OS/Arch: linux amd64
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Built with Go Version: go1.11
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Detected home directory from env var: /root
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Attempting to open config file: /root/.packerconfig
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 [WARN] Config file doesn't exist: /root/.packerconfig
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Detected home directory from env var: /root
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Setting cache directory: /mnt/data/jenkins/workspace/t-hardened-ami_windows-base-5FGTO3UPNYCHZO7KHSGZSKXS2DXZBJSK5OHFUA5MP2BUYZIVZGOQ/packer_cache
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 args: []string{"packer-provisioner-windows-restart"}
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Plugin minimum port: 10000
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Plugin maximum port: 25000
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Plugin address: unix /tmp/packer-plugin277818395
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Waiting for connection...
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Detected home directory from env var: /root
2018/09/25 18:36:23 Loading provisioner: powershell
2018/09/25 18:36:23 Plugin could not be found. Checking same directory as executable.
2018/09/25 18:36:23 Current exe path: /bin/packer
2018/09/25 18:36:23 Creating plugin client for path: /bin/packer
2018/09/25 18:36:23 Starting plugin: /bin/packer []string{"/bin/packer", "plugin", "packer-provisioner-powershell"}
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Serving a plugin connection...
2018/09/25 18:36:23 Waiting for RPC address for: /bin/packer
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 [INFO] Packer version: 1.3.1
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Packer Target OS/Arch: linux amd64
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Built with Go Version: go1.11
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Detected home directory from env var: /root
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Attempting to open config file: /root/.packerconfig
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 [WARN] Config file doesn't exist: /root/.packerconfig
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Detected home directory from env var: /root
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Setting cache directory: /mnt/data/jenkins/workspace/t-hardened-ami_windows-base-5FGTO3UPNYCHZO7KHSGZSKXS2DXZBJSK5OHFUA5MP2BUYZIVZGOQ/packer_cache
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 args: []string{"packer-provisioner-powershell"}
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Plugin minimum port: 10000
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Plugin maximum port: 25000
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Detected home directory from env var: /root
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Plugin address: unix /tmp/packer-plugin070183407
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Waiting for connection...
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Serving a plugin connection...
2018/09/25 18:36:23 Loading provisioner: windows-restart
2018/09/25 18:36:23 Plugin could not be found. Checking same directory as executable.
2018/09/25 18:36:23 Current exe path: /bin/packer
2018/09/25 18:36:23 Creating plugin client for path: /bin/packer
2018/09/25 18:36:23 Starting plugin: /bin/packer []string{"/bin/packer", "plugin", "packer-provisioner-windows-restart"}
2018/09/25 18:36:23 Waiting for RPC address for: /bin/packer
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 [INFO] Packer version: 1.3.1
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Packer Target OS/Arch: linux amd64
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Built with Go Version: go1.11
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Detected home directory from env var: /root
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Attempting to open config file: /root/.packerconfig
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 [WARN] Config file doesn't exist: /root/.packerconfig
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Detected home directory from env var: /root
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Setting cache directory: /mnt/data/jenkins/workspace/t-hardened-ami_windows-base-5FGTO3UPNYCHZO7KHSGZSKXS2DXZBJSK5OHFUA5MP2BUYZIVZGOQ/packer_cache
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 args: []string{"packer-provisioner-windows-restart"}
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Plugin minimum port: 10000
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Plugin maximum port: 25000
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Detected home directory from env var: /root
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Plugin address: unix /tmp/packer-plugin800187056
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Waiting for connection...
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Serving a plugin connection...
2018/09/25 18:36:23 Loading provisioner: powershell
2018/09/25 18:36:23 Plugin could not be found. Checking same directory as executable.
2018/09/25 18:36:23 Current exe path: /bin/packer
2018/09/25 18:36:23 Creating plugin client for path: /bin/packer
2018/09/25 18:36:23 Starting plugin: /bin/packer []string{"/bin/packer", "plugin", "packer-provisioner-powershell"}
2018/09/25 18:36:23 Waiting for RPC address for: /bin/packer
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 [INFO] Packer version: 1.3.1
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Packer Target OS/Arch: linux amd64
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Built with Go Version: go1.11
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Detected home directory from env var: /root
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Attempting to open config file: /root/.packerconfig
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 [WARN] Config file doesn't exist: /root/.packerconfig
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Detected home directory from env var: /root
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Setting cache directory: /mnt/data/jenkins/workspace/t-hardened-ami_windows-base-5FGTO3UPNYCHZO7KHSGZSKXS2DXZBJSK5OHFUA5MP2BUYZIVZGOQ/packer_cache
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 args: []string{"packer-provisioner-powershell"}
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Plugin minimum port: 10000
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Plugin maximum port: 25000
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Detected home directory from env var: /root
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Plugin address: unix /tmp/packer-plugin083767840
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Waiting for connection...
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Serving a plugin connection...
2018/09/25 18:36:23 Loading provisioner: windows-restart
2018/09/25 18:36:23 Plugin could not be found. Checking same directory as executable.
2018/09/25 18:36:23 Current exe path: /bin/packer
2018/09/25 18:36:23 Creating plugin client for path: /bin/packer
2018/09/25 18:36:23 Starting plugin: /bin/packer []string{"/bin/packer", "plugin", "packer-provisioner-windows-restart"}
2018/09/25 18:36:23 Waiting for RPC address for: /bin/packer
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 [INFO] Packer version: 1.3.1
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Packer Target OS/Arch: linux amd64
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Built with Go Version: go1.11
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Detected home directory from env var: /root
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Attempting to open config file: /root/.packerconfig
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 [WARN] Config file doesn't exist: /root/.packerconfig
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Detected home directory from env var: /root
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Setting cache directory: /mnt/data/jenkins/workspace/t-hardened-ami_windows-base-5FGTO3UPNYCHZO7KHSGZSKXS2DXZBJSK5OHFUA5MP2BUYZIVZGOQ/packer_cache
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 args: []string{"packer-provisioner-windows-restart"}
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Plugin minimum port: 10000
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Plugin maximum port: 25000
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Plugin address: unix /tmp/packer-plugin286962917
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Waiting for connection...
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Detected home directory from env var: /root
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Serving a plugin connection...
2018/09/25 18:36:23 Loading provisioner: powershell
2018/09/25 18:36:23 Plugin could not be found. Checking same directory as executable.
2018/09/25 18:36:23 Current exe path: /bin/packer
2018/09/25 18:36:23 Creating plugin client for path: /bin/packer
2018/09/25 18:36:23 Starting plugin: /bin/packer []string{"/bin/packer", "plugin", "packer-provisioner-powershell"}
2018/09/25 18:36:23 Waiting for RPC address for: /bin/packer
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 [INFO] Packer version: 1.3.1
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Packer Target OS/Arch: linux amd64
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Built with Go Version: go1.11
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Detected home directory from env var: /root
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Attempting to open config file: /root/.packerconfig
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 [WARN] Config file doesn't exist: /root/.packerconfig
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Detected home directory from env var: /root
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Setting cache directory: /mnt/data/jenkins/workspace/t-hardened-ami_windows-base-5FGTO3UPNYCHZO7KHSGZSKXS2DXZBJSK5OHFUA5MP2BUYZIVZGOQ/packer_cache
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 args: []string{"packer-provisioner-powershell"}
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Plugin minimum port: 10000
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Plugin maximum port: 25000
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Detected home directory from env var: /root
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Plugin address: unix /tmp/packer-plugin101570345
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Waiting for connection...
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Serving a plugin connection...
amazon-ebs output will be in this color.
2018/09/25 18:36:23 Build debug mode: false
2018/09/25 18:36:23 Force build: false
2018/09/25 18:36:23 On error:
2018/09/25 18:36:23 Preparing build: amazon-ebs
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 {{amazon-ebs amazon-ebs false false map[ami_kms_key_id:8f4f0011-368f-439c-bf08-96f7bec486bf windows_password:**** aws_access_key:<sensitive> aws_secret_key:<sensitive> source_ami_id:ami-0fa51ee282ab5b1bd ami_region:us-west-2 ami_subnet:subnet-91a196d9 ami_vpc:vpc-d0a076a9 aws_security_token:<sensitive>] []} {<sensitive> false us-west-2 <sensitive> false false <sensitive> <nil>} {jenkins-win-agent-ami-0fa51ee282ab5b1bd-1537900583 [] [] [] [] false map[] false false false false true 8f4f0011-368f-439c-bf08-96f7bec486bf map[] map[] [] []} {{[]} {[{true /dev/sda1 false 0 false gp2 100 }]}} {false 0 false false false stop m4.xlarge map[] [sg-1bc72268] ami-0fa51ee282ab5b1bd {map[] [] false} map[] subnet-91a196d9 0.0.0.0/0 userdata.ps1 vpc-d0a076a9 20m0s {winrm 0 ec2-user [] [] jenkins-agent false ./jenkins-agent.pem false 0s false false 0 0 false 0 0s 0s Administrator 5986 30m0s true true false <nil>}} map[] {<nil> map[clean_ami_name:0xd3ef30] map[aws_security_token:<sensitive> ami_kms_key_id:8f4f0011-368f-439c-bf08-96f7bec486bf windows_password:**** ami_vpc:vpc-d0a076a9 source_ami_id:ami-0fa51ee282ab5b1bd aws_secret_key:<sensitive> aws_access_key:<sensitive> ami_subnet:subnet-91a196d9 ami_region:us-west-2] [] false amazon-ebs amazon-ebs /mnt/data/jenkins/workspace/t-hardened-ami_windows-base-5FGTO3UPNYCHZO7KHSGZSKXS2DXZBJSK5OHFUA5MP2BUYZIVZGOQ/agent.json}}
2018/09/25 18:36:23 Waiting on builds to complete...
2018/09/25 18:36:23 Starting build run: amazon-ebs
2018/09/25 18:36:23 Running builder: amazon-ebs
2018/09/25 18:36:23 [INFO] (telemetry) Starting builder amazon-ebs
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 Found region us-west-2
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 [INFO] AWS Auth provider used: "StaticProvider"
2018/09/25 18:36:23 packer: 2018/09/25 18:36:23 [INFO] Finding AZ and VpcId for the given subnet 'subnet-91a196d9'
2018/09/25 18:36:24 packer: 2018/09/25 18:36:24 [INFO] AvailabilityZone found: 'us-west-2a'
==> amazon-ebs: Prevalidating AMI Name: jenkins-win-agent-ami-0fa51ee282ab5b1bd-1537900583
2018/09/25 18:36:25 packer: 2018/09/25 18:36:25 Using AMI Filters {
2018/09/25 18:36:25 packer: ImageIds: ["ami-0fa51ee282ab5b1bd"]
2018/09/25 18:36:25 packer: }
amazon-ebs: Found Image ID: ami-0fa51ee282ab5b1bd
==> amazon-ebs: Using existing SSH private key
2018/09/25 18:36:26 packer: 2018/09/25 18:36:26 Using specified security groups: [sg-1bc72268]
2018/09/25 18:36:26 packer: 2018/09/25 18:36:26 [DEBUG] base64 encoding user data...
==> amazon-ebs: Launching a source AWS instance...
==> amazon-ebs: Adding tags to source instance
amazon-ebs: Adding tag: "Name": "Packer Builder"
amazon-ebs: Instance ID: i-05a4579403d1db262
==> amazon-ebs: Waiting for instance (i-05a4579403d1db262) to become ready...
amazon-ebs: but it usually takes around 5. Please wait.
==> amazon-ebs: Waiting for auto-generated password for instance...
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/09/25 18:36:48 packer: 2018/09/25 18:36:48 [DEBUG] Password is blank, will retry...
2018/09/25 18:36:53 packer: 2018/09/25 18:36:53 [DEBUG] Password is blank, will retry...
2018/09/25 18:36:59 packer: 2018/09/25 18:36:59 [DEBUG] Password is blank, will retry...
2018/09/25 18:37:04 packer: 2018/09/25 18:37:04 [DEBUG] Password is blank, will retry...
2018/09/25 18:37:09 packer: 2018/09/25 18:37:09 [DEBUG] Password is blank, will retry...
2018/09/25 18:37:14 packer: 2018/09/25 18:37:14 [DEBUG] Password is blank, will retry...
2018/09/25 18:37:19 packer: 2018/09/25 18:37:19 [DEBUG] Password is blank, will retry...
2018/09/25 18:37:24 packer: 2018/09/25 18:37:24 [DEBUG] Password is blank, will retry...
2018/09/25 18:37:29 packer: 2018/09/25 18:37:29 [DEBUG] Password is blank, will retry...
2018/09/25 18:37:35 packer: 2018/09/25 18:37:35 [DEBUG] Password is blank, will retry...
2018/09/25 18:37:40 packer: 2018/09/25 18:37:40 [DEBUG] Password is blank, will retry...
2018/09/25 18:37:45 packer: 2018/09/25 18:37:45 [DEBUG] Password is blank, will retry...
2018/09/25 18:37:50 packer: 2018/09/25 18:37:50 [DEBUG] Password is blank, will retry...
2018/09/25 18:37:55 packer: 2018/09/25 18:37:55 [DEBUG] Password is blank, will retry...
2018/09/25 18:38:00 packer: 2018/09/25 18:38:00 [DEBUG] Password is blank, will retry...
2018/09/25 18:38:05 packer: 2018/09/25 18:38:05 [DEBUG] Password is blank, will retry...
2018/09/25 18:38:10 packer: 2018/09/25 18:38:10 [DEBUG] Password is blank, will retry...
2018/09/25 18:38:16 packer: 2018/09/25 18:38:16 [DEBUG] Password is blank, will retry...
2018/09/25 18:38:21 packer: 2018/09/25 18:38:21 [DEBUG] Password is blank, will retry...
2018/09/25 18:38:26 packer: 2018/09/25 18:38:26 [DEBUG] Password is blank, will retry...
2018/09/25 18:38:31 packer: 2018/09/25 18:38:31 [DEBUG] Password is blank, will retry...
2018/09/25 18:38:36 packer: 2018/09/25 18:38:36 [DEBUG] Password is blank, will retry...
2018/09/25 18:38:41 packer: 2018/09/25 18:38:41 [DEBUG] Password is blank, will retry...
2018/09/25 18:38:46 packer: 2018/09/25 18:38:46 [DEBUG] Password is blank, will retry...
2018/09/25 18:38:51 packer: 2018/09/25 18:38:51 [DEBUG] Password is blank, will retry...
2018/09/25 18:38:57 packer: 2018/09/25 18:38:57 [DEBUG] Password is blank, will retry...
2018/09/25 18:39:02 packer: 2018/09/25 18:39:02 [DEBUG] Password is blank, will retry...
2018/09/25 18:39:07 packer: 2018/09/25 18:39:07 [DEBUG] Password is blank, will retry...
2018/09/25 18:39:12 packer: 2018/09/25 18:39:12 [DEBUG] Password is blank, will retry...
2018/09/25 18:39:17 packer: 2018/09/25 18:39:17 [DEBUG] Password is blank, will retry...
2018/09/25 18:39:22 packer: 2018/09/25 18:39:22 [DEBUG] Password is blank, will retry...
2018/09/25 18:39:27 packer: 2018/09/25 18:39:27 [DEBUG] Password is blank, will retry...
2018/09/25 18:39:33 packer: 2018/09/25 18:39:33 [DEBUG] Password is blank, will retry...
2018/09/25 18:39:38 packer: 2018/09/25 18:39:38 [DEBUG] Password is blank, will retry...
2018/09/25 18:39:43 packer: 2018/09/25 18:39:43 [DEBUG] Password is blank, will retry...
2018/09/25 18:39:48 packer: 2018/09/25 18:39:48 [DEBUG] Password is blank, will retry...
2018/09/25 18:39:53 packer: 2018/09/25 18:39:53 [DEBUG] Password is blank, will retry...
2018/09/25 18:39:58 packer: 2018/09/25 18:39:58 [DEBUG] Password is blank, will retry...
2018/09/25 18:40:03 packer: 2018/09/25 18:40:03 [DEBUG] Password is blank, will retry...
2018/09/25 18:40:08 packer: 2018/09/25 18:40:08 [DEBUG] Password is blank, will retry...
amazon-ebs: Password retrieved!
amazon-ebs:
amazon-ebs: Password retrieved!
2018/09/25 18:40:14 packer: 2018/09/25 18:40:14 Waiting for WinRM, up to timeout: 30m0s
==> amazon-ebs: Using winrm communicator to connect: 10.45.105.174
==> amazon-ebs: Waiting for WinRM to become available...
2018/09/25 18:40:19 packer: 2018/09/25 18:40:19 [INFO] Attempting WinRM connection...
2018/09/25 18:40:19 packer: 2018/09/25 18:40:19 [DEBUG] connecting to remote shell using WinRM
2018/09/25 18:40:24 packer: 2018/09/25 18:40:24 Checking that WinRM is connected with: 'powershell.exe -EncodedCommand aQBmACAAKABUAGUAcwB0AC0AUABhAHQAaAAgAHYAYQByAGkAYQBiAGwAZQA6AGcAbABvAGIAYQBsADoAUAByAG8AZwByAGUAcwBzAFAAcgBlAGYAZQByAGUAbgBjAGUAKQB7ACQAUAByAG8AZwByAGUAcwBzAFAAcgBlAGYAZQByAGUAbgBjAGUAPQAnAFMAaQBsAGUAbgB0AGwAeQBDAG8AbgB0AGkAbgB1AGUAJwB9ADsAIABlAGMAaABvACAAIgBXAGkAbgBSAE0AIABjAG8AbgBuAGUAYwB0AGUAZAAuACIA'
2018/09/25 18:40:24 packer: 2018/09/25 18:40:24 [INFO] starting remote command: powershell.exe -EncodedCommand aQBmACAAKABUAGUAcwB0AC0AUABhAHQAaAAgAHYAYQByAGkAYQBiAGwAZQA6AGcAbABvAGIAYQBsADoAUAByAG8AZwByAGUAcwBzAFAAcgBlAGYAZQByAGUAbgBjAGUAKQB7ACQAUAByAG8AZwByAGUAcwBzAFAAcgBlAGYAZQByAGUAbgBjAGUAPQAnAFMAaQBsAGUAbgB0AGwAeQBDAG8AbgB0AGkAbgB1AGUAJwB9ADsAIABlAGMAaABvACAAIgBXAGkAbgBSAE0AIABjAG8AbgBuAGUAYwB0AGUAZAAuACIA
2018/09/25 18:40:24 packer: 2018/09/25 18:40:24 [INFO] command 'powershell.exe -EncodedCommand aQBmACAAKABUAGUAcwB0AC0AUABhAHQAaAAgAHYAYQByAGkAYQBiAGwAZQA6AGcAbABvAGIAYQBsADoAUAByAG8AZwByAGUAcwBzAFAAcgBlAGYAZQByAGUAbgBjAGUAKQB7ACQAUAByAG8AZwByAGUAcwBzAFAAcgBlAGYAZQByAGUAbgBjAGUAPQAnAFMAaQBsAGUAbgB0AGwAeQBDAG8AbgB0AGkAbgB1AGUAJwB9ADsAIABlAGMAaABvACAAIgBXAGkAbgBSAE0AIABjAG8AbgBuAGUAYwB0AGUAZAAuACIA' exited with code: 0
amazon-ebs: WinRM connected.
amazon-ebs: #< CLIXML
2018/09/25 18:40:24 packer: 2018/09/25 18:40:24 Connected to machine
2018/09/25 18:40:24 packer: 2018/09/25 18:40:24 Running the provision hook
amazon-ebs: <Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj><Obj S="progress" RefId="1"><TNRef RefId="0" /><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>
==> amazon-ebs: Connected to WinRM!
2018/09/25 18:40:24 [INFO] (telemetry) Starting provisioner powershell
==> amazon-ebs: Provisioning with Powershell...
==> amazon-ebs: Provisioning with powershell script: ./install_msvs.ps1
2018/09/25 18:40:24 packer: 2018/09/25 18:40:24 Opening ./install_msvs.ps1 for reading
2018/09/25 18:40:24 packer: 2018/09/25 18:40:24 Uploading env vars to c:/Windows/Temp/packer-ps-env-vars-5baa8027-08a1-bc3e-0e0c-5bcb6f04142b.ps1
2018/09/25 18:40:24 packer: 2018/09/25 18:40:24 [INFO] 76 bytes written for 'uploadData'
2018/09/25 18:40:24 [INFO] 76 bytes written for 'uploadData'
2018/09/25 18:40:24 packer: 2018/09/25 18:40:24 Uploading file to 'c:/Windows/Temp/packer-ps-env-vars-5baa8027-08a1-bc3e-0e0c-5bcb6f04142b.ps1'
2018/09/25 18:40:25 packer: #< CLIXML
2018/09/25 18:40:26 packer: <Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>#< CLIXML
2018/09/25 18:40:26 packer: 2018/09/25 18:40:26 [INFO] 1570 bytes written for 'uploadData'
2018/09/25 18:40:26 [INFO] 1570 bytes written for 'uploadData'
2018/09/25 18:40:26 packer: <Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>2018/09/25 18:40:26 Uploading file to 'c:/Windows/Temp/script-5baa8027-0302-d3d7-6b6e-ca6b95f294bf.ps1'
2018/09/25 18:40:27 packer: #< CLIXML
2018/09/25 18:40:27 packer: <Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>#< CLIXML
2018/09/25 18:40:27 packer: <Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>2018/09/25 18:40:27 [INFO] starting remote command: powershell -executionpolicy bypass "& { if (Test-Path variable:global:ProgressPreference){$ProgressPreference='SilentlyContinue'};. c:/Windows/Temp/packer-ps-env-vars-5baa8027-08a1-bc3e-0e0c-5bcb6f04142b.ps1; &'c:/Windows/Temp/script-5baa8027-0302-d3d7-6b6e-ca6b95f294bf.ps1';exit $LastExitCode }"
amazon-ebs:
amazon-ebs: Handles NPM(K) PM(K) WS(K) CPU(s) Id SI ProcessName
amazon-ebs: ------- ------ ----- ----- ------ -- -- -----------
amazon-ebs: 14 2 328 1200 0.30 2476 0 vs_professional
2018/09/25 19:05:13 packer: 2018/09/25 19:05:13 [INFO] command 'powershell -executionpolicy bypass "& { if (Test-Path variable:global:ProgressPreference){$ProgressPreference='SilentlyContinue'};. c:/Windows/Temp/packer-ps-env-vars-5baa8027-08a1-bc3e-0e0c-5bcb6f04142b.ps1; &'c:/Windows/Temp/script-5baa8027-0302-d3d7-6b6e-ca6b95f294bf.ps1';exit $LastExitCode }"' exited with code: 0
2018/09/25 19:05:13 packer: 2018/09/25 19:05:13 [INFO] RPC endpoint: Communicator ended with: 0
2018/09/25 19:05:13 [INFO] 365 bytes written for 'stdout'
2018/09/25 19:05:13 [INFO] 0 bytes written for 'stderr'
2018/09/25 19:05:13 [INFO] RPC client: Communicator ended with: 0
2018/09/25 19:05:13 [INFO] RPC endpoint: Communicator ended with: 0
2018/09/25 19:05:13 packer: 2018/09/25 19:05:13 [INFO] 365 bytes written for 'stdout'
2018/09/25 19:05:13 packer: 2018/09/25 19:05:13 [INFO] 0 bytes written for 'stderr'
2018/09/25 19:05:13 packer: 2018/09/25 19:05:13 [INFO] RPC client: Communicator ended with: 0
2018/09/25 19:05:13 [INFO] (telemetry) ending powershell
2018/09/25 19:05:13 [INFO] (telemetry) Starting provisioner powershell
==> amazon-ebs: Provisioning with Powershell...
==> amazon-ebs: Provisioning with powershell script: ./install_choco.ps1
2018/09/25 19:05:13 packer: 2018/09/25 19:05:13 Opening ./install_choco.ps1 for reading
2018/09/25 19:05:13 packer: 2018/09/25 19:05:13 Uploading env vars to c:/Windows/Temp/packer-ps-env-vars-5baa8027-134d-ef73-3c4f-520d80770e6d.ps1
2018/09/25 19:05:13 packer: 2018/09/25 19:05:13 [INFO] 76 bytes written for 'uploadData'
2018/09/25 19:05:13 packer: 2018/09/25 19:05:13 Uploading file to 'c:/Windows/Temp/packer-ps-env-vars-5baa8027-134d-ef73-3c4f-520d80770e6d.ps1'
2018/09/25 19:05:13 [INFO] 76 bytes written for 'uploadData'
2018/09/25 19:05:14 packer: #< CLIXML
2018/09/25 19:05:14 packer: <Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>#< CLIXML
2018/09/25 19:05:14 packer: 2018/09/25 19:05:14 [INFO] 175 bytes written for 'uploadData'
2018/09/25 19:05:14 [INFO] 175 bytes written for 'uploadData'
2018/09/25 19:05:14 packer: <Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>2018/09/25 19:05:14 Uploading file to 'c:/Windows/Temp/script-5baa8027-f831-b842-dbb9-0da2ee30d12f.ps1'
2018/09/25 19:05:14 packer: #< CLIXML
2018/09/25 19:05:15 packer: <Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>#< CLIXML
2018/09/25 19:05:15 packer: <Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>2018/09/25 19:05:15 [INFO] starting remote command: powershell -executionpolicy bypass "& { if (Test-Path variable:global:ProgressPreference){$ProgressPreference='SilentlyContinue'};. c:/Windows/Temp/packer-ps-env-vars-5baa8027-134d-ef73-3c4f-520d80770e6d.ps1; &'c:/Windows/Temp/script-5baa8027-f831-b842-dbb9-0da2ee30d12f.ps1';exit $LastExitCode }"
amazon-ebs: Getting latest version of the Chocolatey package for download.
amazon-ebs: Getting Chocolatey from https://chocolatey.org/api/v2/package/chocolatey/0.10.11.
amazon-ebs: Downloading 7-Zip commandline tool prior to extraction.
amazon-ebs: Extracting C:\Users\Administrator\AppData\Local\Temp\chocolatey\chocInstall\chocolatey.zip to C:\Users\Administrator\AppData\Local\Temp\chocolatey\chocInstall...
amazon-ebs: Installing chocolatey on this machine
amazon-ebs: Creating ChocolateyInstall as an environment variable (targeting 'Machine')
amazon-ebs: Setting ChocolateyInstall to 'C:\ProgramData\chocolatey'
amazon-ebs: WARNING: It's very likely you will need to close and reopen your shell
amazon-ebs: before you can use choco.
amazon-ebs: Restricting write permissions to Administrators
amazon-ebs: We are setting up the Chocolatey package repository.
amazon-ebs: The packages themselves go to 'C:\ProgramData\chocolatey\lib'
amazon-ebs: (i.e. C:\ProgramData\chocolatey\lib\yourPackageName).
amazon-ebs: A shim file for the command line goes to 'C:\ProgramData\chocolatey\bin'
amazon-ebs: and points to an executable in 'C:\ProgramData\chocolatey\lib\yourPackageName'.
amazon-ebs:
amazon-ebs: Creating Chocolatey folders if they do not already exist.
amazon-ebs:
amazon-ebs: WARNING: You can safely ignore errors related to missing log files when
amazon-ebs: upgrading from a version of Chocolatey less than 0.9.9.
amazon-ebs: 'Batch file could not be found' is also safe to ignore.
amazon-ebs: 'The system cannot find the file specified' - also safe.
amazon-ebs: chocolatey.nupkg file not installed in lib.
amazon-ebs: Attempting to locate it from bootstrapper.
amazon-ebs: PATH environment variable does not have C:\ProgramData\chocolatey\bin in it. Adding...
amazon-ebs: WARNING: Not setting tab completion: Profile file does not exist at
amazon-ebs: 'C:\Users\Administrator\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1'.
amazon-ebs: Chocolatey (choco.exe) is now ready.
amazon-ebs: You can call choco from anywhere, command line or powershell by typing choco.
amazon-ebs: Run choco /? for a list of functions.
amazon-ebs: You may need to shut down and restart powershell and/or consoles
amazon-ebs: first prior to using choco.
amazon-ebs: Ensuring chocolatey commands are on the path
amazon-ebs: Ensuring chocolatey.nupkg is in the lib folder
amazon-ebs: Chocolatey v0.10.11
amazon-ebs: Installing the following packages:
amazon-ebs: git.install
amazon-ebs: By installing you accept licenses for the packages.
amazon-ebs: Progress: Downloading chocolatey-core.extension 1.3.3... 100%
amazon-ebs: Progress: Downloading git.install 2.19.0... 100%
amazon-ebs:
amazon-ebs: chocolatey-core.extension v1.3.3 [Approved]
amazon-ebs: chocolatey-core.extension package files install completed. Performing other installation steps.
amazon-ebs: Installed/updated chocolatey-core extensions.
amazon-ebs: The install of chocolatey-core.extension was successful.
amazon-ebs: Software installed to 'C:\ProgramData\chocolatey\extensions\chocolatey-core'
amazon-ebs:
amazon-ebs: git.install v2.19.0 [Approved]
amazon-ebs: git.install package files install completed. Performing other installation steps.
amazon-ebs: Using Git LFS
amazon-ebs: Installing 64-bit git.install...
amazon-ebs: git.install has been installed.
amazon-ebs: git.install installed to 'C:\Program Files\Git'
amazon-ebs: git.install can be automatically uninstalled.
amazon-ebs: Environment Vars (like PATH) have changed. Close/reopen your shell to
amazon-ebs: see the changes (or in powershell/cmd.exe just type `refreshenv`).
amazon-ebs: The install of git.install was successful.
amazon-ebs: Software installed to 'C:\Program Files\Git\'
amazon-ebs:
amazon-ebs: Chocolatey installed 2/2 packages.
amazon-ebs: See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
amazon-ebs: Chocolatey v0.10.11
amazon-ebs: Installing the following packages:
amazon-ebs: git-credential-manager-for-windows
amazon-ebs: By installing you accept licenses for the packages.
amazon-ebs: Progress: Downloading git 2.19.0... 100%
amazon-ebs: Progress: Downloading Git-Credential-Manager-for-Windows 1.17.2... 100%
amazon-ebs:
amazon-ebs: git v2.19.0 [Approved]
amazon-ebs: git package files install completed. Performing other installation steps.
amazon-ebs: The install of git was successful.
amazon-ebs: Software install location not explicitly set, could be in package or
amazon-ebs: default install location if installer.
amazon-ebs:
amazon-ebs: Git-Credential-Manager-for-Windows v1.17.2 [Approved]
amazon-ebs: git-credential-manager-for-windows package files install completed. Performing other installation steps.
amazon-ebs: Downloading Git-Credential-Manager-for-Windows
amazon-ebs: from 'https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases/download/v1.17.2/gcmw-1.17.2.exe'
amazon-ebs: Progress: 100% - Completed download of C:\Users\Administrator\AppData\Local\Temp\chocolatey\Git-Credential-Manager-for-Windows\1.17.2\GCMW-1.17.2.exe (1012.96 KB).
amazon-ebs: Download of GCMW-1.17.2.exe (1012.96 KB) completed.
amazon-ebs: Hashes match.
amazon-ebs: Installing Git-Credential-Manager-for-Windows...
2018/09/25 19:07:06 packer: 2018/09/25 19:07:06 [INFO] command 'powershell -executionpolicy bypass "& { if (Test-Path variable:global:ProgressPreference){$ProgressPreference='SilentlyContinue'};. c:/Windows/Temp/packer-ps-env-vars-5baa8027-134d-ef73-3c4f-520d80770e6d.ps1; &'c:/Windows/Temp/script-5baa8027-f831-b842-dbb9-0da2ee30d12f.ps1';exit $LastExitCode }"' exited with code: 0
2018/09/25 19:07:06 packer: 2018/09/25 19:07:06 [INFO] RPC endpoint: Communicator ended with: 0
2018/09/25 19:07:06 [INFO] 1019705 bytes written for 'stdout'
2018/09/25 19:07:06 [INFO] 0 bytes written for 'stderr'
2018/09/25 19:07:06 [INFO] RPC client: Communicator ended with: 0
2018/09/25 19:07:06 [INFO] RPC endpoint: Communicator ended with: 0
amazon-ebs: Git-Credential-Manager-for-Windows has been installed.
2018/09/25 19:07:06 packer: 2018/09/25 19:07:06 [INFO] 0 bytes written for 'stderr'
2018/09/25 19:07:06 packer: 2018/09/25 19:07:06 [INFO] 1019705 bytes written for 'stdout'
2018/09/25 19:07:06 packer: 2018/09/25 19:07:06 [INFO] RPC client: Communicator ended with: 0
amazon-ebs: git-credential-manager-for-windows can be automatically uninstalled.
amazon-ebs: The install of git-credential-manager-for-windows was successful.
amazon-ebs: Software installed to 'C:\Users\Administrator\AppData\Local\Programs\Microsoft Git Credential Manager for Windows\'
amazon-ebs:
amazon-ebs: Chocolatey installed 2/2 packages.
amazon-ebs: See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2018/09/25 19:07:06 [INFO] (telemetry) ending powershell
2018/09/25 19:07:06 [INFO] (telemetry) Starting provisioner powershell
==> amazon-ebs: Provisioning with Powershell...
2018/09/25 19:07:06 packer: 2018/09/25 19:07:06 Opening ./add_DNS.ps1 for reading
==> amazon-ebs: Provisioning with powershell script: ./add_DNS.ps1
2018/09/25 19:07:06 packer: 2018/09/25 19:07:06 Uploading env vars to c:/Windows/Temp/packer-ps-env-vars-5baa8027-b445-d6a5-b09d-1c86fd102837.ps1
2018/09/25 19:07:06 packer: 2018/09/25 19:07:06 [INFO] 76 bytes written for 'uploadData'
2018/09/25 19:07:06 [INFO] 76 bytes written for 'uploadData'
2018/09/25 19:07:06 packer: 2018/09/25 19:07:06 Uploading file to 'c:/Windows/Temp/packer-ps-env-vars-5baa8027-b445-d6a5-b09d-1c86fd102837.ps1'
2018/09/25 19:07:06 packer: #< CLIXML
2018/09/25 19:07:07 packer: <Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>#< CLIXML
2018/09/25 19:07:07 packer: 2018/09/25 19:07:07 [INFO] 108 bytes written for 'uploadData'
2018/09/25 19:07:07 [INFO] 108 bytes written for 'uploadData'
2018/09/25 19:07:07 packer: <Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>2018/09/25 19:07:07 Uploading file to 'c:/Windows/Temp/script-5baa8027-594c-6ef4-5d5b-d98dc5bdbb48.ps1'
2018/09/25 19:07:08 packer: #< CLIXML
2018/09/25 19:07:08 packer: <Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>#< CLIXML
2018/09/25 19:07:08 packer: <Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>2018/09/25 19:07:08 [INFO] starting remote command: powershell -executionpolicy bypass "& { if (Test-Path variable:global:ProgressPreference){$ProgressPreference='SilentlyContinue'};. c:/Windows/Temp/packer-ps-env-vars-5baa8027-b445-d6a5-b09d-1c86fd102837.ps1; &'c:/Windows/Temp/script-5baa8027-594c-6ef4-5d5b-d98dc5bdbb48.ps1';exit $LastExitCode }"
2018/09/25 19:07:09 packer: 2018/09/25 19:07:09 [INFO] command 'powershell -executionpolicy bypass "& { if (Test-Path variable:global:ProgressPreference){$ProgressPreference='SilentlyContinue'};. c:/Windows/Temp/packer-ps-env-vars-5baa8027-b445-d6a5-b09d-1c86fd102837.ps1; &'c:/Windows/Temp/script-5baa8027-594c-6ef4-5d5b-d98dc5bdbb48.ps1';exit $LastExitCode }"' exited with code: 0
2018/09/25 19:07:09 packer: 2018/09/25 19:07:09 [INFO] RPC endpoint: Communicator ended with: 0
2018/09/25 19:07:09 [INFO] 602 bytes written for 'stderr'
2018/09/25 19:07:09 [INFO] 0 bytes written for 'stdout'
2018/09/25 19:07:09 [INFO] RPC client: Communicator ended with: 0
2018/09/25 19:07:09 [INFO] RPC endpoint: Communicator ended with: 0
2018/09/25 19:07:09 packer: 2018/09/25 19:07:09 [INFO] 0 bytes written for 'stdout'
2018/09/25 19:07:09 packer: 2018/09/25 19:07:09 [INFO] 602 bytes written for 'stderr'
2018/09/25 19:07:09 packer: 2018/09/25 19:07:09 [INFO] RPC client: Communicator ended with: 0
amazon-ebs: Set-DnsClientServerAddress : No MSFT_DNSClientServerAddress objects found with property 'InterfaceIndex' equal to '5'.
amazon-ebs: Verify the value of the property and retry.
amazon-ebs: At C:\Windows\Temp\script-5baa8027-594c-6ef4-5d5b-d98dc5bdbb48.ps1:1 char:1
amazon-ebs: + Set-DnsClientServerAddress -InterfaceIndex 5 -ServerAddresses ("10.35 ...
amazon-ebs: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
amazon-ebs: + CategoryInfo : ObjectNotFound: (5:UInt32) [Set-DnsClientServerAddress], CimJobException
amazon-ebs: + FullyQualifiedErrorId : CmdletizationQuery_NotFound_InterfaceIndex,Set-DnsClientServerAddress
amazon-ebs:
2018/09/25 19:07:09 [INFO] (telemetry) ending powershell
2018/09/25 19:07:09 [INFO] (telemetry) Starting provisioner windows-restart
==> amazon-ebs: Restarting Machine
2018/09/25 19:07:09 packer: 2018/09/25 19:07:09 [INFO] starting remote command: shutdown /r /f /t 0 /c "packer restart"
2018/09/25 19:07:09 packer: 2018/09/25 19:07:09 [INFO] command 'shutdown /r /f /t 0 /c "packer restart"' exited with code: 0
2018/09/25 19:07:09 packer: 2018/09/25 19:07:09 [INFO] RPC endpoint: Communicator ended with: 0
2018/09/25 19:07:09 [INFO] 0 bytes written for 'stdout'
2018/09/25 19:07:09 [INFO] 0 bytes written for 'stderr'
2018/09/25 19:07:09 [INFO] RPC client: Communicator ended with: 0
2018/09/25 19:07:09 [INFO] RPC endpoint: Communicator ended with: 0
2018/09/25 19:07:09 packer: 2018/09/25 19:07:09 [INFO] 0 bytes written for 'stdout'
2018/09/25 19:07:09 packer: 2018/09/25 19:07:09 [INFO] 0 bytes written for 'stderr'
2018/09/25 19:07:09 packer: 2018/09/25 19:07:09 [INFO] RPC client: Communicator ended with: 0
==> amazon-ebs: Waiting for machine to restart...
2018/09/25 19:07:10 packer: 2018/09/25 19:07:10 Check if machine is rebooting...
2018/09/25 19:07:40 [INFO] 0 bytes written for 'stdout'
2018/09/25 19:07:40 [INFO] 0 bytes written for 'stderr'
2018/09/25 19:07:40 packer: 2018/09/25 19:07:40 [INFO] 0 bytes written for 'stdout'
2018/09/25 19:07:40 packer: 2018/09/25 19:07:40 [INFO] 0 bytes written for 'stderr'
2018/09/25 19:07:40 packer: 2018/09/25 19:07:40 Waiting for machine to reboot with timeout: 5m0s
2018/09/25 19:07:40 packer: 2018/09/25 19:07:40 Waiting for machine to become available...
2018/09/25 19:07:40 packer: 2018/09/25 19:07:40 Checking that communicator is connected with: 'powershell.exe -EncodedCommand ZQBjAGgAbwAgACIAJAB7AGUAbgB2ADoAQwBPAE0AUABVAFQARQBSAE4AQQBNAEUAfQAgAHIAZQBzAHQAYQByAHQAZQBkAC4AIgA='
2018/09/25 19:07:46 packer: 2018/09/25 19:07:46 [INFO] starting remote command: powershell.exe -EncodedCommand ZQBjAGgAbwAgACIAJAB7AGUAbgB2ADoAQwBPAE0AUABVAFQARQBSAE4AQQBNAEUAfQAgAHIAZQBzAHQAYQByAHQAZQBkAC4AIgA=
2018/09/25 19:07:48 packer: 2018/09/25 19:07:48 [INFO] command 'powershell.exe -EncodedCommand ZQBjAGgAbwAgACIAJAB7AGUAbgB2ADoAQwBPAE0AUABVAFQARQBSAE4AQQBNAEUAfQAgAHIAZQBzAHQAYQByAHQAZQBkAC4AIgA=' exited with code: 0
2018/09/25 19:07:48 packer: 2018/09/25 19:07:48 [INFO] RPC endpoint: Communicator ended with: 0
2018/09/25 19:07:48 [INFO] 392 bytes written for 'stderr'
2018/09/25 19:07:48 [INFO] 28 bytes written for 'stdout'
2018/09/25 19:07:48 [INFO] RPC client: Communicator ended with: 0
2018/09/25 19:07:48 [INFO] RPC endpoint: Communicator ended with: 0
2018/09/25 19:07:48 packer: 2018/09/25 19:07:48 [INFO] 28 bytes written for 'stdout'
2018/09/25 19:07:48 packer: 2018/09/25 19:07:48 [INFO] 392 bytes written for 'stderr'
2018/09/25 19:07:48 packer: 2018/09/25 19:07:48 [INFO] RPC client: Communicator ended with: 0
amazon-ebs: EC2AMAZ-U34BKCA restarted.
amazon-ebs: #< CLIXML
2018/09/25 19:07:48 [INFO] (telemetry) ending windows-restart
2018/09/25 19:07:48 [INFO] (telemetry) Starting provisioner powershell
amazon-ebs: <Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>
==> amazon-ebs: Machine successfully restarted, moving on
==> amazon-ebs: Provisioning with Powershell...
==> amazon-ebs: Provisioning with powershell script: ./install_java.ps1
2018/09/25 19:07:48 packer: 2018/09/25 19:07:48 Opening ./install_java.ps1 for reading
2018/09/25 19:07:48 packer: 2018/09/25 19:07:48 Uploading env vars to c:/Windows/Temp/packer-ps-env-vars-5baa8027-e75c-89b6-cffe-c02beafcff3f.ps1
2018/09/25 19:07:48 packer: 2018/09/25 19:07:48 [INFO] 76 bytes written for 'uploadData'
2018/09/25 19:07:48 [INFO] 76 bytes written for 'uploadData'
2018/09/25 19:07:48 packer: 2018/09/25 19:07:48 Uploading file to 'c:/Windows/Temp/packer-ps-env-vars-5baa8027-e75c-89b6-cffe-c02beafcff3f.ps1'
2018/09/25 19:07:49 packer: #< CLIXML
2018/09/25 19:07:50 packer: <Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>#< CLIXML
2018/09/25 19:07:50 packer: 2018/09/25 19:07:50 [INFO] 117 bytes written for 'uploadData'
2018/09/25 19:07:50 [INFO] 117 bytes written for 'uploadData'
2018/09/25 19:07:50 packer: <Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>2018/09/25 19:07:50 Uploading file to 'c:/Windows/Temp/script-5baa8027-c43c-6546-8ec2-6beaea269c27.ps1'
2018/09/25 19:07:50 packer: #< CLIXML
2018/09/25 19:07:51 packer: <Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>#< CLIXML
2018/09/25 19:07:51 packer: <Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>2018/09/25 19:07:51 [INFO] starting remote command: powershell -executionpolicy bypass "& { if (Test-Path variable:global:ProgressPreference){$ProgressPreference='SilentlyContinue'};. c:/Windows/Temp/packer-ps-env-vars-5baa8027-e75c-89b6-cffe-c02beafcff3f.ps1; &'c:/Windows/Temp/script-5baa8027-c43c-6546-8ec2-6beaea269c27.ps1';exit $LastExitCode }"
amazon-ebs: Chocolatey v0.10.11
amazon-ebs: Installing the following packages:
amazon-ebs: jre8
amazon-ebs: By installing you accept licenses for the packages.
amazon-ebs: Progress: Downloading jre8 8.0.181... 100%
amazon-ebs:
amazon-ebs: jre8 v8.0.181 [Approved]
amazon-ebs: jre8 package files install completed. Performing other installation steps.
amazon-ebs: Searching if new version exists...
amazon-ebs: Installing JRE 8.0.1810.13 32-bit
amazon-ebs: Downloading jre8
amazon-ebs: from 'https://javadl.oracle.com/webapps/download/AutoDL?BundleId=234472_96a7b8442fe848ef90c96a2fad6ed6d1'
amazon-ebs: Progress: 100% - Completed download of C:\Users\Administrator\AppData\Local\Temp\chocolatey\jre8\8.0.181\jre8Install.exe (61.55 MB).
amazon-ebs: Download of jre8Install.exe (61.55 MB) completed.
amazon-ebs: Hashes match.
amazon-ebs: Installing jre8...
amazon-ebs: jre8 has been installed.
amazon-ebs: Installing JRE 8.0.1810.13 64-bit
amazon-ebs: File appears to be downloaded already. Verifying with package checksum to determine if it needs to be redownloaded.
amazon-ebs: Error - hashes do not match. Actual value was '9E5E6A1C5D26D93454751E65486F728233FDAC3B50FF763F6709FB87DD960CE5'.
amazon-ebs: Downloading jre8 64 bit
amazon-ebs: from 'https://javadl.oracle.com/webapps/download/AutoDL?BundleId=234474_96a7b8442fe848ef90c96a2fad6ed6d1'
amazon-ebs: Progress: 100% - Completed download of C:\Users\Administrator\AppData\Local\Temp\chocolatey\jre8\8.0.181\jre8Install.exe (68.47 MB).
amazon-ebs: Download of jre8Install.exe (68.47 MB) completed.
amazon-ebs: Hashes match.
amazon-ebs: Installing jre8...
amazon-ebs: jre8 has been installed.
amazon-ebs: Searching if the previous version exists...
2018/09/25 19:09:34 packer: 2018/09/25 19:09:34 [INFO] command 'powershell -executionpolicy bypass "& { if (Test-Path variable:global:ProgressPreference){$ProgressPreference='SilentlyContinue'};. c:/Windows/Temp/packer-ps-env-vars-5baa8027-e75c-89b6-cffe-c02beafcff3f.ps1; &'c:/Windows/Temp/script-5baa8027-c43c-6546-8ec2-6beaea269c27.ps1';exit $LastExitCode }"' exited with code: 0
2018/09/25 19:09:34 packer: 2018/09/25 19:09:34 [INFO] RPC endpoint: Communicator ended with: 0
2018/09/25 19:09:34 [INFO] 43847 bytes written for 'stdout'
2018/09/25 19:09:34 [INFO] 0 bytes written for 'stderr'
2018/09/25 19:09:34 [INFO] RPC client: Communicator ended with: 0
2018/09/25 19:09:34 [INFO] RPC endpoint: Communicator ended with: 0
2018/09/25 19:09:34 packer: 2018/09/25 19:09:34 [INFO] 43847 bytes written for 'stdout'
2018/09/25 19:09:34 packer: 2018/09/25 19:09:34 [INFO] 0 bytes written for 'stderr'
2018/09/25 19:09:34 packer: 2018/09/25 19:09:34 [INFO] RPC client: Communicator ended with: 0
amazon-ebs: jre8 may be able to be automatically uninstalled.
amazon-ebs: Environment Vars (like PATH) have changed. Close/reopen your shell to
amazon-ebs: see the changes (or in powershell/cmd.exe just type `refreshenv`).
amazon-ebs: The install of jre8 was successful.
amazon-ebs: Software installed to 'C:\Program Files\Java\jre1.8.0_181\'
amazon-ebs:
amazon-ebs: Chocolatey installed 1/1 packages.
2018/09/25 19:09:34 [INFO] (telemetry) ending powershell
2018/09/25 19:09:34 [INFO] (telemetry) Starting provisioner windows-restart
amazon-ebs: See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
==> amazon-ebs: Restarting Machine
2018/09/25 19:09:34 packer: 2018/09/25 19:09:34 [INFO] starting remote command: shutdown /r /f /t 0 /c "packer restart"
2018/09/25 19:09:34 packer: 2018/09/25 19:09:34 [INFO] command 'shutdown /r /f /t 0 /c "packer restart"' exited with code: 0
2018/09/25 19:09:34 packer: 2018/09/25 19:09:34 [INFO] RPC endpoint: Communicator ended with: 0
2018/09/25 19:09:34 [INFO] 0 bytes written for 'stdout'
2018/09/25 19:09:34 [INFO] 0 bytes written for 'stderr'
2018/09/25 19:09:34 [INFO] RPC client: Communicator ended with: 0
2018/09/25 19:09:34 [INFO] RPC endpoint: Communicator ended with: 0
2018/09/25 19:09:34 packer: 2018/09/25 19:09:34 [INFO] 0 bytes written for 'stdout'
2018/09/25 19:09:34 packer: 2018/09/25 19:09:34 [INFO] 0 bytes written for 'stderr'
2018/09/25 19:09:34 packer: 2018/09/25 19:09:34 [INFO] RPC client: Communicator ended with: 0
==> amazon-ebs: Waiting for machine to restart...
2018/09/25 19:09:35 packer: 2018/09/25 19:09:35 Check if machine is rebooting...
2018/09/25 19:10:05 [INFO] 0 bytes written for 'stderr'
2018/09/25 19:10:05 [INFO] 0 bytes written for 'stdout'
2018/09/25 19:10:05 packer: 2018/09/25 19:10:05 [INFO] 0 bytes written for 'stdout'
2018/09/25 19:10:05 packer: 2018/09/25 19:10:05 [INFO] 0 bytes written for 'stderr'
2018/09/25 19:10:05 packer: 2018/09/25 19:10:05 Waiting for machine to reboot with timeout: 5m0s
2018/09/25 19:10:05 packer: 2018/09/25 19:10:05 Waiting for machine to become available...
2018/09/25 19:10:05 packer: 2018/09/25 19:10:05 Checking that communicator is connected with: 'powershell.exe -EncodedCommand ZQBjAGgAbwAgACIAJAB7AGUAbgB2ADoAQwBPAE0AUABVAFQARQBSAE4AQQBNAEUAfQAgAHIAZQBzAHQAYQByAHQAZQBkAC4AIgA='
2018/09/25 19:10:11 packer: 2018/09/25 19:10:11 [INFO] starting remote command: powershell.exe -EncodedCommand ZQBjAGgAbwAgACIAJAB7AGUAbgB2ADoAQwBPAE0AUABVAFQARQBSAE4AQQBNAEUAfQAgAHIAZQBzAHQAYQByAHQAZQBkAC4AIgA=
2018/09/25 19:10:13 packer: 2018/09/25 19:10:13 [INFO] command 'powershell.exe -EncodedCommand ZQBjAGgAbwAgACIAJAB7AGUAbgB2ADoAQwBPAE0AUABVAFQARQBSAE4AQQBNAEUAfQAgAHIAZQBzAHQAYQByAHQAZQBkAC4AIgA=' exited with code: 0
2018/09/25 19:10:13 packer: 2018/09/25 19:10:13 [INFO] RPC endpoint: Communicator ended with: 0
2018/09/25 19:10:13 [INFO] 392 bytes written for 'stderr'
2018/09/25 19:10:13 [INFO] 28 bytes written for 'stdout'
2018/09/25 19:10:13 [INFO] RPC client: Communicator ended with: 0
2018/09/25 19:10:13 [INFO] RPC endpoint: Communicator ended with: 0
amazon-ebs: EC2AMAZ-U34BKCA restarted.
2018/09/25 19:10:13 packer: 2018/09/25 19:10:13 [INFO] 28 bytes written for 'stdout'
2018/09/25 19:10:13 packer: 2018/09/25 19:10:13 [INFO] 392 bytes written for 'stderr'
2018/09/25 19:10:13 packer: 2018/09/25 19:10:13 [INFO] RPC client: Communicator ended with: 0
amazon-ebs: #< CLIXML
2018/09/25 19:10:13 [INFO] (telemetry) ending windows-restart
2018/09/25 19:10:13 [INFO] (telemetry) Starting provisioner powershell
amazon-ebs: <Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>
==> amazon-ebs: Machine successfully restarted, moving on
==> amazon-ebs: Provisioning with Powershell...
==> amazon-ebs: Provisioning with powershell script: ./install_docker.ps1
2018/09/25 19:10:13 packer: 2018/09/25 19:10:13 Opening ./install_docker.ps1 for reading
2018/09/25 19:10:13 packer: 2018/09/25 19:10:13 Uploading env vars to c:/Windows/Temp/packer-ps-env-vars-5baa8027-33e2-2286-3579-ac2e742b0744.ps1
2018/09/25 19:10:13 packer: 2018/09/25 19:10:13 [INFO] 76 bytes written for 'uploadData'
2018/09/25 19:10:13 [INFO] 76 bytes written for 'uploadData'
2018/09/25 19:10:13 packer: 2018/09/25 19:10:13 Uploading file to 'c:/Windows/Temp/packer-ps-env-vars-5baa8027-33e2-2286-3579-ac2e742b0744.ps1'
2018/09/25 19:10:14 packer: #< CLIXML
2018/09/25 19:10:14 packer: <Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>#< CLIXML
2018/09/25 19:10:14 packer: 2018/09/25 19:10:14 [INFO] 255 bytes written for 'uploadData'
2018/09/25 19:10:14 [INFO] 255 bytes written for 'uploadData'
2018/09/25 19:10:14 packer: <Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>2018/09/25 19:10:14 Uploading file to 'c:/Windows/Temp/script-5baa8027-c8b9-a027-eb0b-b7fe29257802.ps1'
2018/09/25 19:10:15 packer: #< CLIXML
2018/09/25 19:10:15 packer: <Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>#< CLIXML
2018/09/25 19:10:15 packer: <Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>2018/09/25 19:10:15 [INFO] starting remote command: powershell -executionpolicy bypass "& { if (Test-Path variable:global:ProgressPreference){$ProgressPreference='SilentlyContinue'};. c:/Windows/Temp/packer-ps-env-vars-5baa8027-33e2-2286-3579-ac2e742b0744.ps1; &'c:/Windows/Temp/script-5baa8027-c8b9-a027-eb0b-b7fe29257802.ps1';exit $LastExitCode }"
amazon-ebs:
amazon-ebs: Name Version Source Summary
amazon-ebs: ---- ------- ------ -------
amazon-ebs: nuget 2.8.5.208 https://onege... NuGet provider for the OneGet meta-package manager
2018/09/25 19:11:50 packer: 2018/09/25 19:11:50 [INFO] command 'powershell -executionpolicy bypass "& { if (Test-Path variable:global:ProgressPreference){$ProgressPreference='SilentlyContinue'};. c:/Windows/Temp/packer-ps-env-vars-5baa8027-33e2-2286-3579-ac2e742b0744.ps1; &'c:/Windows/Temp/script-5baa8027-c8b9-a027-eb0b-b7fe29257802.ps1';exit $LastExitCode }"' exited with code: 0
2018/09/25 19:11:50 packer: 2018/09/25 19:11:50 [INFO] RPC endpoint: Communicator ended with: 0
2018/09/25 19:11:50 [INFO] 580 bytes written for 'stdout'
2018/09/25 19:11:50 [INFO] 0 bytes written for 'stderr'
2018/09/25 19:11:50 [INFO] RPC client: Communicator ended with: 0
2018/09/25 19:11:50 [INFO] RPC endpoint: Communicator ended with: 0
2018/09/25 19:11:50 packer: 2018/09/25 19:11:50 [INFO] 580 bytes written for 'stdout'
2018/09/25 19:11:50 packer: 2018/09/25 19:11:50 [INFO] 0 bytes written for 'stderr'
2018/09/25 19:11:50 packer: 2018/09/25 19:11:50 [INFO] RPC client: Communicator ended with: 0
amazon-ebs: WARNING: A restart is required to enable the containers feature. Please restart your machine.
2018/09/25 19:11:50 [INFO] (telemetry) ending powershell
2018/09/25 19:11:50 [INFO] (telemetry) Starting provisioner windows-restart
amazon-ebs: Docker 17.06.2-ee-16 DockerDefault Contains Docker EE for use with Windows Server.
==> amazon-ebs: Restarting Machine
2018/09/25 19:11:50 packer: 2018/09/25 19:11:50 [INFO] starting remote command: shutdown /r /f /t 0 /c "packer restart"
2018/09/25 19:11:50 packer: 2018/09/25 19:11:50 [INFO] command 'shutdown /r /f /t 0 /c "packer restart"' exited with code: 0
2018/09/25 19:11:50 packer: 2018/09/25 19:11:50 [INFO] RPC endpoint: Communicator ended with: 0
2018/09/25 19:11:50 [INFO] 0 bytes written for 'stdout'
2018/09/25 19:11:50 [INFO] 0 bytes written for 'stderr'
2018/09/25 19:11:50 [INFO] RPC client: Communicator ended with: 0
2018/09/25 19:11:50 [INFO] RPC endpoint: Communicator ended with: 0
2018/09/25 19:11:50 packer: 2018/09/25 19:11:50 [INFO] 0 bytes written for 'stdout'
2018/09/25 19:11:50 packer: 2018/09/25 19:11:50 [INFO] 0 bytes written for 'stderr'
2018/09/25 19:11:50 packer: 2018/09/25 19:11:50 [INFO] RPC client: Communicator ended with: 0
==> amazon-ebs: Waiting for machine to restart...
2018/09/25 19:11:51 packer: 2018/09/25 19:11:51 Check if machine is rebooting...
2018/09/25 19:11:51 packer: 2018/09/25 19:11:51 [INFO] starting remote command: shutdown /r /f /t 60 /c "packer restart test"
2018/09/25 19:11:51 packer: 2018/09/25 19:11:51 [INFO] command 'shutdown /r /f /t 60 /c "packer restart test"' exited with code: 1115
2018/09/25 19:11:51 packer: 2018/09/25 19:11:51 [INFO] RPC endpoint: Communicator ended with: 1115
2018/09/25 19:11:51 [INFO] 0 bytes written for 'stdout'
2018/09/25 19:11:51 [INFO] 40 bytes written for 'stderr'
2018/09/25 19:11:51 [INFO] RPC client: Communicator ended with: 1115
2018/09/25 19:11:51 [INFO] RPC endpoint: Communicator ended with: 1115
amazon-ebs: A system shutdown is in progress.(1115)
2018/09/25 19:11:51 packer: 2018/09/25 19:11:51 [INFO] 40 bytes written for 'stderr'
2018/09/25 19:11:51 packer: 2018/09/25 19:11:51 [INFO] 0 bytes written for 'stdout'
2018/09/25 19:11:51 packer: 2018/09/25 19:11:51 [INFO] RPC client: Communicator ended with: 1115
2018/09/25 19:11:51 packer: 2018/09/25 19:11:51 Reboot already in progress, waiting...
2018/09/25 19:12:01 packer: 2018/09/25 19:12:01 Waiting for machine to become available...
2018/09/25 19:12:01 packer: 2018/09/25 19:12:01 Waiting for machine to reboot with timeout: 5m0s
2018/09/25 19:12:01 packer: 2018/09/25 19:12:01 Checking that communicator is connected with: 'powershell.exe -EncodedCommand ZQBjAGgAbwAgACIAJAB7AGUAbgB2ADoAQwBPAE0AUABVAFQARQBSAE4AQQBNAEUAfQAgAHIAZQBzAHQAYQByAHQAZQBkAC4AIgA='
2018/09/25 19:12:36 [INFO] 0 bytes written for 'stdout'
2018/09/25 19:12:36 [INFO] 0 bytes written for 'stderr'
2018/09/25 19:12:36 packer: 2018/09/25 19:12:36 [INFO] 0 bytes written for 'stdout'
2018/09/25 19:12:36 packer: 2018/09/25 19:12:36 [INFO] 0 bytes written for 'stderr'
2018/09/25 19:12:36 packer: 2018/09/25 19:12:36 echo didn't succeed; retrying...
2018/09/25 19:12:43 packer: 2018/09/25 19:12:43 [INFO] starting remote command: powershell.exe -EncodedCommand ZQBjAGgAbwAgACIAJAB7AGUAbgB2ADoAQwBPAE0AUABVAFQARQBSAE4AQQBNAEUAfQAgAHIAZQBzAHQAYQByAHQAZQBkAC4AIgA=
2018/09/25 19:12:47 packer: 2018/09/25 19:12:47 [INFO] command 'powershell.exe -EncodedCommand ZQBjAGgAbwAgACIAJAB7AGUAbgB2ADoAQwBPAE0AUABVAFQARQBSAE4AQQBNAEUAfQAgAHIAZQBzAHQAYQByAHQAZQBkAC4AIgA=' exited with code: 0
2018/09/25 19:12:47 packer: 2018/09/25 19:12:47 [INFO] RPC endpoint: Communicator ended with: 0
2018/09/25 19:12:47 [INFO] 28 bytes written for 'stdout'
2018/09/25 19:12:47 [INFO] 392 bytes written for 'stderr'
2018/09/25 19:12:47 [INFO] RPC client: Communicator ended with: 0
2018/09/25 19:12:47 [INFO] RPC endpoint: Communicator ended with: 0
2018/09/25 19:12:47 packer: 2018/09/25 19:12:47 [INFO] 28 bytes written for 'stdout'
2018/09/25 19:12:47 packer: 2018/09/25 19:12:47 [INFO] 392 bytes written for 'stderr'
2018/09/25 19:12:47 packer: 2018/09/25 19:12:47 [INFO] RPC client: Communicator ended with: 0
amazon-ebs: EC2AMAZ-U34BKCA restarted.
amazon-ebs: #< CLIXML
2018/09/25 19:12:47 [INFO] (telemetry) ending windows-restart
2018/09/25 19:12:47 [INFO] (telemetry) Starting provisioner powershell
amazon-ebs: <Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>
==> amazon-ebs: Machine successfully restarted, moving on
==> amazon-ebs: Provisioning with Powershell...
==> amazon-ebs: Provisioning with powershell script: ./post.ps1
2018/09/25 19:12:47 packer: 2018/09/25 19:12:47 Opening ./post.ps1 for reading
2018/09/25 19:12:47 packer: 2018/09/25 19:12:47 Uploading env vars to c:/Windows/Temp/packer-ps-env-vars-5baa8027-3fb3-a3fe-3f56-9f87c205c73f.ps1
2018/09/25 19:12:47 packer: 2018/09/25 19:12:47 [INFO] 134 bytes written for 'uploadData'
2018/09/25 19:12:47 [INFO] 134 bytes written for 'uploadData'
2018/09/25 19:12:47 packer: 2018/09/25 19:12:47 Uploading file to 'c:/Windows/Temp/packer-ps-env-vars-5baa8027-3fb3-a3fe-3f56-9f87c205c73f.ps1'
2018/09/25 19:12:48 packer: #< CLIXML
2018/09/25 19:12:49 packer: <Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>#< CLIXML
2018/09/25 19:12:49 packer: 2018/09/25 19:12:49 [INFO] 528 bytes written for 'uploadData'
2018/09/25 19:12:49 [INFO] 528 bytes written for 'uploadData'
2018/09/25 19:12:49 packer: <Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>2018/09/25 19:12:49 Uploading file to 'c:/Windows/Temp/script-5baa8027-2157-1c1c-c326-3077e9605df4.ps1'
2018/09/25 19:12:49 packer: #< CLIXML
2018/09/25 19:12:50 packer: <Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>#< CLIXML
2018/09/25 19:12:50 packer: <Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>2018/09/25 19:12:50 [INFO] starting remote command: powershell -executionpolicy bypass "& { if (Test-Path variable:global:ProgressPreference){$ProgressPreference='SilentlyContinue'};. c:/Windows/Temp/packer-ps-env-vars-5baa8027-3fb3-a3fe-3f56-9f87c205c73f.ps1; &'c:/Windows/Temp/script-5baa8027-2157-1c1c-c326-3077e9605df4.ps1';exit $LastExitCode }"
amazon-ebs:
amazon-ebs: TaskPath TaskName State
amazon-ebs: -------- -------- -----
amazon-ebs: \ Amazon Ec2 Launch - Instance I... Ready
2018/09/25 19:13:56 packer: 2018/09/25 19:13:56 [INFO] command 'powershell -executionpolicy bypass "& { if (Test-Path variable:global:ProgressPreference){$ProgressPreference='SilentlyContinue'};. c:/Windows/Temp/packer-ps-env-vars-5baa8027-3fb3-a3fe-3f56-9f87c205c73f.ps1; &'c:/Windows/Temp/script-5baa8027-2157-1c1c-c326-3077e9605df4.ps1';exit $LastExitCode }"' exited with code: 0
2018/09/25 19:13:56 packer: 2018/09/25 19:13:56 [INFO] RPC endpoint: Communicator ended with: 0
2018/09/25 19:13:56 [INFO] 281 bytes written for 'stdout'
2018/09/25 19:13:56 [INFO] 0 bytes written for 'stderr'
2018/09/25 19:13:56 [INFO] RPC client: Communicator ended with: 0
2018/09/25 19:13:56 [INFO] RPC endpoint: Communicator ended with: 0
2018/09/25 19:13:56 packer: 2018/09/25 19:13:56 [INFO] 281 bytes written for 'stdout'
2018/09/25 19:13:56 packer: 2018/09/25 19:13:56 [INFO] 0 bytes written for 'stderr'
2018/09/25 19:13:56 packer: 2018/09/25 19:13:56 [INFO] RPC client: Communicator ended with: 0
2018/09/25 19:13:56 [INFO] (telemetry) ending powershell
==> amazon-ebs: Stopping the source instance...
amazon-ebs: Stopping instance, attempt 1
==> amazon-ebs: Waiting for the instance to stop...
2018/09/25 19:13:57 packer: 2018/09/25 19:13:57 No AWS timeout and polling overrides have been set. Packer will default to waiter-specific delays and timeouts. If you would like to customize the length of time between retries and max number of retries you may do so by setting the environment variables AWS_POLL_DELAY_SECONDS and AWS_MAX_ATTEMPTS to your desired values.
==> amazon-ebs: Creating unencrypted AMI xpxKt58 from instance i-05a4579403d1db262
amazon-ebs: AMI: ami-0b99b60462b5ef28a
2018/09/25 19:14:29 packer: 2018/09/25 19:14:29 No AWS timeout and polling overrides have been set. Packer will default to waiter-specific delays and timeouts. If you would like to customize the length of time between retries and max number of retries you may do so by setting the environment variables AWS_POLL_DELAY_SECONDS and AWS_MAX_ATTEMPTS to your desired values.
==> amazon-ebs: Waiting for AMI to become ready...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment