Created
October 26, 2017 12:13
-
-
Save orontee/9273158f117e090a9cddd8433113eda8 to your computer and use it in GitHub Desktop.
Packer log and files for amazon-ebsvolume failure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"description": "Sample for debug", | |
"variables": { | |
"aws_access_key": "{{env `AWS_ACCESS_KEY_ID`}}", | |
"aws_secret_key": "{{env `AWS_SECRET_ACCESS_KEY`}}", | |
"region": "eu-west-1" | |
}, | |
"builders": [ | |
{ | |
"type": "amazon-ebsvolume", | |
"access_key": "{{ user `aws_access_key` }}", | |
"secret_key": "{{ user `aws_secret_key` }}", | |
"region": "eu-west-1", | |
"instance_type": "t2.micro", | |
"source_ami": "ami-b7e93bce", | |
"communicator": "winrm", | |
"user_data_file": "userdata.ps1", | |
"winrm_username": "Administrator", | |
"winrm_use_ssl": true, | |
"winrm_insecure": true, | |
"disable_stop_instance": false, | |
"ebs_volumes": [ | |
{ | |
"volume_type": "gp2", | |
"device_name": "d:", | |
"delete_on_termination": false | |
} | |
] | |
}] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c:\packer-test | |
λ dir | |
Le volume dans le lecteur C n’a pas de nom. | |
Le numéro de série du volume est 54B2-7F35 | |
Répertoire de c:\packer-test | |
26/10/2017 13:34 <DIR> . | |
26/10/2017 13:34 <DIR> .. | |
26/10/2017 12:08 998 machine-desc_light.json | |
25/10/2017 10:59 1 693 userdata.ps1 | |
2 fichier(s) 2 691 octets | |
2 Rép(s) 162 558 545 920 octets libres | |
c:\packer-test | |
λ packer build machine-desc_light.json | |
2017/10/26 13:34:46 [INFO] Packer version: 1.1.1 | |
2017/10/26 13:34:46 Packer Target OS/Arch: windows amd64 | |
2017/10/26 13:34:46 Built with Go Version: go1.9 | |
2017/10/26 13:34:46 Using internal plugin for virtualbox-ovf | |
2017/10/26 13:34:46 Using internal plugin for cloudstack | |
2017/10/26 13:34:46 Using internal plugin for googlecompute | |
2017/10/26 13:34:46 Using internal plugin for hyperv-vmcx | |
2017/10/26 13:34:46 Using internal plugin for oracle-oci | |
2017/10/26 13:34:46 Using internal plugin for vmware-iso | |
2017/10/26 13:34:46 Using internal plugin for amazon-chroot | |
2017/10/26 13:34:46 Using internal plugin for amazon-instance | |
2017/10/26 13:34:46 Using internal plugin for null | |
2017/10/26 13:34:46 Using internal plugin for qemu | |
2017/10/26 13:34:46 Using internal plugin for amazon-ebsvolume | |
2017/10/26 13:34:46 Using internal plugin for lxc | |
2017/10/26 13:34:46 Using internal plugin for triton | |
2017/10/26 13:34:46 Using internal plugin for docker | |
2017/10/26 13:34:46 Using internal plugin for alicloud-ecs | |
2017/10/26 13:34:46 Using internal plugin for amazon-ebs | |
2017/10/26 13:34:46 Using internal plugin for amazon-ebssurrogate | |
2017/10/26 13:34:46 Using internal plugin for digitalocean | |
2017/10/26 13:34:46 Using internal plugin for vmware-vmx | |
2017/10/26 13:34:46 Using internal plugin for hyperv-iso | |
2017/10/26 13:34:46 Using internal plugin for parallels-pvm | |
2017/10/26 13:34:46 Using internal plugin for profitbricks | |
2017/10/26 13:34:46 Using internal plugin for virtualbox-iso | |
2017/10/26 13:34:46 Using internal plugin for azure-arm | |
2017/10/26 13:34:46 Using internal plugin for file | |
2017/10/26 13:34:46 Using internal plugin for lxd | |
2017/10/26 13:34:46 Using internal plugin for parallels-iso | |
2017/10/26 13:34:46 Using internal plugin for oneandone | |
2017/10/26 13:34:46 Using internal plugin for openstack | |
2017/10/26 13:34:46 Using internal plugin for salt-masterless | |
2017/10/26 13:34:46 Using internal plugin for shell | |
2017/10/26 13:34:46 Using internal plugin for windows-shell | |
2017/10/26 13:34:46 Using internal plugin for chef-solo | |
2017/10/26 13:34:46 Using internal plugin for windows-restart | |
2017/10/26 13:34:46 Using internal plugin for powershell | |
2017/10/26 13:34:46 Using internal plugin for puppet-server | |
2017/10/26 13:34:46 Using internal plugin for shell-local | |
2017/10/26 13:34:46 Using internal plugin for ansible-local | |
2017/10/26 13:34:46 Using internal plugin for converge | |
2017/10/26 13:34:46 Using internal plugin for file | |
2017/10/26 13:34:46 Using internal plugin for puppet-masterless | |
2017/10/26 13:34:46 Using internal plugin for ansible | |
2017/10/26 13:34:46 Using internal plugin for chef-client | |
2017/10/26 13:34:46 Using internal plugin for artifice | |
2017/10/26 13:34:46 Using internal plugin for compress | |
2017/10/26 13:34:46 Using internal plugin for docker-import | |
2017/10/26 13:34:46 Using internal plugin for docker-push | |
2017/10/26 13:34:46 Using internal plugin for docker-tag | |
2017/10/26 13:34:46 Using internal plugin for vagrant-cloud | |
2017/10/26 13:34:46 Using internal plugin for alicloud-import | |
2017/10/26 13:34:46 Using internal plugin for manifest | |
2017/10/26 13:34:46 Using internal plugin for vsphere-template | |
2017/10/26 13:34:46 Using internal plugin for vsphere | |
2017/10/26 13:34:46 Using internal plugin for amazon-import | |
2017/10/26 13:34:46 Using internal plugin for atlas | |
2017/10/26 13:34:46 Using internal plugin for checksum | |
2017/10/26 13:34:46 Using internal plugin for docker-save | |
2017/10/26 13:34:46 Using internal plugin for googlecompute-export | |
2017/10/26 13:34:46 Using internal plugin for vagrant | |
2017/10/26 13:34:46 Using internal plugin for shell-local | |
2017/10/26 13:34:46 Attempting to open config file: C:\Users\orontee\AppData\Roaming\packer.config | |
2017/10/26 13:34:46 [WARN] Config file doesn't exist: C:\Users\orontee\AppData\Roaming\packer.config | |
2017/10/26 13:34:46 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[amazon-chroot:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-chroot amazon-instance:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-instance hyperv-iso:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-iso oneandone:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oneandone qemu:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu amazon-ebsvolume:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebsvolume lxc:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxc amazon-ebs:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs profitbricks:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-profitbricks cloudstack:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-cloudstack vmware-iso:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-iso azure-arm:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-azure-arm docker:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-docker openstack:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-openstack hyperv-vmcx:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-vmcx null:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-null triton:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-triton alicloud-ecs:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-alicloud-ecs parallels-iso:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-iso googlecompute:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-googlecompute oracle-oci:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-oci amazon-ebssurrogate:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebssurrogate vmware-vmx:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-vmx digitalocean:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-digitalocean parallels-pvm:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-pvm virtualbox-iso:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-iso file:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-file lxd:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxd virtualbox-ovf:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-ovf] PostProcessors:map[compress:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-compress vagrant-cloud:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant-cloud vsphere-template:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere-template vsphere:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere vagrant:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant shell-local:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-shell-local artifice:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-artifice docker-import:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-import docker-push:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-push manifest:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-manifest docker-save:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-save googlecompute-export:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-export docker-tag:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-tag alicloud-import:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-alicloud-import amazon-import:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-amazon-import atlas:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-atlas checksum:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-checksum] Provisioners:map[puppet-masterless:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-masterless windows-restart:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-restart puppet-server:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-server shell:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell powershell:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-powershell ansible-local:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible-local converge:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-converge ansible:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible chef-client:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-client salt-masterless:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-salt-masterless chef-solo:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-solo shell-local:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell-local file:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-file windows-shell:C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-shell]} | |
2017/10/26 13:34:46 Setting cache directory: c:\packer-test\packer_cache | |
2017/10/26 13:34:46 Loading builder: amazon-ebsvolume | |
2017/10/26 13:34:46 Plugin could not be found. Checking same directory as executable. | |
2017/10/26 13:34:46 Current exe path: C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe | |
2017/10/26 13:34:46 Creating plugin client for path: C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe | |
2017/10/26 13:34:46 Starting plugin: C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe []string{"C:\\Users\\orontee\\Tools\\packer_1.1.1_windows_amd64\\packer.exe", "plugin", "packer-builder-amazon-ebsvolume"} | |
2017/10/26 13:34:46 Waiting for RPC address for: C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe | |
2017/10/26 13:34:46 packer.exe: 2017/10/26 13:34:46 [INFO] Packer version: 1.1.1 | |
2017/10/26 13:34:46 packer.exe: 2017/10/26 13:34:46 Packer Target OS/Arch: windows amd64 | |
2017/10/26 13:34:46 packer.exe: 2017/10/26 13:34:46 Built with Go Version: go1.9 | |
2017/10/26 13:34:46 packer.exe: 2017/10/26 13:34:46 Attempting to open config file: C:\Users\orontee\AppData\Roaming\packer.config | |
2017/10/26 13:34:46 packer.exe: 2017/10/26 13:34:46 [WARN] Config file doesn't exist: C:\Users\orontee\AppData\Roaming\packer.config | |
2017/10/26 13:34:46 packer.exe: 2017/10/26 13:34:46 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]} | |
2017/10/26 13:34:46 packer.exe: 2017/10/26 13:34:46 Setting cache directory: c:\packer-test\packer_cache | |
2017/10/26 13:34:46 packer.exe: 2017/10/26 13:34:46 args: []string{"packer-builder-amazon-ebsvolume"} | |
2017/10/26 13:34:46 packer.exe: 2017/10/26 13:34:46 Plugin minimum port: 10000 | |
2017/10/26 13:34:46 packer.exe: 2017/10/26 13:34:46 Plugin maximum port: 25000 | |
2017/10/26 13:34:46 packer.exe: 2017/10/26 13:34:46 Plugin address: tcp 127.0.0.1:10000 | |
2017/10/26 13:34:46 packer.exe: 2017/10/26 13:34:46 Waiting for connection... | |
amazon-ebsvolume output will be in this color.2017/10/26 13:34:46 packer.exe: 2017/10/26 13:34:46 Serving a plugin connection... | |
2017/10/26 13:34:46 ui: | |
amazon-ebsvolume output will be in this color. | |
2017/10/26 13:34:46 ui: | |
2017/10/26 13:34:46 Build debug mode: false | |
2017/10/26 13:34:46 Force build: false | |
2017/10/26 13:34:46 On error: | |
2017/10/26 13:34:46 Preparing build: amazon-ebsvolume | |
2017/10/26 13:34:46 packer.exe: 2017/10/26 13:34:46 Config: {PackerConfig:{PackerBuildName:amazon-ebsvolume PackerBuilderType:amazon-ebsvolume PackerDebug:false PackerForce:false PackerOnError: PackerUserVars:map[aws_secret_key: region:eu-west-1 aws_access_key:]} AccessConfig:{AccessKey: CustomEndpointEc2: MFACode: ProfileName: RawRegion:eu-west-1 SecretKey: SkipValidation:false Token: session:<nil>} RunConfig:{AssociatePublicIpAddress:false AvailabilityZone: EbsOptimized:false IamInstanceProfile: InstanceType:t2.micro RunTags:map[] SourceAmi:ami-b7e93bce SourceAmiFilter:{Filters:map[] Owners:[] MostRecent:false} SpotPrice: SpotPriceAutoProduct: DisableStopInstance:false SecurityGroupId: SecurityGroupIds:[] TemporarySGSourceCidr:0.0.0.0/0 SubnetId: TemporaryKeyPairName:packer_59f1c856-dfdd-91e2-b4f6-df5e95190f38 UserData: UserDataFile:userdata.ps1 WindowsPasswordTimeout:20m0s VpcId: 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: WinRMUser:Administrator WinRMPassword: WinRMHost: WinRMPort:5986 WinRMTimeout:30m0s WinRMUseSSL:true WinRMInsecure:true WinRMUseNTLM:false WinRMTransportDecorator:<nil>} SSHKeyPairName: SSHPrivateIp:false} VolumeMappings:[{BlockDevice:{DeleteOnTermination:false DeviceName:d: Encrypted:false IOPS:0 NoDevice:false SnapshotId: VirtualName: VolumeType:gp2 VolumeSize:0} Tags:map[]}] AMIENASupport:false AMISriovNetSupport:false launchBlockDevices:{AMIBlockDevices:{AMIMappings:[]} LaunchBlockDevices:{LaunchMappings:[{DeleteOnTermination:false DeviceName:d: Encrypted:false IOPS:0 NoDevice:false SnapshotId: VirtualName: VolumeType:gp2 VolumeSize:0}]}} ctx:{Data:<nil> Funcs:map[clean_ami_name:0xc7c310] UserVariables:map[aws_access_key: aws_secret_key: region:eu-west-1] EnableEnv:false BuildName:amazon-ebsvolume BuildType:amazon-ebsvolume TemplatePath:c:\packer-test\machine-desc_light.json}} | |
2017/10/26 13:34:46 Waiting on builds to complete... | |
2017/10/26 13:34:46 Starting build run: amazon-ebsvolume | |
2017/10/26 13:34:46 Running builder: amazon-ebsvolume | |
2017/10/26 13:34:46 [INFO] (telemetry) Starting builder amazon-ebsvolume | |
2017/10/26 13:34:46 packer.exe: 2017/10/26 13:34:46 Using AMI Filters { | |
2017/10/26 13:34:46 packer.exe: ImageIds: ["ami-b7e93bce"] | |
2017/10/26 13:34:46 packer.exe: } | |
2017/10/26 13:34:47 ui: amazon-ebsvolume: Found Image ID: ami-b7e93bce amazon-ebsvolume: Found Image ID: ami-b7e93bce | |
==> amazon-ebsvolume: Creating temporary keypair: packer_59f1c856-dfdd-91e2-b4f6-df5e95190f382017/10/26 13:34:47 ui: ==> amazon-ebsvolume: Creating temporary keypair: packer_59f1c856-dfdd-91e2-b4f6-df5e95190f38 | |
2017/10/26 13:34:47 ui: ==> amazon-ebsvolume: Creating temporary security group for this instance: packer_59f1c857-3b94-1f5f-e950-417cb187503d | |
==> amazon-ebsvolume: Creating temporary security group for this instance: packer_59f1c857-3b94-1f5f-e950-417cb187503d | |
2017/10/26 13:34:47 ui: ==> amazon-ebsvolume: Authorizing access to port 5986 from 0.0.0.0/0 in the temporary security group... | |
==> amazon-ebsvolume: Authorizing access to port 5986 from 0.0.0.0/0 in the temporary security group... | |
2017/10/26 13:34:48 packer.exe: 2017/10/26 13:34:48 [DEBUG] Waiting for temporary security group: sg-7930f502 | |
2017/10/26 13:34:48 packer.exe: 2017/10/26 13:34:48 [DEBUG] Found security group sg-7930f502 | |
2017/10/26 13:34:48 packer.exe: 2017/10/26 13:34:48 [DEBUG] base64 encoding user data... | |
==> amazon-ebsvolume: Launching a source AWS instance...2017/10/26 13:34:48 ui: ==> amazon-ebsvolume: Launching a source AWS instance... | |
==> amazon-ebsvolume: Adding tags to source instance2017/10/26 13:34:48 ui: | |
amazon-ebsvolume: Adding tag: "Name": "Packer Builder"==> amazon-ebsvolume: Adding tags to source instance | |
2017/10/26 13:34:48 ui: amazon-ebsvolume: Adding tag: "Name": "Packer Builder" | |
2017/10/26 13:34:49 ui: amazon-ebsvolume: Instance ID: i-076338a96da135594 amazon-ebsvolume: Instance ID: i-076338a96da135594 | |
2017/10/26 13:34:49 ui: ==> amazon-ebsvolume: Waiting for instance (i-076338a96da135594) to become ready...==> amazon-ebsvolume: Waiting for instance (i-076338a96da135594) to become ready... | |
2017/10/26 13:34:49 packer.exe: 2017/10/26 13:34:49 Waiting for state to become: running | |
2017/10/26 13:34:49 packer.exe: 2017/10/26 13:34:49 Using 2s as polling delay (change with AWS_POLL_DELAY_SECONDS) | |
2017/10/26 13:34:49 packer.exe: 2017/10/26 13:34:49 Allowing 300s to complete (change with AWS_TIMEOUT_SECONDS) | |
==> amazon-ebsvolume: Waiting for auto-generated password for instance...2017/10/26 13:35:14 ui: | |
==> amazon-ebsvolume: Waiting for auto-generated password for instance... amazon-ebsvolume: It is normal for this process to take up to 15 minutes, | |
amazon-ebsvolume: but it usually takes around 5. Please wait.2017/10/26 13:35:14 ui: amazon-ebsvolume: It is normal for this process to take up to 15 minutes, | |
amazon-ebsvolume: but it usually takes around 5. Please wait. | |
2017/10/26 13:35:19 packer.exe: 2017/10/26 13:35:19 [DEBUG] Password is blank, will retry... | |
2017/10/26 13:35:24 packer.exe: 2017/10/26 13:35:24 [DEBUG] Password is blank, will retry... | |
2017/10/26 13:35:29 packer.exe: 2017/10/26 13:35:29 [DEBUG] Password is blank, will retry... | |
2017/10/26 13:35:36 packer.exe: 2017/10/26 13:35:36 [DEBUG] Password is blank, will retry... | |
2017/10/26 13:35:41 packer.exe: 2017/10/26 13:35:41 [DEBUG] Password is blank, will retry... | |
2017/10/26 13:35:46 packer.exe: 2017/10/26 13:35:46 [DEBUG] Password is blank, will retry... | |
2017/10/26 13:35:51 packer.exe: 2017/10/26 13:35:51 [DEBUG] Password is blank, will retry... | |
2017/10/26 13:35:56 packer.exe: 2017/10/26 13:35:56 [DEBUG] Password is blank, will retry... | |
2017/10/26 13:36:01 packer.exe: 2017/10/26 13:36:01 [DEBUG] Password is blank, will retry... | |
2017/10/26 13:36:06 packer.exe: 2017/10/26 13:36:06 [DEBUG] Password is blank, will retry... | |
2017/10/26 13:36:11 packer.exe: 2017/10/26 13:36:11 [DEBUG] Password is blank, will retry... | |
2017/10/26 13:36:17 packer.exe: 2017/10/26 13:36:17 [DEBUG] Password is blank, will retry... | |
2017/10/26 13:36:22 packer.exe: 2017/10/26 13:36:22 [DEBUG] Password is blank, will retry... | |
2017/10/26 13:36:27 packer.exe: 2017/10/26 13:36:27 [DEBUG] Password is blank, will retry... | |
2017/10/26 13:36:32 packer.exe: 2017/10/26 13:36:32 [DEBUG] Password is blank, will retry... | |
2017/10/26 13:36:37 packer.exe: 2017/10/26 13:36:37 [DEBUG] Password is blank, will retry... | |
2017/10/26 13:36:42 packer.exe: 2017/10/26 13:36:42 [DEBUG] Password is blank, will retry... | |
2017/10/26 13:36:48 packer.exe: 2017/10/26 13:36:48 [DEBUG] Password is blank, will retry... | |
2017/10/26 13:36:53 packer.exe: 2017/10/26 13:36:53 [DEBUG] Password is blank, will retry... | |
2017/10/26 13:36:58 packer.exe: 2017/10/26 13:36:58 [DEBUG] Password is blank, will retry... | |
2017/10/26 13:37:03 packer.exe: 2017/10/26 13:37:03 [DEBUG] Password is blank, will retry... | |
2017/10/26 13:37:08 packer.exe: 2017/10/26 13:37:08 [DEBUG] Password is blank, will retry... | |
2017/10/26 13:37:13 packer.exe: 2017/10/26 13:37:13 [DEBUG] Password is blank, will retry... | |
2017/10/26 13:37:19 packer.exe: 2017/10/26 13:37:19 [DEBUG] Password is blank, will retry... | |
2017/10/26 13:37:24 packer.exe: 2017/10/26 13:37:24 [DEBUG] Password is blank, will retry... | |
2017/10/26 13:37:29 packer.exe: 2017/10/26 13:37:29 [DEBUG] Password is blank, will retry... | |
2017/10/26 13:37:34 ui: amazon-ebsvolume: | |
amazon-ebsvolume: | |
amazon-ebsvolume: Password retrieved! amazon-ebsvolume: Password retrieved! | |
2017/10/26 13:37:34 packer.exe: 2017/10/26 13:37:34 Waiting for WinRM, up to timeout: 30m0s | |
2017/10/26 13:37:34 ui: ==> amazon-ebsvolume: Waiting for WinRM to become available...==> amazon-ebsvolume: Waiting for WinRM to become available... | |
2017/10/26 13:37:39 packer.exe: 2017/10/26 13:37:39 [INFO] Attempting WinRM connection... | |
2017/10/26 13:37:39 packer.exe: 2017/10/26 13:37:39 [DEBUG] connecting to remote shell using WinRM | |
2017/10/26 13:37:55 packer.exe: 2017/10/26 13:37:55 Checking that WinRM is connected with: 'powershell.exe -EncodedCommand aQBmACAAKABUAGUAcwB0AC0AUABhAHQAaAAgAHYAYQByAGkAYQBiAGwAZQA6AGcAbABvAGIAYQBsADoAUAByAG8AZwByAGUAcwBzAFAAcgBlAGYAZQByAGUAbgBjAGUAKQB7ACQAUAByAG8AZwByAGUAcwBzAFAAcgBlAGYAZQByAGUAbgBjAGUAPQAnAFMAaQBsAGUAbgB0AGwAeQBDAG8AbgB0AGkAbgB1AGUAJwB9ADsAIABlAGMAaABvACAAIgBXAGkAbgBSAE0AIABjAG8AbgBuAGUAYwB0AGUAZAAuACIA' | |
2017/10/26 13:37:56 packer.exe: 2017/10/26 13:37:56 [INFO] starting remote command: powershell.exe -EncodedCommand aQBmACAAKABUAGUAcwB0AC0AUABhAHQAaAAgAHYAYQByAGkAYQBiAGwAZQA6AGcAbABvAGIAYQBsADoAUAByAG8AZwByAGUAcwBzAFAAcgBlAGYAZQByAGUAbgBjAGUAKQB7ACQAUAByAG8AZwByAGUAcwBzAFAAcgBlAGYAZQByAGUAbgBjAGUAPQAnAFMAaQBsAGUAbgB0AGwAeQBDAG8AbgB0AGkAbgB1AGUAJwB9ADsAIABlAGMAaABvACAAIgBXAGkAbgBSAE0AIABjAG8AbgBuAGUAYwB0AGUAZAAuACIA | |
amazon-ebsvolume: WinRM connected.2017/10/26 13:38:00 packer.exe: 2017/10/26 13:38:00 [INFO] command 'powershell.exe -EncodedCommand aQBmACAAKABUAGUAcwB0AC0AUABhAHQAaAAgAHYAYQByAGkAYQBiAGwAZQA6AGcAbABvAGIAYQBsADoAUAByAG8AZwByAGUAcwBzAFAAcgBlAGYAZQByAGUAbgBjAGUAKQB7ACQAUAByAG8AZwByAGUAcwBzAFAAcgBlAGYAZQByAGUAbgBjAGUAPQAnAFMAaQBsAGUAbgB0AGwAeQBDAG8AbgB0AGkAbgB1AGUAJwB9ADsAIABlAGMAaABvACAAIgBXAGkAbgBSAE0AIABjAG8AbgBuAGUAYwB0AGUAZAAuACIA' exited with code: 0 | |
amazon-ebsvolume: #< CLIXML2017/10/26 13:38:00 ui: | |
amazon-ebsvolume: WinRM connected. | |
amazon-ebsvolume: <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>2017/10/26 13:38:00 ui: | |
amazon-ebsvolume: #< CLIXML==> amazon-ebsvolume: Connected to WinRM! | |
2017/10/26 13:38:00 ui: | |
amazon-ebsvolume: <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-ebsvolume: Stopping the source instance... | |
2017/10/26 13:38:00 packer.exe: 2017/10/26 13:38:00 Connected to machine | |
2017/10/26 13:38:00 ui: | |
==> amazon-ebsvolume: Connected to WinRM! amazon-ebsvolume: Stopping instance, attempt 1 | |
2017/10/26 13:38:00 packer.exe: 2017/10/26 13:38:00 Running the provision hook | |
2017/10/26 13:38:00 ui: | |
==> amazon-ebsvolume: Stopping the source instance... | |
2017/10/26 13:38:00 ui: amazon-ebsvolume: Stopping instance, attempt 1 | |
2017/10/26 13:38:01 ui: ==> amazon-ebsvolume: Waiting for the instance to stop...==> amazon-ebsvolume: Waiting for the instance to stop... | |
2017/10/26 13:38:01 packer.exe: 2017/10/26 13:38:01 Waiting for state to become: stopped | |
2017/10/26 13:38:01 packer.exe: 2017/10/26 13:38:01 Using 2s as polling delay (change with AWS_POLL_DELAY_SECONDS) | |
2017/10/26 13:38:01 packer.exe: 2017/10/26 13:38:01 Allowing 300s to complete (change with AWS_TIMEOUT_SECONDS) | |
2017/10/26 13:38:47 ui: ==> amazon-ebsvolume: Terminating the source AWS instance...==> amazon-ebsvolume: Terminating the source AWS instance... | |
2017/10/26 13:38:47 packer.exe: 2017/10/26 13:38:47 Waiting for state to become: terminated | |
2017/10/26 13:38:47 packer.exe: 2017/10/26 13:38:47 Using 2s as polling delay (change with AWS_POLL_DELAY_SECONDS) | |
2017/10/26 13:38:47 packer.exe: 2017/10/26 13:38:47 Allowing 300s to complete (change with AWS_TIMEOUT_SECONDS) | |
2017/10/26 13:38:54 ui: ==> amazon-ebsvolume: Deleting temporary security group...==> amazon-ebsvolume: Deleting temporary security group... | |
2017/10/26 13:38:54 ui: ==> amazon-ebsvolume: Deleting temporary keypair...==> amazon-ebsvolume: Deleting temporary keypair... | |
2017/10/26 13:38:54 packer.exe: Build 'amazon-ebsvolume' errored: unexpected EOF | |
==> Some builds didn't complete successfully and had errors: | |
--> amazon-ebsvolume: unexpected EOF | |
==> Builds finished but no artifacts were created. | |
panic: interface conversion: interface {} is nil, not ebsvolume.EbsVolumes | |
2017/10/26 13:38:54 packer.exe: | |
2017/10/26 13:38:54 packer.exe: goroutine 27 [running]: | |
2017/10/26 13:38:54 packer.exe: github.com/hashicorp/packer/builder/amazon/ebsvolume.(*Builder).Run(0xc042422400, 0x311a3a0, 0xc042156300, 0x3111740, 0xc0421500f0, 0x3118d00, 0xc04206c020, 0x80000000018, 0x28, 0x28, ...) | |
2017/10/26 13:38:54 packer.exe: /Users/mwhooker/go/src/github.com/hashicorp/packer/builder/amazon/ebsvolume/builder.go:204 +0x1bed | |
2017/10/26 13:38:54 packer.exe: github.com/hashicorp/packer/packer/rpc.(*BuilderServer).Run(0xc042336820, 0x1, 0xc04214e510, 0x0, 0x0) | |
2017/10/26 13:38:54 packer.exe: /Users/mwhooker/go/src/github.com/hashicorp/packer/packer/rpc/builder.go:93 +0x1e4 | |
2017/10/26 13:38:54 packer.exe: reflect.Value.call(0xc0420ec660, 0xc042154120, 0x13, 0x2086372, 0x4, 0xc0422d3f20, 0x3, 0x3, 0xc042039078, 0xc0423f4fb8, ...) | |
2017/10/26 13:38:54 packer.exe: /usr/local/go/src/reflect/value.go:434 +0x90d | |
2017/10/26 13:38:54 packer.exe: reflect.Value.Call(0xc0420ec660, 0xc042154120, 0x13, 0xc0422d3f20, 0x3, 0x3, 0xc0422d3f60, 0x716dfc, 0xc0423f4f60) | |
2017/10/26 13:38:54 packer.exe: /usr/local/go/src/reflect/value.go:302 +0xab | |
2017/10/26 13:38:54 packer.exe: net/rpc.(*service).call(0xc04215a480, 0xc042152320, 0xc0423141e0, 0xc04215e280, 0xc0420d8c60, 0x1b080a0, 0xc04214e4cc, 0x18a, 0x1aafe00, 0xc04214e510, ...) | |
2017/10/26 13:38:54 packer.exe: /usr/local/go/src/net/rpc/server.go:381 +0x149 | |
2017/10/26 13:38:54 packer.exe: created by net/rpc.(*Server).ServeCodec | |
2017/10/26 13:38:54 packer.exe: /usr/local/go/src/net/rpc/server.go:475 +0x372 | |
2017/10/26 13:38:54 [ERR] yamux: Failed to read header: read tcp 127.0.0.1:50364->127.0.0.1:10000: wsarecv: Une connexion existante a dû être fermée par l’hôte distant. | |
2017/10/26 13:38:54 [INFO] (telemetry) ending amazon-ebsvolume | |
2017/10/26 13:38:54 [INFO] (telemetry) found error: unexpected EOF | |
2017/10/26 13:38:54 ui error: Build 'amazon-ebsvolume' errored: unexpected EOF | |
2017/10/26 13:38:54 Builds completed. Waiting on interrupt barrier... | |
2017/10/26 13:38:54 machine readable: error-count []string{"1"} | |
2017/10/26 13:38:54 ui error: | |
==> Some builds didn't complete successfully and had errors: | |
2017/10/26 13:38:54 machine readable: amazon-ebsvolume,error []string{"unexpected EOF"} | |
2017/10/26 13:38:54 ui error: --> amazon-ebsvolume: unexpected EOF | |
2017/10/26 13:38:54 ui: | |
==> Builds finished but no artifacts were created. | |
2017/10/26 13:38:54 [INFO] (telemetry) Finalizing. | |
2017/10/26 13:38:54 C:\Users\orontee\Tools\packer_1.1.1_windows_amd64\packer.exe: plugin process exited | |
2017/10/26 13:38:55 waiting for all plugin processes to complete... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<powershell> | |
write-output "Running User Data Script" | |
write-host "(host) Running User Data Script" | |
Set-ExecutionPolicy Unrestricted -Scope LocalMachine -Force | |
$ProgressPreference = 'SilentlyContinue' | |
$ErrorActionPreference = 'Stop' | |
# Remove HTTP listener | |
Remove-Item -Path WSMan:\Localhost\listener\listener* -Recurse | |
Set-Item WSMan:\localhost\MaxTimeoutms 1800000 | |
Set-Item WSMan:\localhost\Service\Auth\Basic $true | |
$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="false"}' | |
cmd.exe /c winrm set "winrm/config/client" '@{AllowUnencrypted="false"}' | |
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 net stop winrm | |
cmd.exe /c sc config winrm start= auto | |
cmd.exe /c net start winrm | |
write-output "Allowing WinRM in Host Firewall" | |
write-host "(host) Allowing WinRM in Host Firewall" | |
New-NetFirewallRule -Protocol TCP -LocalPort 5986 -Direction Inbound -Action Allow -DisplayName WinRM | |
</powershell> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment