Skip to content

Instantly share code, notes, and snippets.

@Wasapl
Last active April 17, 2018 22:03
Show Gist options
  • Save Wasapl/9e871d22f88b9bd5380ab65daa6e995d to your computer and use it in GitHub Desktop.
Save Wasapl/9e871d22f88b9bd5380ab65daa6e995d to your computer and use it in GitHub Desktop.
Packer fails to scp script to VM (https://github.com/hashicorp/packer/issues/6151)
2018/04/17 13:26:06 [INFO] Packer version: 1.2.2
2018/04/17 13:26:06 Packer Target OS/Arch: windows amd64
2018/04/17 13:26:06 Built with Go Version: go1.10
2018/04/17 13:26:06 Using internal plugin for amazon-ebs
2018/04/17 13:26:06 Using internal plugin for amazon-ebssurrogate
2018/04/17 13:26:06 Using internal plugin for digitalocean
2018/04/17 13:26:06 Using internal plugin for docker
2018/04/17 13:26:06 Using internal plugin for ncloud
2018/04/17 13:26:06 Using internal plugin for oracle-oci
2018/04/17 13:26:06 Using internal plugin for virtualbox-ovf
2018/04/17 13:26:06 Using internal plugin for cloudstack
2018/04/17 13:26:06 Using internal plugin for googlecompute
2018/04/17 13:26:06 Using internal plugin for lxd
2018/04/17 13:26:06 Using internal plugin for scaleway
2018/04/17 13:26:06 Using internal plugin for alicloud-ecs
2018/04/17 13:26:06 Using internal plugin for parallels-iso
2018/04/17 13:26:06 Using internal plugin for qemu
2018/04/17 13:26:06 Using internal plugin for vmware-iso
2018/04/17 13:26:06 Using internal plugin for hyperv-iso
2018/04/17 13:26:06 Using internal plugin for hyperv-vmcx
2018/04/17 13:26:06 Using internal plugin for lxc
2018/04/17 13:26:06 Using internal plugin for oracle-classic
2018/04/17 13:26:06 Using internal plugin for amazon-ebsvolume
2018/04/17 13:26:06 Using internal plugin for amazon-instance
2018/04/17 13:26:06 Using internal plugin for file
2018/04/17 13:26:06 Using internal plugin for vmware-vmx
2018/04/17 13:26:06 Using internal plugin for azure-arm
2018/04/17 13:26:06 Using internal plugin for oneandone
2018/04/17 13:26:06 Using internal plugin for openstack
2018/04/17 13:26:06 Using internal plugin for profitbricks
2018/04/17 13:26:06 Using internal plugin for virtualbox-iso
2018/04/17 13:26:06 Using internal plugin for amazon-chroot
2018/04/17 13:26:06 Using internal plugin for null
2018/04/17 13:26:06 Using internal plugin for triton
2018/04/17 13:26:06 Using internal plugin for parallels-pvm
2018/04/17 13:26:06 Using internal plugin for ansible-local
2018/04/17 13:26:06 Using internal plugin for puppet-masterless
2018/04/17 13:26:06 Using internal plugin for windows-restart
2018/04/17 13:26:06 Using internal plugin for ansible
2018/04/17 13:26:06 Using internal plugin for powershell
2018/04/17 13:26:06 Using internal plugin for shell-local
2018/04/17 13:26:06 Using internal plugin for converge
2018/04/17 13:26:06 Using internal plugin for chef-solo
2018/04/17 13:26:06 Using internal plugin for puppet-server
2018/04/17 13:26:06 Using internal plugin for chef-client
2018/04/17 13:26:06 Using internal plugin for salt-masterless
2018/04/17 13:26:06 Using internal plugin for shell
2018/04/17 13:26:06 Using internal plugin for windows-shell
2018/04/17 13:26:06 Using internal plugin for file
2018/04/17 13:26:06 Using internal plugin for alicloud-import
2018/04/17 13:26:06 Using internal plugin for amazon-import
2018/04/17 13:26:06 Using internal plugin for artifice
2018/04/17 13:26:06 Using internal plugin for checksum
2018/04/17 13:26:06 Using internal plugin for vsphere
2018/04/17 13:26:06 Using internal plugin for vsphere-template
2018/04/17 13:26:06 Using internal plugin for manifest
2018/04/17 13:26:06 Using internal plugin for vagrant
2018/04/17 13:26:06 Using internal plugin for atlas
2018/04/17 13:26:06 Using internal plugin for docker-save
2018/04/17 13:26:06 Using internal plugin for googlecompute-export
2018/04/17 13:26:06 Using internal plugin for vagrant-cloud
2018/04/17 13:26:06 Using internal plugin for compress
2018/04/17 13:26:06 Using internal plugin for docker-import
2018/04/17 13:26:06 Using internal plugin for docker-push
2018/04/17 13:26:06 Using internal plugin for docker-tag
2018/04/17 13:26:06 Using internal plugin for shell-local
2018/04/17 13:26:06 Attempting to open config file: C:\Users\Administrator\AppData\Roaming\packer.config
2018/04/17 13:26:06 [WARN] Config file doesn't exist: C:\Users\Administrator\AppData\Roaming\packer.config
2018/04/17 13:26:06 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[docker:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-docker cloudstack:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-cloudstack lxd:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxd lxc:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxc azure-arm:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-azure-arm scaleway:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-scaleway hyperv-iso:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-iso virtualbox-iso:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-iso amazon-ebs:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs qemu:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu vmware-iso:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-iso amazon-ebssurrogate:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebssurrogate digitalocean:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-digitalocean oracle-classic:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-classic amazon-instance:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-instance vmware-vmx:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-vmx triton:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-triton oneandone:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oneandone openstack:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-openstack null:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-null ncloud:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-ncloud googlecompute:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-googlecompute hyperv-vmcx:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-vmcx amazon-ebsvolume:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebsvolume file:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-file profitbricks:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-profitbricks parallels-pvm:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-pvm oracle-oci:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-oci virtualbox-ovf:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-ovf alicloud-ecs:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-alicloud-ecs parallels-iso:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-iso amazon-chroot:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-chroot] PostProcessors:map[amazon-import:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-amazon-import googlecompute-export:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-export vagrant-cloud:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant-cloud artifice:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-artifice docker-save:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-save shell-local:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-shell-local alicloud-import:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-alicloud-import vsphere-template:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere-template manifest:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-manifest docker-import:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-import docker-push:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-push docker-tag:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-tag checksum:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-checksum vsphere:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere vagrant:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant atlas:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-atlas compress:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-compress] Provisioners:map[chef-solo:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-solo puppet-server:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-server shell:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell windows-shell:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-shell file:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-file ansible-local:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible-local shell-local:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell-local chef-client:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-client ansible:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible windows-restart:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-restart powershell:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-powershell converge:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-converge puppet-masterless:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-masterless salt-masterless:C:\Users\Administrator\packer-ubuntu\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-salt-masterless]}
2018/04/17 13:26:06 Setting cache directory: C:\Users\Administrator\packer-ubuntu\packer_cache
2018/04/17 13:26:06 Loading builder: hyperv-vmcx
2018/04/17 13:26:06 Plugin could not be found. Checking same directory as executable.
2018/04/17 13:26:06 Current exe path: C:\Users\Administrator\packer-ubuntu\packer.exe
2018/04/17 13:26:06 Creating plugin client for path: C:\Users\Administrator\packer-ubuntu\packer.exe
2018/04/17 13:26:06 Starting plugin: C:\Users\Administrator\packer-ubuntu\packer.exe []string{"C:\\Users\\Administrator\\packer-ubuntu\\packer.exe", "plugin", "packer-builder-hyperv-vmcx"}
2018/04/17 13:26:06 Waiting for RPC address for: C:\Users\Administrator\packer-ubuntu\packer.exe
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 [INFO] Packer version: 1.2.2
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 Packer Target OS/Arch: windows amd64
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 Built with Go Version: go1.10
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 Attempting to open config file: C:\Users\Administrator\AppData\Roaming\packer.config
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 [WARN] Config file doesn't exist: C:\Users\Administrator\AppData\Roaming\packer.config
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 Setting cache directory: C:\Users\Administrator\packer-ubuntu\packer_cache
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 args: []string{"packer-builder-hyperv-vmcx"}
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 Plugin minimum port: 10000
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 Plugin maximum port: 25000
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 Plugin address: tcp 127.0.0.1:10000
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 Waiting for connection...
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 Serving a plugin connection...
2018/04/17 13:26:06 Loading provisioner: file
2018/04/17 13:26:06 Plugin could not be found. Checking same directory as executable.
2018/04/17 13:26:06 Current exe path: C:\Users\Administrator\packer-ubuntu\packer.exe
2018/04/17 13:26:06 Creating plugin client for path: C:\Users\Administrator\packer-ubuntu\packer.exe
2018/04/17 13:26:06 Starting plugin: C:\Users\Administrator\packer-ubuntu\packer.exe []string{"C:\\Users\\Administrator\\packer-ubuntu\\packer.exe", "plugin", "packer-provisioner-file"}
2018/04/17 13:26:06 Waiting for RPC address for: C:\Users\Administrator\packer-ubuntu\packer.exe
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 [INFO] Packer version: 1.2.2
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 Packer Target OS/Arch: windows amd64
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 Built with Go Version: go1.10
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 Attempting to open config file: C:\Users\Administrator\AppData\Roaming\packer.config
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 [WARN] Config file doesn't exist: C:\Users\Administrator\AppData\Roaming\packer.config
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 Setting cache directory: C:\Users\Administrator\packer-ubuntu\packer_cache
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 args: []string{"packer-provisioner-file"}
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 Plugin minimum port: 10000
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 Plugin maximum port: 25000
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 Plugin address: tcp 127.0.0.1:10000
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 Waiting for connection...
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 Serving a plugin connection...
2018/04/17 13:26:06 Loading provisioner: shell
2018/04/17 13:26:06 Plugin could not be found. Checking same directory as executable.
2018/04/17 13:26:06 Current exe path: C:\Users\Administrator\packer-ubuntu\packer.exe
2018/04/17 13:26:06 Creating plugin client for path: C:\Users\Administrator\packer-ubuntu\packer.exe
2018/04/17 13:26:06 Starting plugin: C:\Users\Administrator\packer-ubuntu\packer.exe []string{"C:\\Users\\Administrator\\packer-ubuntu\\packer.exe", "plugin", "packer-provisioner-shell"}
2018/04/17 13:26:06 Waiting for RPC address for: C:\Users\Administrator\packer-ubuntu\packer.exe
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 [INFO] Packer version: 1.2.2
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 Packer Target OS/Arch: windows amd64
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 Built with Go Version: go1.10
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 Attempting to open config file: C:\Users\Administrator\AppData\Roaming\packer.config
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 [WARN] Config file doesn't exist: C:\Users\Administrator\AppData\Roaming\packer.config
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 Setting cache directory: C:\Users\Administrator\packer-ubuntu\packer_cache
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 args: []string{"packer-provisioner-shell"}
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 Plugin minimum port: 10000
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 Plugin maximum port: 25000
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 Plugin address: tcp 127.0.0.1:10000
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 Waiting for connection...
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 Serving a plugin connection...
2018/04/17 13:26:06 Loading provisioner: shell
2018/04/17 13:26:06 Plugin could not be found. Checking same directory as executable.
2018/04/17 13:26:06 Current exe path: C:\Users\Administrator\packer-ubuntu\packer.exe
2018/04/17 13:26:06 Creating plugin client for path: C:\Users\Administrator\packer-ubuntu\packer.exe
2018/04/17 13:26:06 Starting plugin: C:\Users\Administrator\packer-ubuntu\packer.exe []string{"C:\\Users\\Administrator\\packer-ubuntu\\packer.exe", "plugin", "packer-provisioner-shell"}
2018/04/17 13:26:06 Waiting for RPC address for: C:\Users\Administrator\packer-ubuntu\packer.exe
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 [INFO] Packer version: 1.2.2
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 Packer Target OS/Arch: windows amd64
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 Built with Go Version: go1.10
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 Attempting to open config file: C:\Users\Administrator\AppData\Roaming\packer.config
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 [WARN] Config file doesn't exist: C:\Users\Administrator\AppData\Roaming\packer.config
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 Setting cache directory: C:\Users\Administrator\packer-ubuntu\packer_cache
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 args: []string{"packer-provisioner-shell"}
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 Plugin minimum port: 10000
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 Plugin maximum port: 25000
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 Plugin address: tcp 127.0.0.1:10000
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 Waiting for connection...
2018/04/17 13:26:06 packer.exe: 2018/04/17 13:26:06 Serving a plugin connection...
2018/04/17 13:26:06 Loading provisioner: shell
2018/04/17 13:26:06 Plugin could not be found. Checking same directory as executable.
2018/04/17 13:26:06 Current exe path: C:\Users\Administrator\packer-ubuntu\packer.exe
2018/04/17 13:26:06 Creating plugin client for path: C:\Users\Administrator\packer-ubuntu\packer.exe
2018/04/17 13:26:06 Starting plugin: C:\Users\Administrator\packer-ubuntu\packer.exe []string{"C:\\Users\\Administrator\\packer-ubuntu\\packer.exe", "plugin", "packer-provisioner-shell"}
2018/04/17 13:26:06 Waiting for RPC address for: C:\Users\Administrator\packer-ubuntu\packer.exe
2018/04/17 13:26:07 packer.exe: 2018/04/17 13:26:07 [INFO] Packer version: 1.2.2
2018/04/17 13:26:07 packer.exe: 2018/04/17 13:26:07 Packer Target OS/Arch: windows amd64
2018/04/17 13:26:07 packer.exe: 2018/04/17 13:26:07 Built with Go Version: go1.10
2018/04/17 13:26:07 packer.exe: 2018/04/17 13:26:07 Attempting to open config file: C:\Users\Administrator\AppData\Roaming\packer.config
2018/04/17 13:26:07 packer.exe: 2018/04/17 13:26:07 [WARN] Config file doesn't exist: C:\Users\Administrator\AppData\Roaming\packer.config
2018/04/17 13:26:07 packer.exe: 2018/04/17 13:26:07 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2018/04/17 13:26:07 packer.exe: 2018/04/17 13:26:07 Setting cache directory: C:\Users\Administrator\packer-ubuntu\packer_cache
2018/04/17 13:26:07 packer.exe: 2018/04/17 13:26:07 args: []string{"packer-provisioner-shell"}
2018/04/17 13:26:07 packer.exe: 2018/04/17 13:26:07 Plugin minimum port: 10000
2018/04/17 13:26:07 packer.exe: 2018/04/17 13:26:07 Plugin maximum port: 25000
2018/04/17 13:26:07 packer.exe: 2018/04/17 13:26:07 Plugin address: tcp 127.0.0.1:10000
2018/04/17 13:26:07 packer.exe: 2018/04/17 13:26:07 Waiting for connection...
2018/04/17 13:26:07 ui: hyperv-vmcx output will be in this color.
2018/04/17 13:26:07 ui:
2018/04/17 13:26:07 Build debug mode: false
2018/04/17 13:26:07 Force build: false
2018/04/17 13:26:07 On error: ask
2018/04/17 13:26:07 Preparing build: hyperv-vmcx
2018/04/17 13:26:07 packer.exe: 2018/04/17 13:26:07 Serving a plugin connection...
2018/04/17 13:26:07 packer.exe: 2018/04/17 13:26:07 RamSize: 2048
2018/04/17 13:26:07 packer.exe: 2018/04/17 13:26:07 VMName: packer-hyperv-vmcx
2018/04/17 13:26:12 packer.exe: 2018/04/17 13:26:12 Using switch External network
2018/04/17 13:26:12 packer.exe: 2018/04/17 13:26:12 SwitchName: External network
2018/04/17 13:26:12 Waiting on builds to complete...
2018/04/17 13:26:12 Starting build run: hyperv-vmcx
2018/04/17 13:26:12 Running builder: hyperv-vmcx
2018/04/17 13:26:12 [INFO] (telemetry) Starting builder hyperv-vmcx
2018/04/17 13:26:12 packer.exe: 2018/04/17 13:26:12 Enter method: verifyPSVersion
2018/04/17 13:26:13 packer.exe: 2018/04/17 13:26:13 $host.version.Major output: 5
2018/04/17 13:26:13 packer.exe: 2018/04/17 13:26:13 Enter method: verifyPSHypervModule
2018/04/17 13:26:13 packer.exe: 2018/04/17 13:26:13 Enter method: verifyHypervPermissions
2018/04/17 13:26:14 ui: ==> hyperv-vmcx: Creating temporary directory...
2018/04/17 13:26:14 packer.exe: 2018/04/17 13:26:14 No floppy files specified. Floppy disk will not be made.
2018/04/17 13:26:14 packer.exe: 2018/04/17 13:26:14 Trying port: 8378
2018/04/17 13:26:14 ui: ==> hyperv-vmcx: Starting HTTP server on port 8378
2018/04/17 13:26:14 ui: ==> hyperv-vmcx: Creating switch 'External network' if required...
2018/04/17 13:26:15 ui: ==> hyperv-vmcx: switch 'External network' already exists. Will not delete on cleanup...
2018/04/17 13:26:15 ui: ==> hyperv-vmcx: Cloning virtual machine...
2018/04/17 13:26:15 packer.exe: 2018/04/17 13:26:15 No existing virtual harddrive, not attaching.
2018/04/17 13:26:55 ui: ==> hyperv-vmcx: Enabling Integration Service...
2018/04/17 13:26:56 packer.exe: 2018/04/17 13:26:56 No dvd disk, not attaching.
2018/04/17 13:26:56 ui: ==> hyperv-vmcx: Skipping mounting Integration Services Setup Disk...
2018/04/17 13:26:56 ui: ==> hyperv-vmcx: Mounting secondary DVD images...
2018/04/17 13:26:56 ui: ==> hyperv-vmcx: Configuring vlan...
2018/04/17 13:26:56 ui: ==> hyperv-vmcx: Starting the virtual machine...
2018/04/17 13:26:57 ui: ==> hyperv-vmcx: Waiting 10s for boot...
2018/04/17 13:27:09 ui: ==> hyperv-vmcx: Host IP for the HyperV machine: 192.168.0.8
2018/04/17 13:27:09 ui: ==> hyperv-vmcx: Typing the boot command...
2018/04/17 13:27:09 packer.exe: 2018/04/17 13:27:09 [INFO] Waiting for SSH, up to timeout: 1h0m0s
2018/04/17 13:27:09 ui: ==> hyperv-vmcx: Waiting for SSH to become available...
2018/04/17 13:27:21 packer.exe: 2018/04/17 13:27:21 [INFO] Attempting SSH connection...
2018/04/17 13:27:21 packer.exe: 2018/04/17 13:27:21 [DEBUG] reconnecting to TCP connection for SSH
2018/04/17 13:27:21 packer.exe: 2018/04/17 13:27:21 [DEBUG] handshaking with SSH
2018/04/17 13:27:21 packer.exe: 2018/04/17 13:27:21 [DEBUG] handshake complete!
2018/04/17 13:27:21 packer.exe: 2018/04/17 13:27:21 [INFO] no local agent socket, will not connect agent
2018/04/17 13:27:21 ui: ==> hyperv-vmcx: Connected to SSH!
2018/04/17 13:27:21 packer.exe: 2018/04/17 13:27:21 Running the provision hook
2018/04/17 13:27:21 [INFO] (telemetry) Starting provisioner file
2018/04/17 13:27:21 ui: ==> hyperv-vmcx: Uploading scripts/common.sh => /home/vagrant/
2018/04/17 13:27:21 packer.exe: 2018/04/17 13:27:21 [INFO] 32979 bytes written for 'uploadData'
2018/04/17 13:27:21 packer.exe: 2018/04/17 13:27:21 [DEBUG] Opening new ssh session
2018/04/17 13:27:21 [INFO] 32979 bytes written for 'uploadData'
2018/04/17 13:27:22 packer.exe: 2018/04/17 13:27:22 [DEBUG] starting remote command: test -d "\home\vagrant\common.sh"
2018/04/17 13:27:22 packer.exe: 2018/04/17 13:27:22 [ERROR] Remote command exited with '1': test -d "\home\vagrant\common.sh"
2018/04/17 13:27:22 packer.exe: 2018/04/17 13:27:22 [DEBUG] Opening new ssh session
2018/04/17 13:27:22 packer.exe: 2018/04/17 13:27:22 [DEBUG] Starting remote scp process: scp -vt /home/vagrant
2018/04/17 13:27:22 packer.exe: 2018/04/17 13:27:22 [DEBUG] Started SCP session, beginning transfers...
2018/04/17 13:27:22 packer.exe: 2018/04/17 13:27:22 [DEBUG] scp: Uploading common.sh: perms=C0666 size=32979
2018/04/17 13:27:22 packer.exe: 2018/04/17 13:27:22 [DEBUG] SCP session complete, closing stdin pipe.
2018/04/17 13:27:22 packer.exe: 2018/04/17 13:27:22 [DEBUG] Waiting for SSH session to complete.
2018/04/17 13:27:22 packer.exe: 2018/04/17 13:27:22 [DEBUG] scp stderr (length 28): Sink: C0666 32979 common.sh
2018/04/17 13:27:22 [INFO] (telemetry) ending file
2018/04/17 13:27:22 [INFO] (telemetry) Starting provisioner shell
2018/04/17 13:27:22 ui: ==> hyperv-vmcx: Provisioning with shell script: scripts/basicconfig.sh
2018/04/17 13:27:22 packer.exe: 2018/04/17 13:27:22 Opening scripts/basicconfig.sh for reading
2018/04/17 13:27:22 packer.exe: 2018/04/17 13:27:22 [DEBUG] Opening new ssh session
2018/04/17 13:27:22 [INFO] 3568 bytes written for 'uploadData'
2018/04/17 13:27:22 packer.exe: 2018/04/17 13:27:22 [INFO] 3568 bytes written for 'uploadData'
2018/04/17 13:27:22 packer.exe: 2018/04/17 13:27:22 [DEBUG] starting remote command: test -d "/tmp/script_3322.sh"
2018/04/17 13:27:22 packer.exe: 2018/04/17 13:27:22 [ERROR] Remote command exited with '1': test -d "/tmp/script_3322.sh"
2018/04/17 13:27:22 packer.exe: 2018/04/17 13:27:22 [DEBUG] Opening new ssh session
2018/04/17 13:27:22 packer.exe: 2018/04/17 13:27:22 [DEBUG] Starting remote scp process: scp -vt /tmp
2018/04/17 13:27:22 packer.exe: 2018/04/17 13:27:22 [DEBUG] Started SCP session, beginning transfers...
2018/04/17 13:27:22 packer.exe: 2018/04/17 13:27:22 [DEBUG] scp: Uploading script_3322.sh: perms=C0666 size=3759
2018/04/17 13:27:22 packer.exe: 2018/04/17 13:27:22 [DEBUG] SCP session complete, closing stdin pipe.
2018/04/17 13:27:22 packer.exe: 2018/04/17 13:27:22 [DEBUG] Waiting for SSH session to complete.
2018/04/17 13:27:22 packer.exe: 2018/04/17 13:27:22 [DEBUG] non-zero exit status: 1
2018/04/17 13:27:22 packer.exe: 2018/04/17 13:27:22 [DEBUG] scp output: <NUL><SOH> scp: Broken pipe
2018/04/17 13:27:22 packer.exe: 2018/04/17 13:27:22 Retryable error: Error uploading script: Process exited with status 1
2018/04/17 13:27:24 packer.exe: 2018/04/17 13:27:24 [DEBUG] Opening new ssh session
2018/04/17 13:27:24 packer.exe: 2018/04/17 13:27:24 [DEBUG] starting remote command: test -d "/tmp/script_3322.sh"
2018/04/17 13:27:24 packer.exe: 2018/04/17 13:27:24 [INFO] 3568 bytes written for 'uploadData'
2018/04/17 13:27:24 [INFO] 3568 bytes written for 'uploadData'
2018/04/17 13:27:24 packer.exe: 2018/04/17 13:27:24 [ERROR] Remote command exited with '1': test -d "/tmp/script_3322.sh"
2018/04/17 13:27:24 packer.exe: 2018/04/17 13:27:24 [DEBUG] Opening new ssh session
2018/04/17 13:27:24 packer.exe: 2018/04/17 13:27:24 [DEBUG] Starting remote scp process: scp -vt /tmp
2018/04/17 13:27:24 packer.exe: 2018/04/17 13:27:24 [DEBUG] Started SCP session, beginning transfers...
2018/04/17 13:27:24 packer.exe: 2018/04/17 13:27:24 [DEBUG] scp: Uploading script_3322.sh: perms=C0666 size=3759
2018/04/17 13:27:24 packer.exe: 2018/04/17 13:27:24 [DEBUG] SCP session complete, closing stdin pipe.
2018/04/17 13:27:24 packer.exe: 2018/04/17 13:27:24 [DEBUG] Waiting for SSH session to complete.
2018/04/17 13:27:24 packer.exe: 2018/04/17 13:27:24 [DEBUG] non-zero exit status: 1
2018/04/17 13:27:24 packer.exe: 2018/04/17 13:27:24 [DEBUG] scp output: <NUL><SOH> scp: Broken pipe
2018/04/17 13:27:24 packer.exe: 2018/04/17 13:27:24 Retryable error: Error uploading script: Process exited with status 1
[REST ATTEMPTS SKIPPED]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment