Skip to content

Instantly share code, notes, and snippets.

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 ruzickap/6d76a30f4d7578b1a87b8723f5068211 to your computer and use it in GitHub Desktop.
Save ruzickap/6d76a30f4d7578b1a87b8723f5068211 to your computer and use it in GitHub Desktop.
PACKER_LOG=1 packer build template.json
+ export PACKER_LOG=1
+ PACKER_LOG=1
+ /home/ruzickap/bin/packer build -color=false windows-server-2016-eval-ansible.json
2017/04/06 18:50:15 [INFO] Packer version: 1.0.0
2017/04/06 18:50:15 Packer Target OS/Arch: linux amd64
2017/04/06 18:50:15 Built with Go Version: go1.8
2017/04/06 18:50:15 Detected home directory from env var: /home/ruzickap
2017/04/06 18:50:15 Using internal plugin for amazon-ebssurrogate
2017/04/06 18:50:15 Using internal plugin for file
2017/04/06 18:50:15 Using internal plugin for googlecompute
2017/04/06 18:50:15 Using internal plugin for profitbricks
2017/04/06 18:50:15 Using internal plugin for virtualbox-iso
2017/04/06 18:50:15 Using internal plugin for vmware-vmx
2017/04/06 18:50:15 Using internal plugin for amazon-chroot
2017/04/06 18:50:15 Using internal plugin for digitalocean
2017/04/06 18:50:15 Using internal plugin for hyperv-iso
2017/04/06 18:50:15 Using internal plugin for parallels-iso
2017/04/06 18:50:15 Using internal plugin for parallels-pvm
2017/04/06 18:50:15 Using internal plugin for qemu
2017/04/06 18:50:15 Using internal plugin for amazon-ebs
2017/04/06 18:50:15 Using internal plugin for amazon-instance
2017/04/06 18:50:15 Using internal plugin for azure-arm
2017/04/06 18:50:15 Using internal plugin for null
2017/04/06 18:50:15 Using internal plugin for oneandone
2017/04/06 18:50:15 Using internal plugin for openstack
2017/04/06 18:50:15 Using internal plugin for virtualbox-ovf
2017/04/06 18:50:15 Using internal plugin for amazon-ebsvolume
2017/04/06 18:50:15 Using internal plugin for cloudstack
2017/04/06 18:50:15 Using internal plugin for docker
2017/04/06 18:50:15 Using internal plugin for triton
2017/04/06 18:50:15 Using internal plugin for vmware-iso
2017/04/06 18:50:15 Using internal plugin for ansible
2017/04/06 18:50:15 Using internal plugin for chef-solo
2017/04/06 18:50:15 Using internal plugin for puppet-server
2017/04/06 18:50:15 Using internal plugin for shell
2017/04/06 18:50:15 Using internal plugin for windows-shell
2017/04/06 18:50:15 Using internal plugin for file
2017/04/06 18:50:15 Using internal plugin for powershell
2017/04/06 18:50:15 Using internal plugin for puppet-masterless
2017/04/06 18:50:15 Using internal plugin for salt-masterless
2017/04/06 18:50:15 Using internal plugin for windows-restart
2017/04/06 18:50:15 Using internal plugin for ansible-local
2017/04/06 18:50:15 Using internal plugin for chef-client
2017/04/06 18:50:15 Using internal plugin for converge
2017/04/06 18:50:15 Using internal plugin for shell-local
2017/04/06 18:50:15 Using internal plugin for docker-push
2017/04/06 18:50:15 Using internal plugin for docker-save
2017/04/06 18:50:15 Using internal plugin for docker-tag
2017/04/06 18:50:15 Using internal plugin for shell-local
2017/04/06 18:50:15 Using internal plugin for vagrant
2017/04/06 18:50:15 Using internal plugin for docker-import
2017/04/06 18:50:15 Using internal plugin for vagrant-cloud
2017/04/06 18:50:15 Using internal plugin for vsphere
2017/04/06 18:50:15 Using internal plugin for amazon-import
2017/04/06 18:50:15 Using internal plugin for atlas
2017/04/06 18:50:15 Using internal plugin for checksum
2017/04/06 18:50:15 Using internal plugin for compress
2017/04/06 18:50:15 Using internal plugin for googlecompute-export
2017/04/06 18:50:15 Using internal plugin for manifest
2017/04/06 18:50:15 Using internal plugin for artifice
2017/04/06 18:50:15 Detected home directory from env var: /home/ruzickap
2017/04/06 18:50:15 Attempting to open config file: /home/ruzickap/.packerconfig
2017/04/06 18:50:15 [WARN] Config file doesn't exist: /home/ruzickap/.packerconfig
2017/04/06 18:50:15 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[profitbricks:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-profitbricks digitalocean:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-digitalocean amazon-ebsvolume:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebsvolume cloudstack:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-cloudstack docker:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-docker parallels-iso:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-iso oneandone:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oneandone virtualbox-ovf:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-ovf vmware-vmx:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-vmx amazon-chroot:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-chroot hyperv-iso:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-iso parallels-pvm:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-pvm qemu:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu amazon-ebssurrogate:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebssurrogate file:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-file googlecompute:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-googlecompute amazon-instance:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-instance null:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-null triton:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-triton openstack:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-openstack vmware-iso:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-iso virtualbox-iso:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-iso amazon-ebs:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs azure-arm:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-azure-arm] PostProcessors:map[googlecompute-export:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-export docker-push:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-push docker-save:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-save shell-local:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-shell-local docker-import:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-import manifest:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-manifest vsphere:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere atlas:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-atlas compress:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-compress artifice:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-artifice checksum:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-checksum docker-tag:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-tag vagrant:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant vagrant-cloud:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant-cloud amazon-import:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-amazon-import] Provisioners:map[windows-restart:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-restart shell:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell puppet-masterless:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-masterless windows-shell:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-shell file:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-file powershell:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-powershell ansible-local:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible-local chef-solo:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-solo puppet-server:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-server chef-client:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-client ansible:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible salt-masterless:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-salt-masterless converge:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-converge shell-local:/home/ruzickap/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell-local]}
2017/04/06 18:50:15 Setting cache directory: /home/ruzickap/data/github/packer-templates/packer_winrm_ansible/packer_cache
2017/04/06 18:50:15 Detected home directory from env var: /home/ruzickap
2017/04/06 18:50:15 Loading builder: qemu
2017/04/06 18:50:15 Plugin could not be found. Checking same directory as executable.
2017/04/06 18:50:15 Current exe path: /home/ruzickap/bin/packer
2017/04/06 18:50:15 Creating plugin client for path: /home/ruzickap/bin/packer
2017/04/06 18:50:15 Starting plugin: /home/ruzickap/bin/packer []string{"/home/ruzickap/bin/packer", "plugin", "packer-builder-qemu"}
2017/04/06 18:50:15 Waiting for RPC address for: /home/ruzickap/bin/packer
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 [INFO] Packer version: 1.0.0
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 Packer Target OS/Arch: linux amd64
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 Built with Go Version: go1.8
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 Detected home directory from env var: /home/ruzickap
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 Attempting to open config file: /home/ruzickap/.packerconfig
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 [WARN] Config file doesn't exist: /home/ruzickap/.packerconfig
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 Setting cache directory: /home/ruzickap/data/github/packer-templates/packer_winrm_ansible/packer_cache
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 args: []string{"packer-builder-qemu"}
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 Plugin minimum port: 10000
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 Plugin maximum port: 25000
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 Plugin address: unix /tmp/packer-plugin703796718
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 Detected home directory from env var: /home/ruzickap
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 Waiting for connection...
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 Serving a plugin connection...
2017/04/06 18:50:15 Loading provisioner: ansible
2017/04/06 18:50:15 Plugin could not be found. Checking same directory as executable.
2017/04/06 18:50:15 Current exe path: /home/ruzickap/bin/packer
2017/04/06 18:50:15 Creating plugin client for path: /home/ruzickap/bin/packer
2017/04/06 18:50:15 Starting plugin: /home/ruzickap/bin/packer []string{"/home/ruzickap/bin/packer", "plugin", "packer-provisioner-ansible"}
2017/04/06 18:50:15 Waiting for RPC address for: /home/ruzickap/bin/packer
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 [INFO] Packer version: 1.0.0
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 Packer Target OS/Arch: linux amd64
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 Built with Go Version: go1.8
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 Detected home directory from env var: /home/ruzickap
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 Attempting to open config file: /home/ruzickap/.packerconfig
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 [WARN] Config file doesn't exist: /home/ruzickap/.packerconfig
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 Setting cache directory: /home/ruzickap/data/github/packer-templates/packer_winrm_ansible/packer_cache
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 args: []string{"packer-provisioner-ansible"}
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 Plugin minimum port: 10000
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 Plugin maximum port: 25000
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 Detected home directory from env var: /home/ruzickap
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 Plugin address: unix /tmp/packer-plugin178488366
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 Waiting for connection...
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 Serving a plugin connection...
2017/04/06 18:50:15 Loading post-processor: vagrant
2017/04/06 18:50:15 Plugin could not be found. Checking same directory as executable.
2017/04/06 18:50:15 Current exe path: /home/ruzickap/bin/packer
2017/04/06 18:50:15 Creating plugin client for path: /home/ruzickap/bin/packer
2017/04/06 18:50:15 Starting plugin: /home/ruzickap/bin/packer []string{"/home/ruzickap/bin/packer", "plugin", "packer-post-processor-vagrant"}
2017/04/06 18:50:15 Waiting for RPC address for: /home/ruzickap/bin/packer
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 [INFO] Packer version: 1.0.0
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 Packer Target OS/Arch: linux amd64
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 Built with Go Version: go1.8
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 Detected home directory from env var: /home/ruzickap
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 Attempting to open config file: /home/ruzickap/.packerconfig
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 [WARN] Config file doesn't exist: /home/ruzickap/.packerconfig
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 Setting cache directory: /home/ruzickap/data/github/packer-templates/packer_winrm_ansible/packer_cache
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 args: []string{"packer-post-processor-vagrant"}
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 Plugin minimum port: 10000
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 Plugin maximum port: 25000
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 Detected home directory from env var: /home/ruzickap
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 Plugin address: unix /tmp/packer-plugin134369340
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 Waiting for connection...
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 Serving a plugin connection...
2017/04/06 18:50:15 Build debug mode: false
2017/04/06 18:50:15 Force build: false
2017/04/06 18:50:15 On error:
2017/04/06 18:50:15 Preparing build: windows-server-2016-eval
2017/04/06 18:50:15 packer: 2017/04/06 18:50:15 use detected accelerator: kvm
2017/04/06 18:50:16 packer: 2017/04/06 18:50:16 ansible-playbook version: 2.2.1.0
2017/04/06 18:50:16 Waiting on builds to complete...
2017/04/06 18:50:16 Starting build run: windows-server-2016-eval
2017/04/06 18:50:16 Running builder: qemu
2017/04/06 18:50:16 packer: 2017/04/06 18:50:16 Qemu path: /usr/bin/qemu-system-x86_64, Qemu Image page: /usr/bin/qemu-img
2017/04/06 18:50:16 ui: ==> windows-server-2016-eval: Downloading or copying ISO
==> windows-server-2016-eval: Downloading or copying ISO
2017/04/06 18:50:16 ui: windows-server-2016-eval: Downloading or copying: http://care.dlservice.microsoft.com/dl/download/1/4/9/149D5452-9B29-4274-B6B3-5361DBDA30BC/14393.0.161119-1705.RS1_REFRESH_SERVER_EVAL_X64FRE_EN-US.ISO
2017/04/06 18:50:16 packer: 2017/04/06 18:50:16 Acquiring lock to download: http://care.dlservice.microsoft.com/dl/download/1/4/9/149D5452-9B29-4274-B6B3-5361DBDA30BC/14393.0.161119-1705.RS1_REFRESH_SERVER_EVAL_X64FRE_EN-US.ISO
windows-server-2016-eval: Downloading or copying: http://care.dlservice.microsoft.com/dl/download/1/4/9/149D5452-9B29-4274-B6B3-5361DBDA30BC/14393.0.161119-1705.RS1_REFRESH_SERVER_EVAL_X64FRE_EN-US.ISO
2017/04/06 18:50:16 packer: 2017/04/06 18:50:16 Verifying checksum of /home/ruzickap/data/github/packer-templates/packer_winrm_ansible/packer_cache/49f719e23c56a779a991c4b4ad1680b8363918cd0bfd9ac6b52697d78a309855.iso
2017/04/06 18:50:43 packer: 2017/04/06 18:50:43 [DEBUG] Initial checksum matched, no download needed.
2017/04/06 18:50:43 ui: ==> windows-server-2016-eval: Creating floppy disk...
==> windows-server-2016-eval: Creating floppy disk...
2017/04/06 18:50:43 packer: 2017/04/06 18:50:43 Floppy path: /tmp/packer556210805
2017/04/06 18:50:43 packer: 2017/04/06 18:50:43 Initializing block device backed by temporary file
2017/04/06 18:50:43 packer: 2017/04/06 18:50:43 Formatting the block device with a FAT filesystem...
2017/04/06 18:50:43 packer: 2017/04/06 18:50:43 Initializing FAT filesystem on block device
2017/04/06 18:50:43 packer: 2017/04/06 18:50:43 Reading the root directory from the filesystem
2017/04/06 18:50:43 ui: windows-server-2016-eval: Copying files flatly from floppy_files
windows-server-2016-eval: Copying files flatly from floppy_files
2017/04/06 18:50:43 ui: windows-server-2016-eval: Copying file: Autounattend.xml
windows-server-2016-eval: Copying file: Autounattend.xml
2017/04/06 18:50:43 ui: windows-server-2016-eval: Done copying files from floppy_files
windows-server-2016-eval: Done copying files from floppy_files
2017/04/06 18:50:43 ui: windows-server-2016-eval: Collecting paths from floppy_dirs
windows-server-2016-eval: Collecting paths from floppy_dirs
2017/04/06 18:50:43 ui: windows-server-2016-eval: Resulting paths from floppy_dirs : []
windows-server-2016-eval: Resulting paths from floppy_dirs : []
2017/04/06 18:50:43 ui: windows-server-2016-eval: Done copying paths from floppy_dirs
windows-server-2016-eval: Done copying paths from floppy_dirs
2017/04/06 18:50:43 ui: ==> windows-server-2016-eval: Creating hard drive...
==> windows-server-2016-eval: Creating hard drive...
2017/04/06 18:50:43 packer: 2017/04/06 18:50:43 Executing qemu-img: []string{"create", "-f", "qcow2", "output-windows-server-2016-eval/packer-windows-server-2016-eval", "51200M"}
2017/04/06 18:50:43 packer: 2017/04/06 18:50:43 stdout: Formatting 'output-windows-server-2016-eval/packer-windows-server-2016-eval', fmt=qcow2 size=53687091200 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16
2017/04/06 18:50:43 packer: 2017/04/06 18:50:43 stderr:
2017/04/06 18:50:43 packer: 2017/04/06 18:50:43 Looking for available communicator (SSH, WinRM, etc) port between 2222 and 4444
2017/04/06 18:50:43 packer: 2017/04/06 18:50:43 Trying port: 2569
2017/04/06 18:50:43 ui: ==> windows-server-2016-eval: Found port for communicator (SSH, WinRM, etc): 2569.
==> windows-server-2016-eval: Found port for communicator (SSH, WinRM, etc): 2569.
2017/04/06 18:50:43 ui: ==> windows-server-2016-eval: Looking for available port between 5900 and 6000 on 127.0.0.1
2017/04/06 18:50:43 packer: 2017/04/06 18:50:43 Looking for available port between 5900 and 6000 on 127.0.0.1
2017/04/06 18:50:43 packer: 2017/04/06 18:50:43 Trying port: 5911
2017/04/06 18:50:43 packer: 2017/04/06 18:50:43 Found available VNC port: 5911 on IP: 127.0.0.1
==> windows-server-2016-eval: Looking for available port between 5900 and 6000 on 127.0.0.1
2017/04/06 18:50:43 ui: ==> windows-server-2016-eval: Starting VM, booting from CD-ROM
==> windows-server-2016-eval: Starting VM, booting from CD-ROM
2017/04/06 18:50:44 packer: 2017/04/06 18:50:44 Qemu --version output: QEMU emulator version 2.7.1(qemu-2.7.1-4.fc25), Copyright (c) 2003-2016 Fabrice Bellard and the QEMU Project developers
2017/04/06 18:50:44 packer: 2017/04/06 18:50:44 Qemu version: 2.7.1
==> windows-server-2016-eval: Overriding defaults Qemu arguments with QemuArgs...
2017/04/06 18:50:44 ui: ==> windows-server-2016-eval: Overriding defaults Qemu arguments with QemuArgs...
2017/04/06 18:50:44 packer: 2017/04/06 18:50:44 Executing /usr/bin/qemu-system-x86_64: []string{"-device", "e1000,netdev=user.0", "-boot", "once=d", "-name", "packer-windows-server-2016-eval", "-display", "gtk", "-m", "4G", "-smp", "2", "-drive", "file=output-windows-server-2016-eval/packer-windows-server-2016-eval,if=ide,cache=writeback,discard=ignore,format=qcow2", "-machine", "type=pc,accel=kvm", "-vnc", "127.0.0.1:11", "-fda", "/tmp/packer556210805", "-netdev", "user,id=user.0,hostfwd=tcp::2569-:5986", "-cdrom", "/home/ruzickap/data/github/packer-templates/packer_winrm_ansible/packer_cache/49f719e23c56a779a991c4b4ad1680b8363918cd0bfd9ac6b52697d78a309855.iso"}
2017/04/06 18:50:44 packer: 2017/04/06 18:50:44 Started Qemu. Pid: 3163
2017/04/06 18:50:44 packer: 2017/04/06 18:50:44 Qemu stderr: WARNING: Image format was not specified for '/tmp/packer556210805' and probing guessed raw.
2017/04/06 18:50:44 packer: 2017/04/06 18:50:44 Qemu stderr: Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
2017/04/06 18:50:44 packer: 2017/04/06 18:50:44 Qemu stderr: Specify the 'raw' format explicitly to remove the restrictions.
2017/04/06 18:50:46 ui: ==> windows-server-2016-eval: Waiting 10s for boot...
==> windows-server-2016-eval: Waiting 10s for boot...
2017/04/06 18:50:56 ui: ==> windows-server-2016-eval: Connecting to VM via VNC
==> windows-server-2016-eval: Connecting to VM via VNC
2017/04/06 18:50:56 packer: 2017/04/06 18:50:56 Connected to VNC desktop: QEMU (packer-windows-server-2016-eval)
2017/04/06 18:50:56 ui: ==> windows-server-2016-eval: Typing the boot command over VNC...
==> windows-server-2016-eval: Typing the boot command over VNC...
==> windows-server-2016-eval: Waiting for WinRM to become available...
2017/04/06 18:50:56 ui: ==> windows-server-2016-eval: Waiting for WinRM to become available...
2017/04/06 18:50:56 packer: 2017/04/06 18:50:56 Waiting for WinRM, up to timeout: 12h0m0s
2017/04/06 18:51:01 packer: 2017/04/06 18:51:01 [INFO] Attempting WinRM connection...
2017/04/06 18:51:01 packer: 2017/04/06 18:51:01 [DEBUG] connecting to remote shell using WinRM
2017/04/06 18:52:15 packer: 2017/04/06 18:52:15 [ERROR] connection error: unknown error Post https://127.0.0.1:2569/wsman: read tcp 127.0.0.1:41154->127.0.0.1:2569: read: connection reset by peer
2017/04/06 18:52:15 packer: 2017/04/06 18:52:15 [ERROR] WinRM connection err: unknown error Post https://127.0.0.1:2569/wsman: read tcp 127.0.0.1:41154->127.0.0.1:2569: read: connection reset by peer
2017/04/06 18:52:20 packer: 2017/04/06 18:52:20 [INFO] Attempting WinRM connection...
2017/04/06 18:52:20 packer: 2017/04/06 18:52:20 [DEBUG] connecting to remote shell using WinRM
2017/04/06 18:53:35 packer: 2017/04/06 18:53:35 [ERROR] connection error: unknown error Post https://127.0.0.1:2569/wsman: read tcp 127.0.0.1:41156->127.0.0.1:2569: read: connection reset by peer
2017/04/06 18:53:35 packer: 2017/04/06 18:53:35 [ERROR] WinRM connection err: unknown error Post https://127.0.0.1:2569/wsman: read tcp 127.0.0.1:41156->127.0.0.1:2569: read: connection reset by peer
2017/04/06 18:53:40 packer: 2017/04/06 18:53:40 [INFO] Attempting WinRM connection...
2017/04/06 18:53:40 packer: 2017/04/06 18:53:40 [DEBUG] connecting to remote shell using WinRM
2017/04/06 18:54:55 packer: 2017/04/06 18:54:55 [ERROR] connection error: unknown error Post https://127.0.0.1:2569/wsman: read tcp 127.0.0.1:41158->127.0.0.1:2569: read: connection reset by peer
2017/04/06 18:54:55 packer: 2017/04/06 18:54:55 [ERROR] WinRM connection err: unknown error Post https://127.0.0.1:2569/wsman: read tcp 127.0.0.1:41158->127.0.0.1:2569: read: connection reset by peer
2017/04/06 18:55:00 packer: 2017/04/06 18:55:00 [INFO] Attempting WinRM connection...
2017/04/06 18:55:00 packer: 2017/04/06 18:55:00 [DEBUG] connecting to remote shell using WinRM
2017/04/06 18:56:15 packer: 2017/04/06 18:56:15 [ERROR] connection error: unknown error Post https://127.0.0.1:2569/wsman: read tcp 127.0.0.1:41160->127.0.0.1:2569: read: connection reset by peer
2017/04/06 18:56:15 packer: 2017/04/06 18:56:15 [ERROR] WinRM connection err: unknown error Post https://127.0.0.1:2569/wsman: read tcp 127.0.0.1:41160->127.0.0.1:2569: read: connection reset by peer
2017/04/06 18:56:20 packer: 2017/04/06 18:56:20 [INFO] Attempting WinRM connection...
2017/04/06 18:56:20 packer: 2017/04/06 18:56:20 [DEBUG] connecting to remote shell using WinRM
2017/04/06 18:57:35 packer: 2017/04/06 18:57:35 [ERROR] connection error: unknown error Post https://127.0.0.1:2569/wsman: read tcp 127.0.0.1:41264->127.0.0.1:2569: read: connection reset by peer
2017/04/06 18:57:35 packer: 2017/04/06 18:57:35 [ERROR] WinRM connection err: unknown error Post https://127.0.0.1:2569/wsman: read tcp 127.0.0.1:41264->127.0.0.1:2569: read: connection reset by peer
2017/04/06 18:57:40 packer: 2017/04/06 18:57:40 [INFO] Attempting WinRM connection...
2017/04/06 18:57:40 packer: 2017/04/06 18:57:40 [DEBUG] connecting to remote shell using WinRM
2017/04/06 18:58:55 packer: 2017/04/06 18:58:55 [ERROR] connection error: unknown error Post https://127.0.0.1:2569/wsman: read tcp 127.0.0.1:41284->127.0.0.1:2569: read: connection reset by peer
2017/04/06 18:58:55 packer: 2017/04/06 18:58:55 [ERROR] WinRM connection err: unknown error Post https://127.0.0.1:2569/wsman: read tcp 127.0.0.1:41284->127.0.0.1:2569: read: connection reset by peer
2017/04/06 18:59:00 packer: 2017/04/06 18:59:00 [INFO] Attempting WinRM connection...
2017/04/06 18:59:00 packer: 2017/04/06 18:59:00 [DEBUG] connecting to remote shell using WinRM
2017/04/06 19:00:15 packer: 2017/04/06 19:00:15 [ERROR] connection error: unknown error Post https://127.0.0.1:2569/wsman: read tcp 127.0.0.1:41286->127.0.0.1:2569: read: connection reset by peer
2017/04/06 19:00:15 packer: 2017/04/06 19:00:15 [ERROR] WinRM connection err: unknown error Post https://127.0.0.1:2569/wsman: read tcp 127.0.0.1:41286->127.0.0.1:2569: read: connection reset by peer
2017/04/06 19:00:20 packer: 2017/04/06 19:00:20 [INFO] Attempting WinRM connection...
2017/04/06 19:00:20 packer: 2017/04/06 19:00:20 [DEBUG] connecting to remote shell using WinRM
2017/04/06 19:00:29 ui: ==> windows-server-2016-eval: Connected to WinRM!
==> windows-server-2016-eval: Connected to WinRM!
2017/04/06 19:00:29 packer: 2017/04/06 19:00:29 Running the provision hook
2017/04/06 19:00:29 ui: ==> windows-server-2016-eval: Provisioning with Ansible...
==> windows-server-2016-eval: Provisioning with Ansible...
2017/04/06 19:00:29 packer: 2017/04/06 19:00:29 SSH proxy: serving on 127.0.0.1:35455
2017/04/06 19:00:29 packer: 2017/04/06 19:00:29 Executing Ansible: ansible-playbook /home/ruzickap/data/github/packer-templates/packer_winrm_ansible/win.yml -i /tmp/packer-provisioner-ansible586378640 --private-key /tmp/ansible-key502121397 --connection packer --extra-vars ansible_shell_type=powershell ansible_shell_executable=None -vvv
2017/04/06 19:00:30 ui: windows-server-2016-eval: Using /home/ruzickap/.ansible.cfg as config file
windows-server-2016-eval: Using /home/ruzickap/.ansible.cfg as config file
2017/04/06 19:00:30 ui: windows-server-2016-eval:
windows-server-2016-eval:
windows-server-2016-eval: PLAYBOOK: win.yml **************************************************************
2017/04/06 19:00:30 ui: windows-server-2016-eval: PLAYBOOK: win.yml **************************************************************
windows-server-2016-eval: 1 plays in /home/ruzickap/data/github/packer-templates/packer_winrm_ansible/win.yml
2017/04/06 19:00:30 ui: windows-server-2016-eval: 1 plays in /home/ruzickap/data/github/packer-templates/packer_winrm_ansible/win.yml
2017/04/06 19:00:30 ui: windows-server-2016-eval:
windows-server-2016-eval:
windows-server-2016-eval: PLAY [all] *********************************************************************
2017/04/06 19:00:30 ui: windows-server-2016-eval: PLAY [all] *********************************************************************
2017/04/06 19:00:30 ui: windows-server-2016-eval:
windows-server-2016-eval:
2017/04/06 19:00:30 ui: windows-server-2016-eval: TASK [Start NTP service (w32time)] *********************************************
windows-server-2016-eval: TASK [Start NTP service (w32time)] *********************************************
2017/04/06 19:00:30 ui: windows-server-2016-eval: task path: /home/ruzickap/data/github/packer-templates/packer_winrm_ansible/win.yml:6
windows-server-2016-eval: task path: /home/ruzickap/data/github/packer-templates/packer_winrm_ansible/win.yml:6
2017/04/06 19:00:30 ui: windows-server-2016-eval: Using module file /usr/lib/python2.7/site-packages/ansible/modules/core/windows/win_service.ps1
windows-server-2016-eval: Using module file /usr/lib/python2.7/site-packages/ansible/modules/core/windows/win_service.ps1
2017/04/06 19:00:30 ui: windows-server-2016-eval: An exception occurred during task execution. The full traceback is:
2017/04/06 19:00:30 ui: windows-server-2016-eval: Traceback (most recent call last):
windows-server-2016-eval: An exception occurred during task execution. The full traceback is:
windows-server-2016-eval: Traceback (most recent call last):
2017/04/06 19:00:30 ui: windows-server-2016-eval: File "/usr/lib/python2.7/site-packages/ansible/executor/task_executor.py", line 126, in run
windows-server-2016-eval: File "/usr/lib/python2.7/site-packages/ansible/executor/task_executor.py", line 126, in run
2017/04/06 19:00:30 ui: windows-server-2016-eval: res = self._execute()
windows-server-2016-eval: res = self._execute()
2017/04/06 19:00:30 ui: windows-server-2016-eval: File "/usr/lib/python2.7/site-packages/ansible/executor/task_executor.py", line 502, in _execute
windows-server-2016-eval: File "/usr/lib/python2.7/site-packages/ansible/executor/task_executor.py", line 502, in _execute
2017/04/06 19:00:30 ui: windows-server-2016-eval: result = self._handler.run(task_vars=variables)
windows-server-2016-eval: result = self._handler.run(task_vars=variables)
2017/04/06 19:00:30 ui: windows-server-2016-eval: File "/usr/lib/python2.7/site-packages/ansible/plugins/action/normal.py", line 33, in run
windows-server-2016-eval: File "/usr/lib/python2.7/site-packages/ansible/plugins/action/normal.py", line 33, in run
2017/04/06 19:00:30 ui: windows-server-2016-eval: results = merge_hash(results, self._execute_module(tmp=tmp, task_vars=task_vars))
windows-server-2016-eval: results = merge_hash(results, self._execute_module(tmp=tmp, task_vars=task_vars))
2017/04/06 19:00:30 ui: windows-server-2016-eval: File "/usr/lib/python2.7/site-packages/ansible/plugins/action/__init__.py", line 641, in _execute_module
windows-server-2016-eval: File "/usr/lib/python2.7/site-packages/ansible/plugins/action/__init__.py", line 641, in _execute_module
2017/04/06 19:00:30 ui: windows-server-2016-eval: cmd = self._connection._shell.build_module_command(environment_string, shebang, cmd, arg_path=args_file_path, rm_tmp=rm_tmp)
windows-server-2016-eval: cmd = self._connection._shell.build_module_command(environment_string, shebang, cmd, arg_path=args_file_path, rm_tmp=rm_tmp)
2017/04/06 19:00:30 ui: windows-server-2016-eval: File "/usr/lib/python2.7/site-packages/ansible/plugins/shell/powershell.py", line 170, in build_module_command
windows-server-2016-eval: File "/usr/lib/python2.7/site-packages/ansible/plugins/shell/powershell.py", line 170, in build_module_command
2017/04/06 19:00:30 ui: windows-server-2016-eval: if not self._unquote(cmd_parts[0]).lower().endswith('.ps1'):
windows-server-2016-eval: if not self._unquote(cmd_parts[0]).lower().endswith('.ps1'):
2017/04/06 19:00:30 ui: windows-server-2016-eval: IndexError: list index out of range
windows-server-2016-eval: IndexError: list index out of range
2017/04/06 19:00:30 ui: windows-server-2016-eval: fatal: [default]: FAILED! => {
2017/04/06 19:00:30 ui: windows-server-2016-eval: "failed": true,
2017/04/06 19:00:30 ui: windows-server-2016-eval: "msg": "Unexpected failure during module execution.",
2017/04/06 19:00:30 ui: windows-server-2016-eval: "stdout": ""
2017/04/06 19:00:30 ui: windows-server-2016-eval: }
windows-server-2016-eval: fatal: [default]: FAILED! => {
windows-server-2016-eval: "failed": true,
2017/04/06 19:00:30 ui: windows-server-2016-eval:
windows-server-2016-eval: "msg": "Unexpected failure during module execution.",
windows-server-2016-eval: "stdout": ""
windows-server-2016-eval: }
windows-server-2016-eval:
2017/04/06 19:00:30 ui: windows-server-2016-eval: PLAY RECAP *********************************************************************
windows-server-2016-eval: PLAY RECAP *********************************************************************
windows-server-2016-eval: default : ok=0 changed=0 unreachable=0 failed=1
2017/04/06 19:00:30 ui: windows-server-2016-eval: default : ok=0 changed=0 unreachable=0 failed=1
2017/04/06 19:00:30 ui: windows-server-2016-eval:
windows-server-2016-eval:
2017/04/06 19:00:30 packer: 2017/04/06 19:00:30 shutting down the SSH proxy
2017/04/06 19:00:30 packer: 2017/04/06 19:00:30 Deleting floppy disk: /tmp/packer556210805
2017/04/06 19:00:30 ui: ==> windows-server-2016-eval: Deleting output directory...
==> windows-server-2016-eval: Deleting output directory...
2017/04/06 19:00:30 ui error: Build 'windows-server-2016-eval' errored: Error executing Ansible: Non-zero exit status: exit status 2
2017/04/06 19:00:30 Builds completed. Waiting on interrupt barrier...
2017/04/06 19:00:30 machine readable: error-count []string{"1"}
2017/04/06 19:00:30 ui error:
==> Some builds didn't complete successfully and had errors:
2017/04/06 19:00:30 machine readable: windows-server-2016-eval,error []string{"Error executing Ansible: Non-zero exit status: exit status 2"}
2017/04/06 19:00:30 ui error: --> windows-server-2016-eval: Error executing Ansible: Non-zero exit status: exit status 2
2017/04/06 19:00:30 ui:
==> Builds finished but no artifacts were created.
Build 'windows-server-2016-eval' errored: Error executing Ansible: Non-zero exit status: exit status 2
==> Some builds didn't complete successfully and had errors:
2017/04/06 19:00:30 waiting for all plugin processes to complete...
--> windows-server-2016-eval: Error executing Ansible: Non-zero exit status: exit status 2
==> Builds finished but no artifacts were created.
2017/04/06 19:00:30 /home/ruzickap/bin/packer: plugin process exited
2017/04/06 19:00:30 /home/ruzickap/bin/packer: plugin process exited
2017/04/06 19:00:30 /home/ruzickap/bin/packer: plugin process exited
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment