Skip to content

Instantly share code, notes, and snippets.

@sc250024
Last active April 18, 2018 09:23
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/fede4468306417c9cdee5e2702a6cb09 to your computer and use it in GitHub Desktop.
Save sc250024/fede4468306417c9cdee5e2702a6cb09 to your computer and use it in GitHub Desktop.
Issue #1002 in chocolatey/chocolatey-coreteampackages
<powershell>
write-output "Running User Data Script"
write-host "(host) Running User Data Script"
Set-ExecutionPolicy Unrestricted -Scope LocalMachine -Force -ErrorAction Ignore
# Don't set this before Set-ExecutionPolicy as it throws an error
$ErrorActionPreference = "stop"
# Remove HTTP listener
Remove-Item -Path WSMan:\Localhost\listener\listener* -Recurse
$Cert = New-SelfSignedCertificate -CertstoreLocation Cert:\LocalMachine\My -DnsName "packer"
New-Item -Path WSMan:\LocalHost\Listener -Transport HTTPS -Address * -CertificateThumbPrint $Cert.Thumbprint -Force
# WinRM
write-output "Setting up WinRM"
write-host "(host) setting up WinRM"
cmd.exe /c winrm quickconfig -q
cmd.exe /c winrm set "winrm/config" '@{MaxTimeoutms="1800000"}'
cmd.exe /c winrm set "winrm/config/winrs" '@{MaxMemoryPerShellMB="1024"}'
cmd.exe /c winrm set "winrm/config/service" '@{AllowUnencrypted="true"}'
cmd.exe /c winrm set "winrm/config/client" '@{AllowUnencrypted="true"}'
cmd.exe /c winrm set "winrm/config/service/auth" '@{Basic="true"}'
cmd.exe /c winrm set "winrm/config/client/auth" '@{Basic="true"}'
cmd.exe /c winrm set "winrm/config/service/auth" '@{CredSSP="true"}'
cmd.exe /c winrm set "winrm/config/listener?Address=*+Transport=HTTPS" "@{Port=`"5986`";Hostname=`"packer`";CertificateThumbprint=`"$($Cert.Thumbprint)`"}"
cmd.exe /c netsh advfirewall firewall set rule group="remote administration" new enable=yes
cmd.exe /c netsh firewall add portopening TCP 5986 "Port 5986"
cmd.exe /c net stop winrm
cmd.exe /c sc config winrm start= auto
cmd.exe /c net start winrm
</powershell>
11:14 $ PACKER_LOG=1 packer build -force windows-server-2012-base.json
2018/04/18 11:14:10 [INFO] Packer version: 1.2.2
2018/04/18 11:14:10 Packer Target OS/Arch: darwin amd64
2018/04/18 11:14:10 Built with Go Version: go1.10
2018/04/18 11:14:10 Detected home directory from env var: /Users/myusername
2018/04/18 11:14:10 Using internal plugin for vmware-iso
2018/04/18 11:14:10 Using internal plugin for parallels-pvm
2018/04/18 11:14:10 Using internal plugin for qemu
2018/04/18 11:14:10 Using internal plugin for amazon-chroot
2018/04/18 11:14:10 Using internal plugin for amazon-ebsvolume
2018/04/18 11:14:10 Using internal plugin for digitalocean
2018/04/18 11:14:10 Using internal plugin for lxd
2018/04/18 11:14:10 Using internal plugin for vmware-vmx
2018/04/18 11:14:10 Using internal plugin for cloudstack
2018/04/18 11:14:10 Using internal plugin for profitbricks
2018/04/18 11:14:10 Using internal plugin for triton
2018/04/18 11:14:10 Using internal plugin for amazon-ebs
2018/04/18 11:14:10 Using internal plugin for lxc
2018/04/18 11:14:10 Using internal plugin for oracle-classic
2018/04/18 11:14:10 Using internal plugin for googlecompute
2018/04/18 11:14:10 Using internal plugin for hyperv-iso
2018/04/18 11:14:10 Using internal plugin for scaleway
2018/04/18 11:14:10 Using internal plugin for virtualbox-ovf
2018/04/18 11:14:10 Using internal plugin for alicloud-ecs
2018/04/18 11:14:10 Using internal plugin for azure-arm
2018/04/18 11:14:10 Using internal plugin for docker
2018/04/18 11:14:10 Using internal plugin for oneandone
2018/04/18 11:14:10 Using internal plugin for oracle-oci
2018/04/18 11:14:10 Using internal plugin for parallels-iso
2018/04/18 11:14:10 Using internal plugin for amazon-ebssurrogate
2018/04/18 11:14:10 Using internal plugin for amazon-instance
2018/04/18 11:14:10 Using internal plugin for hyperv-vmcx
2018/04/18 11:14:10 Using internal plugin for openstack
2018/04/18 11:14:10 Using internal plugin for virtualbox-iso
2018/04/18 11:14:10 Using internal plugin for file
2018/04/18 11:14:10 Using internal plugin for ncloud
2018/04/18 11:14:10 Using internal plugin for null
2018/04/18 11:14:10 Using internal plugin for ansible-local
2018/04/18 11:14:10 Using internal plugin for powershell
2018/04/18 11:14:10 Using internal plugin for ansible
2018/04/18 11:14:10 Using internal plugin for chef-client
2018/04/18 11:14:10 Using internal plugin for chef-solo
2018/04/18 11:14:10 Using internal plugin for salt-masterless
2018/04/18 11:14:10 Using internal plugin for windows-shell
2018/04/18 11:14:10 Using internal plugin for file
2018/04/18 11:14:10 Using internal plugin for puppet-masterless
2018/04/18 11:14:10 Using internal plugin for shell
2018/04/18 11:14:10 Using internal plugin for converge
2018/04/18 11:14:10 Using internal plugin for puppet-server
2018/04/18 11:14:10 Using internal plugin for shell-local
2018/04/18 11:14:10 Using internal plugin for windows-restart
2018/04/18 11:14:10 Using internal plugin for amazon-import
2018/04/18 11:14:10 Using internal plugin for artifice
2018/04/18 11:14:10 Using internal plugin for docker-push
2018/04/18 11:14:10 Using internal plugin for shell-local
2018/04/18 11:14:10 Using internal plugin for vagrant
2018/04/18 11:14:10 Using internal plugin for checksum
2018/04/18 11:14:10 Using internal plugin for compress
2018/04/18 11:14:10 Using internal plugin for alicloud-import
2018/04/18 11:14:10 Using internal plugin for atlas
2018/04/18 11:14:10 Using internal plugin for docker-import
2018/04/18 11:14:10 Using internal plugin for docker-tag
2018/04/18 11:14:10 Using internal plugin for manifest
2018/04/18 11:14:10 Using internal plugin for vagrant-cloud
2018/04/18 11:14:10 Using internal plugin for docker-save
2018/04/18 11:14:10 Using internal plugin for googlecompute-export
2018/04/18 11:14:10 Using internal plugin for vsphere
2018/04/18 11:14:10 Using internal plugin for vsphere-template
2018/04/18 11:14:10 Detected home directory from env var: /Users/myusername
2018/04/18 11:14:10 Attempting to open config file: /Users/myusername/.packerconfig
2018/04/18 11:14:10 [WARN] Config file doesn't exist: /Users/myusername/.packerconfig
2018/04/18 11:14:10 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[profitbricks:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-profitbricks googlecompute:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-googlecompute hyperv-vmcx:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-vmcx amazon-ebsvolume:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebsvolume amazon-ebs:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs hyperv-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-iso null:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-null parallels-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-iso amazon-instance:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-instance openstack:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-openstack file:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-file vmware-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-iso vmware-vmx:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-vmx cloudstack:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-cloudstack lxc:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxc 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 alicloud-ecs:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-alicloud-ecs ncloud:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-ncloud lxd:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxd triton:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-triton scaleway:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-scaleway oneandone:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oneandone amazon-chroot:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-chroot digitalocean:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-digitalocean oracle-classic:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-classic amazon-ebssurrogate:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebssurrogate qemu:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu azure-arm:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-azure-arm docker:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-docker oracle-oci:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-oci virtualbox-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-iso] PostProcessors:map[amazon-import:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-amazon-import docker-tag:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-tag vsphere:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere vagrant:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant vagrant-cloud:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant-cloud vsphere-template:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere-template docker-push:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-push 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 docker-import:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-import manifest:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-manifest docker-save:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-save artifice:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-artifice alicloud-import:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-alicloud-import atlas:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-atlas googlecompute-export:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-export] Provisioners:map[chef-solo:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-solo puppet-masterless:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-masterless puppet-server:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-server shell-local:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell-local ansible-local:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible-local file:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-file shell:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell chef-client:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-client ansible:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible salt-masterless:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-salt-masterless windows-shell:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-shell converge:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-converge windows-restart:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-restart powershell:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-powershell]}
2018/04/18 11:14:10 Detected home directory from env var: /Users/myusername
2018/04/18 11:14:10 Setting cache directory: /Users/myusername/Documents/git-projects/my-company/my-company-packer/packer_cache
2018/04/18 11:14:10 Detected home directory from env var: /Users/myusername
2018/04/18 11:14:10 Loading builder: amazon-ebs
2018/04/18 11:14:10 Plugin could not be found. Checking same directory as executable.
2018/04/18 11:14:10 Current exe path: /usr/local/bin/packer
2018/04/18 11:14:10 Creating plugin client for path: /usr/local/bin/packer
2018/04/18 11:14:10 Starting plugin: /usr/local/bin/packer []string{"/usr/local/bin/packer", "plugin", "packer-builder-amazon-ebs"}
2018/04/18 11:14:10 Waiting for RPC address for: /usr/local/bin/packer
2018/04/18 11:14:10 packer: 2018/04/18 11:14:10 [INFO] Packer version: 1.2.2
2018/04/18 11:14:10 packer: 2018/04/18 11:14:10 Packer Target OS/Arch: darwin amd64
2018/04/18 11:14:10 packer: 2018/04/18 11:14:10 Built with Go Version: go1.10
2018/04/18 11:14:10 packer: 2018/04/18 11:14:10 Detected home directory from env var: /Users/myusername
2018/04/18 11:14:10 packer: 2018/04/18 11:14:10 Attempting to open config file: /Users/myusername/.packerconfig
2018/04/18 11:14:10 packer: 2018/04/18 11:14:10 [WARN] Config file doesn't exist: /Users/myusername/.packerconfig
2018/04/18 11:14:10 packer: 2018/04/18 11:14:10 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2018/04/18 11:14:10 packer: 2018/04/18 11:14:10 Detected home directory from env var: /Users/myusername
2018/04/18 11:14:10 packer: 2018/04/18 11:14:10 Setting cache directory: /Users/myusername/Documents/git-projects/my-company/my-company-packer/packer_cache
2018/04/18 11:14:10 packer: 2018/04/18 11:14:10 Detected home directory from env var: /Users/myusername
2018/04/18 11:14:10 packer: 2018/04/18 11:14:10 args: []string{"packer-builder-amazon-ebs"}
2018/04/18 11:14:10 packer: 2018/04/18 11:14:10 Plugin minimum port: 10000
2018/04/18 11:14:10 packer: 2018/04/18 11:14:10 Plugin maximum port: 25000
2018/04/18 11:14:10 packer: 2018/04/18 11:14:10 Plugin address: unix /var/folders/kj/0vbbpst91p335xd5d1jq7skh0000gn/T/packer-plugin221852365
2018/04/18 11:14:10 packer: 2018/04/18 11:14:10 Waiting for connection...
2018/04/18 11:14:10 packer: 2018/04/18 11:14:10 Serving a plugin connection...
2018/04/18 11:14:10 Loading provisioner: powershell
2018/04/18 11:14:10 Plugin could not be found. Checking same directory as executable.
2018/04/18 11:14:10 Current exe path: /usr/local/bin/packer
2018/04/18 11:14:10 Creating plugin client for path: /usr/local/bin/packer
2018/04/18 11:14:10 Starting plugin: /usr/local/bin/packer []string{"/usr/local/bin/packer", "plugin", "packer-provisioner-powershell"}
2018/04/18 11:14:10 Waiting for RPC address for: /usr/local/bin/packer
2018/04/18 11:14:10 packer: 2018/04/18 11:14:10 [INFO] Packer version: 1.2.2
2018/04/18 11:14:10 packer: 2018/04/18 11:14:10 Packer Target OS/Arch: darwin amd64
2018/04/18 11:14:10 packer: 2018/04/18 11:14:10 Built with Go Version: go1.10
2018/04/18 11:14:10 packer: 2018/04/18 11:14:10 Detected home directory from env var: /Users/myusername
2018/04/18 11:14:10 packer: 2018/04/18 11:14:10 Attempting to open config file: /Users/myusername/.packerconfig
2018/04/18 11:14:10 packer: 2018/04/18 11:14:10 [WARN] Config file doesn't exist: /Users/myusername/.packerconfig
2018/04/18 11:14:10 packer: 2018/04/18 11:14:10 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2018/04/18 11:14:10 packer: 2018/04/18 11:14:10 Detected home directory from env var: /Users/myusername
2018/04/18 11:14:10 packer: 2018/04/18 11:14:10 Setting cache directory: /Users/myusername/Documents/git-projects/my-company/my-company-packer/packer_cache
2018/04/18 11:14:10 packer: 2018/04/18 11:14:10 Detected home directory from env var: /Users/myusername
2018/04/18 11:14:10 packer: 2018/04/18 11:14:10 args: []string{"packer-provisioner-powershell"}
2018/04/18 11:14:10 packer: 2018/04/18 11:14:10 Plugin minimum port: 10000
2018/04/18 11:14:10 packer: 2018/04/18 11:14:10 Plugin maximum port: 25000
2018/04/18 11:14:10 packer: 2018/04/18 11:14:10 Plugin address: unix /var/folders/kj/0vbbpst91p335xd5d1jq7skh0000gn/T/packer-plugin893883446
2018/04/18 11:14:10 packer: 2018/04/18 11:14:10 Waiting for connection...
2018/04/18 11:14:10 packer: 2018/04/18 11:14:10 Serving a plugin connection...
2018/04/18 11:14:10 ui: amazon-ebs output will be in this color.
2018/04/18 11:14:10 ui:
2018/04/18 11:14:10 Build debug mode: false
2018/04/18 11:14:10 Force build: true
2018/04/18 11:14:10 On error:
2018/04/18 11:14:10 Preparing build: amazon-ebs
amazon-ebs output will be in this color.
2018/04/18 11:14:10 packer: 2018/04/18 11:14:10 Config: {PackerConfig:{PackerBuildName:amazon-ebs PackerBuilderType:amazon-ebs PackerDebug:false PackerForce:true PackerOnError: PackerUserVars:map[region:us-west-2 vpc_id:vpc-XXXXXXXXX dotnet_version:4.6.2 external_ip:<some-external-ip>/32]} AccessConfig:{AccessKey: CustomEndpointEc2: MFACode: ProfileName: RawRegion:us-west-2 SecretKey: SkipValidation:false SkipMetadataApiCheck:false Token: session:<nil>} AMIConfig:{AMIName:my-company-win-2012-r2-base-1524042850 AMIDescription: AMIVirtType: AMIUsers:[] AMIGroups:[] AMIProductCodes:[] AMIRegions:[] AMISkipRegionValidation:false AMITags:map[Name:ParkBee Windows 2012 Base] AMIENASupport:false AMISriovNetSupport:false AMIForceDeregister:true AMIForceDeleteSnapshot:false AMIEncryptBootVolume:false 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: VolumeSize:0 KmsKeyId:}]}} RunConfig:{AssociatePublicIpAddress:false AvailabilityZone: EbsOptimized:false IamInstanceProfile: InstanceType:t2.medium RunTags:map[Name:Packer Builder (Windows 2012)] SourceAmi: SourceAmiFilter:{Filters:map[0xc4201b7490:0xc4201b74b0] Owners:[0xc4201b7530] MostRecent:true} SpotPrice: SpotPriceAutoProduct: DisableStopInstance:false SecurityGroupId: SecurityGroupIds:[] TemporarySGSourceCidr:<some-external-ip>/32 SubnetId: TemporaryKeyPairName:packer_5ad70c62-010c-64c2-1a89-f4dc09276d37 UserData: UserDataFile:/Users/myusername/Documents/git-projects/my-company/my-company-packer/bootstrap/aws/userdata/bootstrap-aws.txt WindowsPasswordTimeout:30m0s VpcId:vpc-XXXXXXXXX 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:0x1842050] UserVariables:map[region:us-west-2 vpc_id:vpc-XXXXXXXXX dotnet_version:4.6.2 external_ip:<some-external-ip>/32] EnableEnv:false BuildName:amazon-ebs BuildType:amazon-ebs TemplatePath:/Users/myusername/Documents/git-projects/my-company/my-company-packer/windows-server-2012-base.json}}
2018/04/18 11:14:10 Waiting on builds to complete...
2018/04/18 11:14:10 Starting build run: amazon-ebs
2018/04/18 11:14:10 Running builder: amazon-ebs
2018/04/18 11:14:10 [INFO] (telemetry) Starting builder amazon-ebs
2018/04/18 11:14:10 packer: 2018/04/18 11:14:10 Found region us-west-2
2018/04/18 11:14:10 packer: 2018/04/18 11:14:10 [INFO] AWS Auth provider used: "SharedConfigCredentials: /Users/myusername/.aws/credentials"
2018/04/18 11:14:10 ui: ==> amazon-ebs: Force Deregister flag found, skipping prevalidating AMI Name
2018/04/18 11:14:10 packer: 2018/04/18 11:14:10 Using AMI Filters {
2018/04/18 11:14:10 packer: Filters: [{
2018/04/18 11:14:10 packer: Name: "name",
2018/04/18 11:14:10 packer: Values: ["Windows_Server-2012-R2_RTM-English-64Bit-Base-*"]
2018/04/18 11:14:10 packer: }],
2018/04/18 11:14:10 packer: Owners: ["801119661308"]
2018/04/18 11:14:10 packer: }
==> amazon-ebs: Force Deregister flag found, skipping prevalidating AMI Name
2018/04/18 11:14:17 ui: amazon-ebs: Found Image ID: ami-10375468
amazon-ebs: Found Image ID: ami-10375468
2018/04/18 11:14:17 ui: ==> amazon-ebs: Creating temporary keypair: packer_5ad70c62-010c-64c2-1a89-f4dc09276d37
==> amazon-ebs: Creating temporary keypair: packer_5ad70c62-010c-64c2-1a89-f4dc09276d37
2018/04/18 11:14:17 ui: ==> amazon-ebs: Creating temporary security group for this instance: packer_5ad70c69-f86f-0198-8a7e-2f5bfc797cf5
==> amazon-ebs: Creating temporary security group for this instance: packer_5ad70c69-f86f-0198-8a7e-2f5bfc797cf5
2018/04/18 11:14:17 ui: ==> amazon-ebs: Authorizing access to port 5986 from <some-external-ip>/32 in the temporary security group...
==> amazon-ebs: Authorizing access to port 5986 from <some-external-ip>/32 in the temporary security group...
2018/04/18 11:14:18 packer: 2018/04/18 11:14:18 [DEBUG] Waiting for temporary security group: sg-05f47150549642540
2018/04/18 11:14:18 packer: 2018/04/18 11:14:18 [DEBUG] Found security group sg-05f47150549642540
2018/04/18 11:14:18 packer: 2018/04/18 11:14:18 [DEBUG] base64 encoding user data...
2018/04/18 11:14:18 ui: ==> amazon-ebs: Launching a source AWS instance...
==> amazon-ebs: Launching a source AWS instance...
2018/04/18 11:14:18 ui: ==> amazon-ebs: Adding tags to source instance
==> amazon-ebs: Adding tags to source instance
2018/04/18 11:14:18 ui: amazon-ebs: Adding tag: "Name": "Packer Builder (Windows 2012)"
amazon-ebs: Adding tag: "Name": "Packer Builder (Windows 2012)"
2018/04/18 11:14:19 ui: amazon-ebs: Instance ID: i-0c0ae16c6017a9546
amazon-ebs: Instance ID: i-0c0ae16c6017a9546
2018/04/18 11:14:19 ui: ==> amazon-ebs: Waiting for instance (i-0c0ae16c6017a9546) to become ready...
==> amazon-ebs: Waiting for instance (i-0c0ae16c6017a9546) to become ready...
2018/04/18 11:14:52 ui: ==> amazon-ebs: Waiting for auto-generated password for instance...
==> amazon-ebs: Waiting for auto-generated password for instance...
amazon-ebs: It is normal for this process to take up to 15 minutes,
2018/04/18 11:14:52 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: but it usually takes around 5. Please wait.
2018/04/18 11:14:57 packer: 2018/04/18 11:14:57 [DEBUG] Password is blank, will retry...
2018/04/18 11:15:02 packer: 2018/04/18 11:15:02 [DEBUG] Password is blank, will retry...
2018/04/18 11:15:08 packer: 2018/04/18 11:15:08 [DEBUG] Password is blank, will retry...
2018/04/18 11:15:13 packer: 2018/04/18 11:15:13 [DEBUG] Password is blank, will retry...
2018/04/18 11:15:18 packer: 2018/04/18 11:15:18 [DEBUG] Password is blank, will retry...
2018/04/18 11:15:23 packer: 2018/04/18 11:15:23 [DEBUG] Password is blank, will retry...
2018/04/18 11:15:29 packer: 2018/04/18 11:15:29 [DEBUG] Password is blank, will retry...
2018/04/18 11:15:34 packer: 2018/04/18 11:15:34 [DEBUG] Password is blank, will retry...
2018/04/18 11:15:39 packer: 2018/04/18 11:15:39 [DEBUG] Password is blank, will retry...
2018/04/18 11:15:45 packer: 2018/04/18 11:15:45 [DEBUG] Password is blank, will retry...
2018/04/18 11:15:50 packer: 2018/04/18 11:15:50 [DEBUG] Password is blank, will retry...
2018/04/18 11:15:55 packer: 2018/04/18 11:15:55 [DEBUG] Password is blank, will retry...
2018/04/18 11:16:00 packer: 2018/04/18 11:16:00 [DEBUG] Password is blank, will retry...
2018/04/18 11:16:06 packer: 2018/04/18 11:16:06 [DEBUG] Password is blank, will retry...
2018/04/18 11:16:11 packer: 2018/04/18 11:16:11 [DEBUG] Password is blank, will retry...
amazon-ebs:
2018/04/18 11:16:16 ui: amazon-ebs:
amazon-ebs: Password retrieved!
amazon-ebs: Password retrieved!
2018/04/18 11:16:16 packer: 2018/04/18 11:16:16 Waiting for WinRM, up to timeout: 30m0s
2018/04/18 11:16:16 ui: ==> amazon-ebs: Waiting for WinRM to become available...
==> amazon-ebs: Waiting for WinRM to become available...
2018/04/18 11:16:21 packer: 2018/04/18 11:16:21 [INFO] Attempting WinRM connection...
2018/04/18 11:16:21 packer: 2018/04/18 11:16:21 [DEBUG] connecting to remote shell using WinRM
2018/04/18 11:16:51 packer: 2018/04/18 11:16:51 [ERROR] connection error: unknown error Post https://54.202.107.36:5986/wsman: dial tcp 54.202.107.36:5986: i/o timeout
2018/04/18 11:16:51 packer: 2018/04/18 11:16:51 [ERROR] WinRM connection err: unknown error Post https://54.202.107.36:5986/wsman: dial tcp 54.202.107.36:5986: i/o timeout
2018/04/18 11:16:56 packer: 2018/04/18 11:16:56 [INFO] Attempting WinRM connection...
2018/04/18 11:16:56 packer: 2018/04/18 11:16:56 [DEBUG] connecting to remote shell using WinRM
2018/04/18 11:17:02 packer: 2018/04/18 11:17:02 Checking that WinRM is connected with: 'powershell.exe -EncodedCommand aQBmACAAKABUAGUAcwB0AC0AUABhAHQAaAAgAHYAYQByAGkAYQBiAGwAZQA6AGcAbABvAGIAYQBsADoAUAByAG8AZwByAGUAcwBzAFAAcgBlAGYAZQByAGUAbgBjAGUAKQB7ACQAUAByAG8AZwByAGUAcwBzAFAAcgBlAGYAZQByAGUAbgBjAGUAPQAnAFMAaQBsAGUAbgB0AGwAeQBDAG8AbgB0AGkAbgB1AGUAJwB9ADsAIABlAGMAaABvACAAIgBXAGkAbgBSAE0AIABjAG8AbgBuAGUAYwB0AGUAZAAuACIA'
2018/04/18 11:17:02 packer: 2018/04/18 11:17:02 [INFO] starting remote command: powershell.exe -EncodedCommand aQBmACAAKABUAGUAcwB0AC0AUABhAHQAaAAgAHYAYQByAGkAYQBiAGwAZQA6AGcAbABvAGIAYQBsADoAUAByAG8AZwByAGUAcwBzAFAAcgBlAGYAZQByAGUAbgBjAGUAKQB7ACQAUAByAG8AZwByAGUAcwBzAFAAcgBlAGYAZQByAGUAbgBjAGUAPQAnAFMAaQBsAGUAbgB0AGwAeQBDAG8AbgB0AGkAbgB1AGUAJwB9ADsAIABlAGMAaABvACAAIgBXAGkAbgBSAE0AIABjAG8AbgBuAGUAYwB0AGUAZAAuACIA
2018/04/18 11:17:03 packer: 2018/04/18 11:17:03 [INFO] command 'powershell.exe -EncodedCommand aQBmACAAKABUAGUAcwB0AC0AUABhAHQAaAAgAHYAYQByAGkAYQBiAGwAZQA6AGcAbABvAGIAYQBsADoAUAByAG8AZwByAGUAcwBzAFAAcgBlAGYAZQByAGUAbgBjAGUAKQB7ACQAUAByAG8AZwByAGUAcwBzAFAAcgBlAGYAZQByAGUAbgBjAGUAPQAnAFMAaQBsAGUAbgB0AGwAeQBDAG8AbgB0AGkAbgB1AGUAJwB9ADsAIABlAGMAaABvACAAIgBXAGkAbgBSAE0AIABjAG8AbgBuAGUAYwB0AGUAZAAuACIA' exited with code: 0
2018/04/18 11:17:03 ui: amazon-ebs: WinRM connected.
amazon-ebs: WinRM connected.
2018/04/18 11:17:03 packer: 2018/04/18 11:17:03 Connected to machine
2018/04/18 11:17:03 ui: ==> amazon-ebs: Connected to WinRM!
==> amazon-ebs: Connected to WinRM!
2018/04/18 11:17:03 packer: 2018/04/18 11:17:03 Running the provision hook
2018/04/18 11:17:03 [INFO] (telemetry) Starting provisioner powershell
2018/04/18 11:17:03 ui: ==> amazon-ebs: Provisioning with Powershell...
==> amazon-ebs: Provisioning with Powershell...
2018/04/18 11:17:03 packer: 2018/04/18 11:17:03 Found command: Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
2018/04/18 11:17:03 packer: 2018/04/18 11:17:03 Found command: choco install -y dotnetcore-runtime
2018/04/18 11:17:03 ui: ==> amazon-ebs: Provisioning with powershell script: /var/folders/kj/0vbbpst91p335xd5d1jq7skh0000gn/T/packer-powershell-provisioner555906589
==> amazon-ebs: Provisioning with powershell script: /var/folders/kj/0vbbpst91p335xd5d1jq7skh0000gn/T/packer-powershell-provisioner555906589
2018/04/18 11:17:03 packer: 2018/04/18 11:17:03 Opening /var/folders/kj/0vbbpst91p335xd5d1jq7skh0000gn/T/packer-powershell-provisioner555906589 for reading
2018/04/18 11:17:03 packer: 2018/04/18 11:17:03 Uploading env vars to ${env:SYSTEMROOT}/Temp/packer-env-vars-5ad70d0f-0578-c279-6ef8-2dcc91c743ad.ps1
2018/04/18 11:17:03 packer: 2018/04/18 11:17:03 [INFO] 76 bytes written for 'uploadData'
2018/04/18 11:17:03 [INFO] 76 bytes written for 'uploadData'
2018/04/18 11:17:04 packer: 2018/04/18 11:17:04 Uploading file to '${env:SYSTEMROOT}/Temp/packer-env-vars-5ad70d0f-0578-c279-6ef8-2dcc91c743ad.ps1'
2018/04/18 11:17:08 packer: 2018/04/18 11:17:08 [INFO] 172 bytes written for 'uploadData'
2018/04/18 11:17:08 [INFO] 172 bytes written for 'uploadData'
2018/04/18 11:17:09 packer: 2018/04/18 11:17:09 Uploading file to 'c:/Windows/Temp/script-5ad70c62-4776-8bde-f8db-7e5abdaf15cb.ps1'
2018/04/18 11:17:13 packer: 2018/04/18 11:17:13 [INFO] starting remote command: powershell -executionpolicy bypass "& { if (Test-Path variable:global:ProgressPreference){$ProgressPreference='SilentlyContinue'};. ${env:SYSTEMROOT}/Temp/packer-env-vars-5ad70d0f-0578-c279-6ef8-2dcc91c743ad.ps1; &'c:/Windows/Temp/script-5ad70c62-4776-8bde-f8db-7e5abdaf15cb.ps1';exit $LastExitCode }"
2018/04/18 11:17:14 ui: amazon-ebs: Getting latest version of the Chocolatey package for download.
amazon-ebs: Getting latest version of the Chocolatey package for download.
2018/04/18 11:17:14 ui: amazon-ebs: Getting Chocolatey from https://chocolatey.org/api/v2/package/chocolatey/0.10.10.
amazon-ebs: Getting Chocolatey from https://chocolatey.org/api/v2/package/chocolatey/0.10.10.
2018/04/18 11:17:16 ui: amazon-ebs: Downloading 7-Zip commandline tool prior to extraction.
amazon-ebs: Downloading 7-Zip commandline tool prior to extraction.
2018/04/18 11:17:16 ui: amazon-ebs: Extracting C:\Users\ADMINI~1\AppData\Local\Temp\chocolatey\chocInstall\chocolatey.zip to C:\Users\ADMINI~1\AppData\Local\Temp\chocolatey\chocInstall...
amazon-ebs: Extracting C:\Users\ADMINI~1\AppData\Local\Temp\chocolatey\chocInstall\chocolatey.zip to C:\Users\ADMINI~1\AppData\Local\Temp\chocolatey\chocInstall...
2018/04/18 11:17:17 ui: amazon-ebs: Installing chocolatey on this machine
amazon-ebs: Installing chocolatey on this machine
2018/04/18 11:17:17 ui: amazon-ebs: Creating ChocolateyInstall as an environment variable (targeting 'Machine')
amazon-ebs: Creating ChocolateyInstall as an environment variable (targeting 'Machine')
2018/04/18 11:17:17 ui: amazon-ebs: Setting ChocolateyInstall to 'C:\ProgramData\chocolatey'
amazon-ebs: Setting ChocolateyInstall to 'C:\ProgramData\chocolatey'
2018/04/18 11:17:17 ui: amazon-ebs: WARNING: It's very likely you will need to close and reopen your shell
amazon-ebs: WARNING: It's very likely you will need to close and reopen your shell
2018/04/18 11:17:17 ui: amazon-ebs: before you can use choco.
amazon-ebs: before you can use choco.
2018/04/18 11:17:20 ui: amazon-ebs: Restricting write permissions to Administrators
amazon-ebs: Restricting write permissions to Administrators
2018/04/18 11:17:20 ui: amazon-ebs: We are setting up the Chocolatey package repository.
amazon-ebs: We are setting up the Chocolatey package repository.
2018/04/18 11:17:20 ui: amazon-ebs: The packages themselves go to 'C:\ProgramData\chocolatey\lib'
amazon-ebs: The packages themselves go to 'C:\ProgramData\chocolatey\lib'
2018/04/18 11:17:20 ui: amazon-ebs: (i.e. C:\ProgramData\chocolatey\lib\yourPackageName).
amazon-ebs: (i.e. C:\ProgramData\chocolatey\lib\yourPackageName).
2018/04/18 11:17:20 ui: amazon-ebs: A shim file for the command line goes to 'C:\ProgramData\chocolatey\bin'
amazon-ebs: A shim file for the command line goes to 'C:\ProgramData\chocolatey\bin'
2018/04/18 11:17:20 ui: amazon-ebs: and points to an executable in 'C:\ProgramData\chocolatey\lib\yourPackageName'.
amazon-ebs: and points to an executable in 'C:\ProgramData\chocolatey\lib\yourPackageName'.
amazon-ebs:
2018/04/18 11:17:20 ui: amazon-ebs:
2018/04/18 11:17:20 ui: amazon-ebs: Creating Chocolatey folders if they do not already exist.
amazon-ebs: Creating Chocolatey folders if they do not already exist.
2018/04/18 11:17:20 ui: amazon-ebs:
amazon-ebs:
2018/04/18 11:17:20 ui: amazon-ebs: WARNING: You can safely ignore errors related to missing log files when
amazon-ebs: WARNING: You can safely ignore errors related to missing log files when
2018/04/18 11:17:20 ui: amazon-ebs: upgrading from a version of Chocolatey less than 0.9.9.
amazon-ebs: upgrading from a version of Chocolatey less than 0.9.9.
2018/04/18 11:17:20 ui: amazon-ebs: 'Batch file could not be found' is also safe to ignore.
amazon-ebs: 'Batch file could not be found' is also safe to ignore.
2018/04/18 11:17:20 ui: amazon-ebs: 'The system cannot find the file specified' - also safe.
amazon-ebs: 'The system cannot find the file specified' - also safe.
2018/04/18 11:17:20 ui: amazon-ebs: chocolatey.nupkg file not installed in lib.
amazon-ebs: chocolatey.nupkg file not installed in lib.
2018/04/18 11:17:20 ui: amazon-ebs: Attempting to locate it from bootstrapper.
amazon-ebs: Attempting to locate it from bootstrapper.
2018/04/18 11:17:20 ui: amazon-ebs: PATH environment variable does not have C:\ProgramData\chocolatey\bin in it. Adding...
amazon-ebs: PATH environment variable does not have C:\ProgramData\chocolatey\bin in it. Adding...
2018/04/18 11:17:20 ui: amazon-ebs: WARNING: Not setting tab completion: Profile file does not exist at
amazon-ebs: WARNING: Not setting tab completion: Profile file does not exist at
2018/04/18 11:17:20 ui: amazon-ebs: 'C:\Users\Administrator\Documents\WindowsPowerShell\Microsoft.PowerShell_profil
amazon-ebs: 'C:\Users\Administrator\Documents\WindowsPowerShell\Microsoft.PowerShell_profil
2018/04/18 11:17:20 ui: amazon-ebs: e.ps1'.
amazon-ebs: e.ps1'.
2018/04/18 11:17:22 ui: amazon-ebs: Chocolatey (choco.exe) is now ready.
amazon-ebs: Chocolatey (choco.exe) is now ready.
2018/04/18 11:17:22 ui: amazon-ebs: You can call choco from anywhere, command line or powershell by typing choco.
amazon-ebs: You can call choco from anywhere, command line or powershell by typing choco.
2018/04/18 11:17:22 ui: amazon-ebs: Run choco /? for a list of functions.
amazon-ebs: Run choco /? for a list of functions.
2018/04/18 11:17:22 ui: amazon-ebs: You may need to shut down and restart powershell and/or consoles
amazon-ebs: You may need to shut down and restart powershell and/or consoles
2018/04/18 11:17:22 ui: amazon-ebs: first prior to using choco.
amazon-ebs: first prior to using choco.
2018/04/18 11:17:22 ui: amazon-ebs: Ensuring chocolatey commands are on the path
amazon-ebs: Ensuring chocolatey commands are on the path
2018/04/18 11:17:22 ui: amazon-ebs: Ensuring chocolatey.nupkg is in the lib folder
amazon-ebs: Ensuring chocolatey.nupkg is in the lib folder
2018/04/18 11:17:22 ui: amazon-ebs: Chocolatey v0.10.10
amazon-ebs: Chocolatey v0.10.10
2018/04/18 11:17:22 ui: amazon-ebs: Installing the following packages:
amazon-ebs: Installing the following packages:
2018/04/18 11:17:22 ui: amazon-ebs: dotnetcore-runtime
amazon-ebs: dotnetcore-runtime
2018/04/18 11:17:22 ui: amazon-ebs: By installing you accept licenses for the packages.
amazon-ebs: By installing you accept licenses for the packages.
2018/04/18 11:17:26 ui: amazon-ebs: Progress: Downloading dotnetcore-runtime.install 2.0.6... 100%
amazon-ebs: Progress: Downloading dotnetcore-runtime.install 2.0.6... 100%
2018/04/18 11:17:27 ui: amazon-ebs: Progress: Downloading chocolatey-core.extension 1.3.3... 100%
amazon-ebs: Progress: Downloading chocolatey-core.extension 1.3.3... 100%
2018/04/18 11:17:28 ui: amazon-ebs: Progress: Downloading vcredist2015 14.0.24215.20170201... 100%
amazon-ebs: Progress: Downloading vcredist2015 14.0.24215.20170201... 100%
2018/04/18 11:17:28 ui: amazon-ebs: Progress: Downloading vcredist140 14.12.25810... 100%
amazon-ebs: Progress: Downloading vcredist140 14.12.25810... 100%
2018/04/18 11:17:29 ui: amazon-ebs: Progress: Downloading KB3033929 1.0.3... 100%
amazon-ebs: Progress: Downloading KB3033929 1.0.3... 100%
2018/04/18 11:17:30 ui: amazon-ebs: Progress: Downloading chocolatey-windowsupdate.extension 1.0.2... 100%
amazon-ebs: Progress: Downloading chocolatey-windowsupdate.extension 1.0.2... 100%
2018/04/18 11:17:31 ui: amazon-ebs: Progress: Downloading KB3035131 1.0.1... 100%
amazon-ebs: Progress: Downloading KB3035131 1.0.1... 100%
2018/04/18 11:17:31 ui: amazon-ebs: Progress: Downloading KB2919355 1.0.20160915... 100%
amazon-ebs: Progress: Downloading KB2919355 1.0.20160915... 100%
2018/04/18 11:17:31 ui: amazon-ebs: Progress: Downloading KB2919442 1.0.20160915... 100%
amazon-ebs: Progress: Downloading KB2919442 1.0.20160915... 100%
2018/04/18 11:17:32 ui: amazon-ebs: Progress: Downloading KB2999226 1.0.20170509... 100%
amazon-ebs: Progress: Downloading KB2999226 1.0.20170509... 100%
2018/04/18 11:17:33 ui: amazon-ebs: Progress: Downloading KB2533623 1.0.2... 100%
amazon-ebs: Progress: Downloading KB2533623 1.0.2... 100%
2018/04/18 11:17:33 ui: amazon-ebs: Progress: Downloading dotnetcore-runtime 2.0.6... 100%
amazon-ebs: Progress: Downloading dotnetcore-runtime 2.0.6... 100%
2018/04/18 11:17:33 ui: amazon-ebs:
amazon-ebs:
2018/04/18 11:17:33 ui: amazon-ebs: chocolatey-core.extension v1.3.3 [Approved]
amazon-ebs: chocolatey-core.extension v1.3.3 [Approved]
2018/04/18 11:17:33 ui: amazon-ebs: chocolatey-core.extension package files install completed. Performing other installation steps.
amazon-ebs: chocolatey-core.extension package files install completed. Performing other installation steps.
2018/04/18 11:17:35 ui: amazon-ebs: Installed/updated chocolatey-core extensions.
amazon-ebs: Installed/updated chocolatey-core extensions.
2018/04/18 11:17:35 ui: amazon-ebs: The install of chocolatey-core.extension was successful.
amazon-ebs: The install of chocolatey-core.extension was successful.
2018/04/18 11:17:35 ui: amazon-ebs: Software installed to 'C:\ProgramData\chocolatey\extensions\chocolatey-core'
amazon-ebs: Software installed to 'C:\ProgramData\chocolatey\extensions\chocolatey-core'
amazon-ebs:
2018/04/18 11:17:35 ui: amazon-ebs:
2018/04/18 11:17:35 ui: amazon-ebs: chocolatey-windowsupdate.extension v1.0.2 [Approved]
amazon-ebs: chocolatey-windowsupdate.extension v1.0.2 [Approved]
2018/04/18 11:17:35 ui: amazon-ebs: chocolatey-windowsupdate.extension package files install completed. Performing other installation steps.
amazon-ebs: chocolatey-windowsupdate.extension package files install completed. Performing other installation steps.
2018/04/18 11:17:36 ui: amazon-ebs: Installed/updated chocolatey-windowsupdate extensions.
amazon-ebs: Installed/updated chocolatey-windowsupdate extensions.
2018/04/18 11:17:36 ui: amazon-ebs: The install of chocolatey-windowsupdate.extension was successful.
amazon-ebs: The install of chocolatey-windowsupdate.extension was successful.
2018/04/18 11:17:36 ui: amazon-ebs: Software installed to 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate'
amazon-ebs: Software installed to 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate'
2018/04/18 11:17:36 ui: amazon-ebs:
amazon-ebs:
2018/04/18 11:17:36 ui: amazon-ebs: KB3035131 v1.0.1 [Approved]
amazon-ebs: KB3035131 v1.0.1 [Approved]
2018/04/18 11:17:36 ui: amazon-ebs: kb3035131 package files install completed. Performing other installation steps.
amazon-ebs: kb3035131 package files install completed. Performing other installation steps.
2018/04/18 11:17:41 ui: amazon-ebs: Downloading KB3035131 64 bit
amazon-ebs: Downloading KB3035131 64 bit
2018/04/18 11:17:41 ui: amazon-ebs: from 'https://download.microsoft.com/download/B/2/4/B24FB08A-DEA8-4B4C-8EE4-B9F0FB180200/Windows8.1-KB3035131-x64.msu'
amazon-ebs: from 'https://download.microsoft.com/download/B/2/4/B24FB08A-DEA8-4B4C-8EE4-B9F0FB180200/Windows8.1-KB3035131-x64.msu'
2018/04/18 11:17:41 ui: amazon-ebs: Progress: 100% - Completed download of C:\Users\Administrator\AppData\Local\Temp\chocolatey\KB3035131\1.0.1\Windows8.1-KB3035131-x64.msu (4.52 MB).
amazon-ebs: Progress: 100% - Completed download of C:\Users\Administrator\AppData\Local\Temp\chocolatey\KB3035131\1.0.1\Windows8.1-KB3035131-x64.msu (4.52 MB).
2018/04/18 11:17:41 ui: amazon-ebs: Download of Windows8.1-KB3035131-x64.msu (4.52 MB) completed.
amazon-ebs: Download of Windows8.1-KB3035131-x64.msu (4.52 MB) completed.
2018/04/18 11:17:44 ui: amazon-ebs: Hashes match.
amazon-ebs: Hashes match.
2018/04/18 11:17:44 ui: amazon-ebs: Installing KB3035131...
amazon-ebs: Installing KB3035131...
2018/04/18 11:17:46 ui: amazon-ebs: WARNING: User (you) cancelled the installation.
amazon-ebs: WARNING: User (you) cancelled the installation.
2018/04/18 11:17:46 ui: amazon-ebs: WARNING: Update KB3035131 installation failed (exit code 5).
amazon-ebs: WARNING: Update KB3035131 installation failed (exit code 5).
2018/04/18 11:17:46 ui: amazon-ebs: WARNING: More details may be found in the installation log (C:\Users\Administrator\AppData\Local\Temp\chocolatey\KB3035131.Install.evt) or the system CBS log (C:\Windows\Logs\CBS\CBS.log).
amazon-ebs: WARNING: More details may be found in the installation log (C:\Users\Administrator\AppData\Local\Temp\chocolatey\KB3035131.Install.evt) or the system CBS log (C:\Windows\Logs\CBS\CBS.log).
2018/04/18 11:17:46 ui: amazon-ebs: ERROR: Update KB3035131 installation failed (exit code 5).
amazon-ebs: ERROR: Update KB3035131 installation failed (exit code 5).
2018/04/18 11:17:46 ui: amazon-ebs: The install of kb3035131 was NOT successful.
amazon-ebs: The install of kb3035131 was NOT successful.
2018/04/18 11:17:46 ui: amazon-ebs: Error while running 'C:\ProgramData\chocolatey\lib\KB3035131\Tools\ChocolateyInstall.ps1'.
amazon-ebs: Error while running 'C:\ProgramData\chocolatey\lib\KB3035131\Tools\ChocolateyInstall.ps1'.
2018/04/18 11:17:46 ui: amazon-ebs: See log for details.
amazon-ebs: See log for details.
2018/04/18 11:17:48 ui: amazon-ebs:
amazon-ebs:
2018/04/18 11:17:48 ui: amazon-ebs: KB3033929 v1.0.3 [Approved]
amazon-ebs: KB3033929 v1.0.3 [Approved]
2018/04/18 11:17:48 ui: amazon-ebs: kb3033929 package files install completed. Performing other installation steps.
amazon-ebs: kb3033929 package files install completed. Performing other installation steps.
2018/04/18 11:17:48 ui: amazon-ebs: Skipping installation because update KB3033929 does not apply to this operating system (Microsoft Windows Server 2012 R2 Standard).
amazon-ebs: Skipping installation because update KB3033929 does not apply to this operating system (Microsoft Windows Server 2012 R2 Standard).
2018/04/18 11:17:48 ui: amazon-ebs: The install of kb3033929 was successful.
amazon-ebs: The install of kb3033929 was successful.
2018/04/18 11:17:48 ui: amazon-ebs: Software install location not explicitly set, could be in package or
amazon-ebs: Software install location not explicitly set, could be in package or
2018/04/18 11:17:48 ui: amazon-ebs: default install location if installer.
amazon-ebs: default install location if installer.
2018/04/18 11:17:48 ui: amazon-ebs:
amazon-ebs:
2018/04/18 11:17:48 ui: amazon-ebs: KB2919442 v1.0.20160915 [Approved]
amazon-ebs: KB2919442 v1.0.20160915 [Approved]
2018/04/18 11:17:48 ui: amazon-ebs: kb2919442 package files install completed. Performing other installation steps.
amazon-ebs: kb2919442 package files install completed. Performing other installation steps.
2018/04/18 11:17:50 ui: amazon-ebs: Skipping installation because hotfix KB2919442 is already installed.
amazon-ebs: Skipping installation because hotfix KB2919442 is already installed.
2018/04/18 11:17:50 ui: amazon-ebs: The install of kb2919442 was successful.
amazon-ebs: The install of kb2919442 was successful.
2018/04/18 11:17:50 ui: amazon-ebs: Software install location not explicitly set, could be in package or
amazon-ebs: Software install location not explicitly set, could be in package or
2018/04/18 11:17:50 ui: amazon-ebs: default install location if installer.
amazon-ebs: default install location if installer.
2018/04/18 11:17:50 ui: amazon-ebs:
amazon-ebs:
2018/04/18 11:17:50 ui: amazon-ebs: KB2919355 v1.0.20160915 [Approved]
amazon-ebs: KB2919355 v1.0.20160915 [Approved]
2018/04/18 11:17:50 ui: amazon-ebs: kb2919355 package files install completed. Performing other installation steps.
amazon-ebs: kb2919355 package files install completed. Performing other installation steps.
2018/04/18 11:17:51 ui: amazon-ebs: Skipping installation because hotfix KB2919355 is already installed.
amazon-ebs: Skipping installation because hotfix KB2919355 is already installed.
2018/04/18 11:17:51 ui: amazon-ebs: The install of kb2919355 was successful.
amazon-ebs: The install of kb2919355 was successful.
2018/04/18 11:17:51 ui: amazon-ebs: Software install location not explicitly set, could be in package or
amazon-ebs: Software install location not explicitly set, could be in package or
2018/04/18 11:17:51 ui: amazon-ebs: default install location if installer.
amazon-ebs: default install location if installer.
2018/04/18 11:17:51 ui: amazon-ebs:
amazon-ebs:
2018/04/18 11:17:51 ui: amazon-ebs: KB2999226 v1.0.20170509 [Approved]
amazon-ebs: KB2999226 v1.0.20170509 [Approved]
2018/04/18 11:17:51 ui: amazon-ebs: kb2999226 package files install completed. Performing other installation steps.
amazon-ebs: kb2999226 package files install completed. Performing other installation steps.
2018/04/18 11:17:52 ui: amazon-ebs: Skipping installation because update KB2999226 is already installed.
amazon-ebs: Skipping installation because update KB2999226 is already installed.
2018/04/18 11:17:52 ui: amazon-ebs: The install of kb2999226 was successful.
amazon-ebs: The install of kb2999226 was successful.
2018/04/18 11:17:52 ui: amazon-ebs: Software install location not explicitly set, could be in package or
amazon-ebs: Software install location not explicitly set, could be in package or
2018/04/18 11:17:52 ui: amazon-ebs: default install location if installer.
amazon-ebs: default install location if installer.
2018/04/18 11:17:52 ui: amazon-ebs:
amazon-ebs:
2018/04/18 11:17:52 ui: amazon-ebs: vcredist140 v14.12.25810 [Approved]
amazon-ebs: vcredist140 v14.12.25810 [Approved]
2018/04/18 11:17:52 ui: amazon-ebs: vcredist140 package files install completed. Performing other installation steps.
amazon-ebs: vcredist140 package files install completed. Performing other installation steps.
2018/04/18 11:17:53 ui: amazon-ebs: Downloading vcredist140-x86
amazon-ebs: Downloading vcredist140-x86
2018/04/18 11:17:53 ui: amazon-ebs: from 'https://download.visualstudio.microsoft.com/download/pr/100349138/88b50ce70017bf10f2d56d60fcba6ab1/VC_redist.x86.exe'
amazon-ebs: from 'https://download.visualstudio.microsoft.com/download/pr/100349138/88b50ce70017bf10f2d56d60fcba6ab1/VC_redist.x86.exe'
2018/04/18 11:17:53 ui: amazon-ebs: Progress: 100% - Completed download of C:\Users\Administrator\AppData\Local\Temp\chocolatey\vcredist140\14.12.25810\VC_redist.x86.exe (13.89 MB).
amazon-ebs: Progress: 100% - Completed download of C:\Users\Administrator\AppData\Local\Temp\chocolatey\vcredist140\14.12.25810\VC_redist.x86.exe (13.89 MB).
2018/04/18 11:17:53 ui: amazon-ebs: Download of VC_redist.x86.exe (13.89 MB) completed.
amazon-ebs: Download of VC_redist.x86.exe (13.89 MB) completed.
2018/04/18 11:17:57 ui: amazon-ebs: Hashes match.
amazon-ebs: Hashes match.
2018/04/18 11:17:57 ui: amazon-ebs: Installing vcredist140-x86...
amazon-ebs: Installing vcredist140-x86...
2018/04/18 11:18:41 ui: amazon-ebs: vcredist140-x86 has been installed.
amazon-ebs: vcredist140-x86 has been installed.
2018/04/18 11:18:41 ui: amazon-ebs: Downloading vcredist140-x64 64 bit
amazon-ebs: Downloading vcredist140-x64 64 bit
2018/04/18 11:18:41 ui: amazon-ebs: from 'https://download.visualstudio.microsoft.com/download/pr/100349091/2cd2dba5748dc95950a5c42c2d2d78e4/VC_redist.x64.exe'
amazon-ebs: from 'https://download.visualstudio.microsoft.com/download/pr/100349091/2cd2dba5748dc95950a5c42c2d2d78e4/VC_redist.x64.exe'
2018/04/18 11:18:41 ui: amazon-ebs: Progress: 100% - Completed download of C:\Users\Administrator\AppData\Local\Temp\chocolatey\vcredist140\14.12.25810\VC_redist.x64.exe (14.62 MB).
amazon-ebs: Progress: 100% - Completed download of C:\Users\Administrator\AppData\Local\Temp\chocolatey\vcredist140\14.12.25810\VC_redist.x64.exe (14.62 MB).
2018/04/18 11:18:41 ui: amazon-ebs: Download of VC_redist.x64.exe (14.62 MB) completed.
amazon-ebs: Download of VC_redist.x64.exe (14.62 MB) completed.
2018/04/18 11:18:45 ui: amazon-ebs: Hashes match.
amazon-ebs: Hashes match.
2018/04/18 11:18:45 ui: amazon-ebs: Installing vcredist140-x64...
amazon-ebs: Installing vcredist140-x64...
2018/04/18 11:18:47 ui: amazon-ebs: vcredist140-x64 has been installed.
amazon-ebs: vcredist140-x64 has been installed.
2018/04/18 11:18:47 ui: amazon-ebs: vcredist140 may be able to be automatically uninstalled.
amazon-ebs: vcredist140 may be able to be automatically uninstalled.
2018/04/18 11:18:47 ui: amazon-ebs: The install of vcredist140 was successful.
amazon-ebs: The install of vcredist140 was successful.
2018/04/18 11:18:47 ui: amazon-ebs: Software installed as 'exe', install location is likely default.
amazon-ebs: Software installed as 'exe', install location is likely default.
2018/04/18 11:18:47 ui: amazon-ebs:
amazon-ebs:
2018/04/18 11:18:47 ui: amazon-ebs: vcredist2015 v14.0.24215.20170201 [Approved]
amazon-ebs: vcredist2015 v14.0.24215.20170201 [Approved]
2018/04/18 11:18:47 ui: amazon-ebs: vcredist2015 package files install completed. Performing other installation steps.
amazon-ebs: vcredist2015 package files install completed. Performing other installation steps.
2018/04/18 11:18:47 ui: amazon-ebs: The install of vcredist2015 was successful.
amazon-ebs: The install of vcredist2015 was successful.
2018/04/18 11:18:47 ui: amazon-ebs: Software install location not explicitly set, could be in package or
amazon-ebs: Software install location not explicitly set, could be in package or
2018/04/18 11:18:47 ui: amazon-ebs: default install location if installer.
amazon-ebs: default install location if installer.
amazon-ebs:
2018/04/18 11:18:47 ui: amazon-ebs:
2018/04/18 11:18:47 ui: amazon-ebs: KB2533623 v1.0.2 [Approved]
amazon-ebs: KB2533623 v1.0.2 [Approved]
2018/04/18 11:18:47 ui: amazon-ebs: kb2533623 package files install completed. Performing other installation steps.
amazon-ebs: kb2533623 package files install completed. Performing other installation steps.
2018/04/18 11:18:47 ui: amazon-ebs: Skipping installation because update KB2533623 does not apply to this operating system (Microsoft Windows Server 2012 R2 Standard).
amazon-ebs: Skipping installation because update KB2533623 does not apply to this operating system (Microsoft Windows Server 2012 R2 Standard).
2018/04/18 11:18:47 ui: amazon-ebs: The install of kb2533623 was successful.
amazon-ebs: The install of kb2533623 was successful.
2018/04/18 11:18:47 ui: amazon-ebs: Software install location not explicitly set, could be in package or
amazon-ebs: Software install location not explicitly set, could be in package or
2018/04/18 11:18:47 ui: amazon-ebs: default install location if installer.
amazon-ebs: default install location if installer.
2018/04/18 11:18:47 ui: amazon-ebs:
amazon-ebs:
2018/04/18 11:18:47 ui: amazon-ebs: dotnetcore-runtime.install v2.0.6 [Approved]
amazon-ebs: dotnetcore-runtime.install v2.0.6 [Approved]
2018/04/18 11:18:47 ui: amazon-ebs: dotnetcore-runtime.install package files install completed. Performing other installation steps.
amazon-ebs: dotnetcore-runtime.install package files install completed. Performing other installation steps.
2018/04/18 11:18:48 ui: amazon-ebs: Downloading dotnetcore-runtime.install 64 bit
amazon-ebs: Downloading dotnetcore-runtime.install 64 bit
2018/04/18 11:18:48 ui: amazon-ebs: from 'https://download.microsoft.com/download/8/D/A/8DA04DA7-565B-4372-BBCE-D44C7809A467/dotnet-runtime-2.0.6-win-x64.exe'
amazon-ebs: from 'https://download.microsoft.com/download/8/D/A/8DA04DA7-565B-4372-BBCE-D44C7809A467/dotnet-runtime-2.0.6-win-x64.exe'
2018/04/18 11:18:48 ui: amazon-ebs: Progress: 100% - Completed download of C:\Users\Administrator\AppData\Local\Temp\chocolatey\dotnetcore-runtime.install\2.0.6\dotnet-runtime-2.0.6-win-x64.exe (21.91 MB).
amazon-ebs: Progress: 100% - Completed download of C:\Users\Administrator\AppData\Local\Temp\chocolatey\dotnetcore-runtime.install\2.0.6\dotnet-runtime-2.0.6-win-x64.exe (21.91 MB).
2018/04/18 11:18:48 ui: amazon-ebs: Download of dotnet-runtime-2.0.6-win-x64.exe (21.91 MB) completed.
amazon-ebs: Download of dotnet-runtime-2.0.6-win-x64.exe (21.91 MB) completed.
amazon-ebs: Hashes match.
2018/04/18 11:18:52 ui: amazon-ebs: Hashes match.
2018/04/18 11:18:52 ui: amazon-ebs: Installing dotnetcore-runtime.install...
amazon-ebs: Installing dotnetcore-runtime.install...
2018/04/18 11:18:56 packer: 2018/04/18 11:18:56 [INFO] command 'powershell -executionpolicy bypass "& { if (Test-Path variable:global:ProgressPreference){$ProgressPreference='SilentlyContinue'};. ${env:SYSTEMROOT}/Temp/packer-env-vars-5ad70d0f-0578-c279-6ef8-2dcc91c743ad.ps1; &'c:/Windows/Temp/script-5ad70c62-4776-8bde-f8db-7e5abdaf15cb.ps1';exit $LastExitCode }"' exited with code: 5
2018/04/18 11:18:56 packer: 2018/04/18 11:18:56 [INFO] RPC endpoint: Communicator ended with: 5
2018/04/18 11:18:56 [INFO] 0 bytes written for 'stderr'
2018/04/18 11:18:56 [INFO] 30163 bytes written for 'stdout'
2018/04/18 11:18:56 ui: amazon-ebs: dotnetcore-runtime.install has been installed.
2018/04/18 11:18:56 [INFO] RPC client: Communicator ended with: 5
2018/04/18 11:18:56 [INFO] RPC endpoint: Communicator ended with: 5
amazon-ebs: dotnetcore-runtime.install has been installed.
2018/04/18 11:18:56 packer: 2018/04/18 11:18:56 [INFO] 30163 bytes written for 'stdout'
2018/04/18 11:18:56 packer: 2018/04/18 11:18:56 [INFO] 0 bytes written for 'stderr'
2018/04/18 11:18:56 ui: amazon-ebs: dotnetcore-runtime.install may be able to be automatically uninstalled.
2018/04/18 11:18:56 packer: 2018/04/18 11:18:56 [INFO] RPC client: Communicator ended with: 5
amazon-ebs: dotnetcore-runtime.install may be able to be automatically uninstalled.
2018/04/18 11:18:56 ui: amazon-ebs: Environment Vars (like PATH) have changed. Close/reopen your shell to
amazon-ebs: Environment Vars (like PATH) have changed. Close/reopen your shell to
2018/04/18 11:18:56 ui: amazon-ebs: see the changes (or in powershell/cmd.exe just type `refreshenv`).
amazon-ebs: see the changes (or in powershell/cmd.exe just type `refreshenv`).
2018/04/18 11:18:56 ui: amazon-ebs: The install of dotnetcore-runtime.install was successful.
amazon-ebs: The install of dotnetcore-runtime.install was successful.
2018/04/18 11:18:56 ui: amazon-ebs: Software installed as 'exe', install location is likely default.
amazon-ebs: Software installed as 'exe', install location is likely default.
amazon-ebs:
2018/04/18 11:18:56 ui: amazon-ebs:
2018/04/18 11:18:56 ui: amazon-ebs: dotnetcore-runtime v2.0.6 [Approved]
amazon-ebs: dotnetcore-runtime v2.0.6 [Approved]
2018/04/18 11:18:56 ui: amazon-ebs: dotnetcore-runtime package files install completed. Performing other installation steps.
amazon-ebs: dotnetcore-runtime package files install completed. Performing other installation steps.
2018/04/18 11:18:56 ui: amazon-ebs: The install of dotnetcore-runtime was successful.
amazon-ebs: The install of dotnetcore-runtime was successful.
2018/04/18 11:18:56 ui: amazon-ebs: Software install location not explicitly set, could be in package or
amazon-ebs: Software install location not explicitly set, could be in package or
2018/04/18 11:18:56 ui: amazon-ebs: default install location if installer.
amazon-ebs: default install location if installer.
amazon-ebs:
2018/04/18 11:18:56 ui: amazon-ebs:
2018/04/18 11:18:56 ui: amazon-ebs: Chocolatey installed 11/12 packages. 1 packages failed.
amazon-ebs: Chocolatey installed 11/12 packages. 1 packages failed.
2018/04/18 11:18:56 ui: amazon-ebs: See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
amazon-ebs: See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
amazon-ebs:
2018/04/18 11:18:56 ui: amazon-ebs:
2018/04/18 11:18:56 ui: amazon-ebs: Installed:
amazon-ebs: Installed:
2018/04/18 11:18:56 ui: amazon-ebs: - kb2919355 v1.0.20160915
amazon-ebs: - kb2919355 v1.0.20160915
2018/04/18 11:18:56 ui: amazon-ebs: - kb3033929 v1.0.3
amazon-ebs: - kb3033929 v1.0.3
2018/04/18 11:18:56 ui: amazon-ebs: - kb2999226 v1.0.20170509
amazon-ebs: - kb2999226 v1.0.20170509
2018/04/18 11:18:56 ui: amazon-ebs: - chocolatey-core.extension v1.3.3
amazon-ebs: - chocolatey-core.extension v1.3.3
2018/04/18 11:18:56 ui: amazon-ebs: - dotnetcore-runtime.install v2.0.6
amazon-ebs: - dotnetcore-runtime.install v2.0.6
2018/04/18 11:18:56 ui: amazon-ebs: - vcredist2015 v14.0.24215.20170201
amazon-ebs: - vcredist2015 v14.0.24215.20170201
2018/04/18 11:18:56 ui: amazon-ebs: - dotnetcore-runtime v2.0.6
amazon-ebs: - dotnetcore-runtime v2.0.6
2018/04/18 11:18:56 ui: amazon-ebs: - kb2919442 v1.0.20160915
amazon-ebs: - kb2919442 v1.0.20160915
2018/04/18 11:18:56 ui: amazon-ebs: - kb2533623 v1.0.2
amazon-ebs: - kb2533623 v1.0.2
2018/04/18 11:18:56 ui: amazon-ebs: - vcredist140 v14.12.25810
amazon-ebs: - vcredist140 v14.12.25810
2018/04/18 11:18:56 ui: amazon-ebs: - chocolatey-windowsupdate.extension v1.0.2
amazon-ebs: - chocolatey-windowsupdate.extension v1.0.2
2018/04/18 11:18:56 ui: amazon-ebs:
amazon-ebs:
2018/04/18 11:18:56 ui: amazon-ebs: Failures
amazon-ebs: Failures
2018/04/18 11:18:56 ui: amazon-ebs: - kb3035131 (exited 5) - Error while running 'C:\ProgramData\chocolatey\lib\KB3035131\Tools\ChocolateyInstall.ps1'.
amazon-ebs: - kb3035131 (exited 5) - Error while running 'C:\ProgramData\chocolatey\lib\KB3035131\Tools\ChocolateyInstall.ps1'.
2018/04/18 11:18:56 ui: amazon-ebs: See log for details.
amazon-ebs: See log for details.
2018/04/18 11:18:56 [INFO] (telemetry) ending powershell
2018/04/18 11:18:56 ui: ==> amazon-ebs: Terminating the source AWS instance...
==> amazon-ebs: Terminating the source AWS instance...
2018/04/18 11:18:57 packer: 2018/04/18 11:18:57 Waiting for state to become: terminated
2018/04/18 11:18:57 packer: 2018/04/18 11:18:57 Using 2s as polling delay (change with AWS_POLL_DELAY_SECONDS)
2018/04/18 11:18:57 packer: 2018/04/18 11:18:57 Allowing 300s to complete (change with AWS_TIMEOUT_SECONDS)
2018/04/18 11:19:33 ui: ==> amazon-ebs: Cleaning up any extra volumes...
==> amazon-ebs: Cleaning up any extra volumes...
2018/04/18 11:19:33 ui: ==> amazon-ebs: No volumes to clean up, skipping
==> amazon-ebs: No volumes to clean up, skipping
2018/04/18 11:19:33 ui: ==> amazon-ebs: Deleting temporary security group...
==> amazon-ebs: Deleting temporary security group...
2018/04/18 11:19:33 ui: ==> amazon-ebs: Deleting temporary keypair...
==> amazon-ebs: Deleting temporary keypair...
2018/04/18 11:19:33 [INFO] (telemetry) ending amazon-ebs
2018/04/18 11:19:33 ui error: Build 'amazon-ebs' errored: Script exited with non-zero exit status: 5. Allowed exit codes are: [0]
2018/04/18 11:19:33 Builds completed. Waiting on interrupt barrier...
2018/04/18 11:19:33 machine readable: error-count []string{"1"}
2018/04/18 11:19:33 ui error:
==> Some builds didn't complete successfully and had errors:
2018/04/18 11:19:33 machine readable: amazon-ebs,error []string{"Script exited with non-zero exit status: 5. Allowed exit codes are: [0]"}
2018/04/18 11:19:33 ui error: --> amazon-ebs: Script exited with non-zero exit status: 5. Allowed exit codes are: [0]
2018/04/18 11:19:33 ui:
==> Builds finished but no artifacts were created.
Build 'amazon-ebs' errored: Script exited with non-zero exit status: 5. Allowed exit codes are: [0]
2018/04/18 11:19:33 [INFO] (telemetry) Finalizing.
==> Some builds didn't complete successfully and had errors:
--> amazon-ebs: Script exited with non-zero exit status: 5. Allowed exit codes are: [0]
==> Builds finished but no artifacts were created.
2018/04/18 11:19:34 waiting for all plugin processes to complete...
2018/04/18 11:19:34 /usr/local/bin/packer: plugin process exited
2018/04/18 11:19:34 /usr/local/bin/packer: plugin process exited
{
"variables": {
"region": "{{ env `AWS_REGION` }}",
"vpc_id": "{{ env `AWS_VPC_ID` }}"
},
"builders": [{
"ami_name": "win-2012-r2-base-{{ timestamp }}",
"communicator": "winrm",
"instance_type": "t2.medium",
"region": "{{ user `region` }}",
"type": "amazon-ebs",
"user_data_file": "{{ template_dir }}/bootstrap/aws/userdata/bootstrap-aws.txt",
"vpc_id": "{{ user `vpc_id` }}",
"windows_password_timeout": "30m",
"winrm_insecure": true,
"winrm_timeout": "30m",
"winrm_use_ssl": true,
"winrm_username": "Administrator",
"source_ami_filter": {
"filters": {
"name": "Windows_Server-2012-R2_RTM-English-64Bit-Base-*"
},
"owners": ["801119661308"],
"most_recent": true
},
"ami_block_device_mappings": [{
"delete_on_termination": true,
"device_name": "/dev/sda1",
"volume_size": 50,
"volume_type": "gp2"
}],
"launch_block_device_mappings": [{
"delete_on_termination": true,
"device_name": "/dev/sda1"
}],
"run_tags": {
"Name": "Packer Builder (Windows 2012)"
},
"tags": {
"Name": "ParkBee Windows 2012 Base"
}
}],
"provisioners": [
{
"type": "powershell",
"inline": [
"Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))",
"choco install -y dotnetcore-runtime"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment