Skip to content

Instantly share code, notes, and snippets.

@rezamt
Created December 18, 2018 13:16
Show Gist options
  • Save rezamt/31551f791b4ef4ae1b2cbc3ef0f36696 to your computer and use it in GitHub Desktop.
Save rezamt/31551f791b4ef4ae1b2cbc3ef0f36696 to your computer and use it in GitHub Desktop.
windows git:(master) ✗ packer build -var "disk_size=61440" -var "password=$password" windows.json
2018/12/18 23:47:56 [INFO] Packer version: 1.3.2
2018/12/18 23:47:56 Packer Target OS/Arch: darwin amd64
2018/12/18 23:47:56 Built with Go Version: go1.11.1
2018/12/18 23:47:56 Detected home directory from env var: /Users/reza
2018/12/18 23:47:56 Using internal plugin for alicloud-ecs
2018/12/18 23:47:56 Using internal plugin for qemu
2018/12/18 23:47:56 Using internal plugin for scaleway
2018/12/18 23:47:56 Using internal plugin for openstack
2018/12/18 23:47:56 Using internal plugin for docker
2018/12/18 23:47:56 Using internal plugin for hyperv-iso
2018/12/18 23:47:56 Using internal plugin for lxc
2018/12/18 23:47:56 Using internal plugin for ncloud
2018/12/18 23:47:56 Using internal plugin for vmware-vmx
2018/12/18 23:47:56 Using internal plugin for amazon-ebsvolume
2018/12/18 23:47:56 Using internal plugin for azure-arm
2018/12/18 23:47:56 Using internal plugin for cloudstack
2018/12/18 23:47:56 Using internal plugin for parallels-pvm
2018/12/18 23:47:56 Using internal plugin for profitbricks
2018/12/18 23:47:56 Using internal plugin for amazon-chroot
2018/12/18 23:47:56 Using internal plugin for lxd
2018/12/18 23:47:56 Using internal plugin for oracle-classic
2018/12/18 23:47:56 Using internal plugin for oneandone
2018/12/18 23:47:56 Using internal plugin for virtualbox-ovf
2018/12/18 23:47:56 Using internal plugin for oracle-oci
2018/12/18 23:47:56 Using internal plugin for hyperv-vmcx
2018/12/18 23:47:56 Using internal plugin for amazon-ebssurrogate
2018/12/18 23:47:56 Using internal plugin for digitalocean
2018/12/18 23:47:56 Using internal plugin for hcloud
2018/12/18 23:47:56 Using internal plugin for googlecompute
2018/12/18 23:47:56 Using internal plugin for null
2018/12/18 23:47:56 Using internal plugin for parallels-iso
2018/12/18 23:47:56 Using internal plugin for triton
2018/12/18 23:47:56 Using internal plugin for virtualbox-iso
2018/12/18 23:47:56 Using internal plugin for amazon-ebs
2018/12/18 23:47:56 Using internal plugin for amazon-instance
2018/12/18 23:47:56 Using internal plugin for file
2018/12/18 23:47:56 Using internal plugin for vmware-iso
2018/12/18 23:47:56 Using internal plugin for chef-client
2018/12/18 23:47:56 Using internal plugin for chef-solo
2018/12/18 23:47:56 Using internal plugin for shell
2018/12/18 23:47:56 Using internal plugin for powershell
2018/12/18 23:47:56 Using internal plugin for puppet-masterless
2018/12/18 23:47:56 Using internal plugin for puppet-server
2018/12/18 23:47:56 Using internal plugin for salt-masterless
2018/12/18 23:47:56 Using internal plugin for windows-restart
2018/12/18 23:47:56 Using internal plugin for ansible
2018/12/18 23:47:56 Using internal plugin for ansible-local
2018/12/18 23:47:56 Using internal plugin for converge
2018/12/18 23:47:56 Using internal plugin for windows-shell
2018/12/18 23:47:56 Using internal plugin for file
2018/12/18 23:47:56 Using internal plugin for shell-local
2018/12/18 23:47:56 Using internal plugin for docker-save
2018/12/18 23:47:56 Using internal plugin for docker-tag
2018/12/18 23:47:56 Using internal plugin for vagrant
2018/12/18 23:47:56 Using internal plugin for vagrant-cloud
2018/12/18 23:47:56 Using internal plugin for alicloud-import
2018/12/18 23:47:56 Using internal plugin for artifice
2018/12/18 23:47:56 Using internal plugin for compress
2018/12/18 23:47:56 Using internal plugin for docker-push
2018/12/18 23:47:56 Using internal plugin for vsphere
2018/12/18 23:47:56 Using internal plugin for vsphere-template
2018/12/18 23:47:56 Using internal plugin for amazon-import
2018/12/18 23:47:56 Using internal plugin for docker-import
2018/12/18 23:47:56 Using internal plugin for shell-local
2018/12/18 23:47:56 Using internal plugin for googlecompute-export
2018/12/18 23:47:56 Using internal plugin for checksum
2018/12/18 23:47:56 Using internal plugin for googlecompute-import
2018/12/18 23:47:56 Using internal plugin for manifest
2018/12/18 23:47:56 Detected home directory from env var: /Users/reza
2018/12/18 23:47:56 Attempting to open config file: /Users/reza/.packerconfig
2018/12/18 23:47:56 [WARN] Config file doesn't exist: /Users/reza/.packerconfig
2018/12/18 23:47:56 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[hyperv-vmcx:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-vmcx parallels-pvm:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-pvm profitbricks:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-profitbricks virtualbox-ovf:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-ovf amazon-ebssurrogate:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebssurrogate hcloud:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hcloud googlecompute:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-googlecompute null:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-null virtualbox-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-iso amazon-ebs:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs file:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-file qemu:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu lxc:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxc ncloud:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-ncloud vmware-vmx:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-vmx amazon-ebsvolume:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebsvolume hyperv-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-iso azure-arm:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-azure-arm lxd:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxd vmware-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-iso scaleway:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-scaleway openstack:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-openstack oracle-classic:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-classic parallels-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-iso triton:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-triton amazon-instance:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-instance docker:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-docker amazon-chroot:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-chroot oneandone:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oneandone oracle-oci:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-oci digitalocean:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-digitalocean alicloud-ecs:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-alicloud-ecs cloudstack:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-cloudstack] PostProcessors:map[docker-import:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-import shell-local:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-shell-local checksum:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-checksum compress:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-compress vsphere:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere docker-push:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-push docker-save:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-save artifice:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-artifice googlecompute-export:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-export googlecompute-import:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-import manifest:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-manifest vagrant:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant vsphere-template:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere-template alicloud-import:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-alicloud-import amazon-import:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-amazon-import docker-tag:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-tag vagrant-cloud:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant-cloud] Provisioners:map[shell:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell ansible-local:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible-local converge:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-converge chef-client:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-client puppet-masterless:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-masterless salt-masterless:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-salt-masterless shell-local:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell-local powershell:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-powershell puppet-server:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-server ansible:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible file:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-file chef-solo:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-solo windows-restart:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-restart windows-shell:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-shell]}
2018/12/18 23:47:56 Detected home directory from env var: /Users/reza
2018/12/18 23:47:56 Setting cache directory: /Users/reza/projects/packer-qemu-templates/windows/packer_cache
2018/12/18 23:47:56 Detected home directory from env var: /Users/reza
2018/12/18 23:47:56 Loading builder: qemu
2018/12/18 23:47:56 Plugin could not be found. Checking same directory as executable.
2018/12/18 23:47:56 Current exe path: /usr/local/bin/packer
2018/12/18 23:47:56 Creating plugin client for path: /usr/local/bin/packer
2018/12/18 23:47:56 Starting plugin: /usr/local/bin/packer []string{"/usr/local/bin/packer", "plugin", "packer-builder-qemu"}
2018/12/18 23:47:56 Waiting for RPC address for: /usr/local/bin/packer
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 [INFO] Packer version: 1.3.2
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 Packer Target OS/Arch: darwin amd64
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 Built with Go Version: go1.11.1
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 Detected home directory from env var: /Users/reza
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 Attempting to open config file: /Users/reza/.packerconfig
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 [WARN] Config file doesn't exist: /Users/reza/.packerconfig
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 Detected home directory from env var: /Users/reza
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 Setting cache directory: /Users/reza/projects/packer-qemu-templates/windows/packer_cache
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 Detected home directory from env var: /Users/reza
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 args: []string{"packer-builder-qemu"}
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 Plugin minimum port: 10000
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 Plugin maximum port: 25000
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 Plugin address: unix /var/folders/bc/2fdb2zxs0fl3q83d5ln3w5_80000gn/T/packer-plugin388171774
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 Waiting for connection...
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 Serving a plugin connection...
2018/12/18 23:47:56 Loading provisioner: windows-shell
2018/12/18 23:47:56 Plugin could not be found. Checking same directory as executable.
2018/12/18 23:47:56 Current exe path: /usr/local/bin/packer
2018/12/18 23:47:56 Creating plugin client for path: /usr/local/bin/packer
2018/12/18 23:47:56 Starting plugin: /usr/local/bin/packer []string{"/usr/local/bin/packer", "plugin", "packer-provisioner-windows-shell"}
2018/12/18 23:47:56 Waiting for RPC address for: /usr/local/bin/packer
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 [INFO] Packer version: 1.3.2
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 Packer Target OS/Arch: darwin amd64
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 Built with Go Version: go1.11.1
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 Detected home directory from env var: /Users/reza
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 Attempting to open config file: /Users/reza/.packerconfig
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 [WARN] Config file doesn't exist: /Users/reza/.packerconfig
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 Detected home directory from env var: /Users/reza
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 Setting cache directory: /Users/reza/projects/packer-qemu-templates/windows/packer_cache
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 Detected home directory from env var: /Users/reza
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 args: []string{"packer-provisioner-windows-shell"}
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 Plugin minimum port: 10000
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 Plugin maximum port: 25000
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 Plugin address: unix /var/folders/bc/2fdb2zxs0fl3q83d5ln3w5_80000gn/T/packer-plugin667412626
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 Waiting for connection...
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 Serving a plugin connection...
2018/12/18 23:47:56 Loading provisioner: windows-shell
2018/12/18 23:47:56 Plugin could not be found. Checking same directory as executable.
2018/12/18 23:47:56 Current exe path: /usr/local/bin/packer
2018/12/18 23:47:56 Creating plugin client for path: /usr/local/bin/packer
2018/12/18 23:47:56 Starting plugin: /usr/local/bin/packer []string{"/usr/local/bin/packer", "plugin", "packer-provisioner-windows-shell"}
2018/12/18 23:47:56 Waiting for RPC address for: /usr/local/bin/packer
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 [INFO] Packer version: 1.3.2
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 Packer Target OS/Arch: darwin amd64
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 Built with Go Version: go1.11.1
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 Detected home directory from env var: /Users/reza
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 Attempting to open config file: /Users/reza/.packerconfig
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 [WARN] Config file doesn't exist: /Users/reza/.packerconfig
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 Detected home directory from env var: /Users/reza
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 Setting cache directory: /Users/reza/projects/packer-qemu-templates/windows/packer_cache
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 Detected home directory from env var: /Users/reza
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 args: []string{"packer-provisioner-windows-shell"}
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 Plugin minimum port: 10000
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 Plugin maximum port: 25000
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 Plugin address: unix /var/folders/bc/2fdb2zxs0fl3q83d5ln3w5_80000gn/T/packer-plugin929712614
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 Waiting for connection...
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 Serving a plugin connection...
2018/12/18 23:47:56 Build debug mode: false
2018/12/18 23:47:56 Force build: false
2018/12/18 23:47:56 On error:
2018/12/18 23:47:56 Preparing build: qemu
qemu output will be in this color.
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 use specified accelerator: none
2018/12/18 23:47:56 Waiting on builds to complete...
2018/12/18 23:47:56 Starting build run: qemu
2018/12/18 23:47:56 Running builder: qemu
2018/12/18 23:47:56 [INFO] (telemetry) Starting builder qemu
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 Qemu path: /usr/local/bin/qemu-system-x86_64, Qemu Image page: /usr/local/bin/qemu-img
==> qemu: Retrieving ISO
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 Acquiring lock to download: file:///users/reza/Downloads/Windows_Server_2016_Datacenter_EVAL_en-us_14393_refresh.ISO
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 Parsed URL: &url.URL{Scheme:"file", Opaque:"", User:(*url.Userinfo)(nil), Host:"", Path:"/users/reza/Downloads/Windows_Server_2016_Datacenter_EVAL_en-us_14393_refresh.ISO", RawPath:"", ForceQuery:false, RawQuery:"", Fragment:""}
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 [DEBUG] Using local file: /users/reza/Downloads/Windows_Server_2016_Datacenter_EVAL_en-us_14393_refresh.ISO
2018/12/18 23:47:56 packer: 2018/12/18 23:47:56 Verifying checksum of /users/reza/Downloads/Windows_Server_2016_Datacenter_EVAL_en-us_14393_refresh.ISO
qemu: Using file in-place: file:///users/reza/Downloads/Windows_Server_2016_Datacenter_EVAL_en-us_14393_refresh.ISO
==> qemu: Creating floppy disk...
2018/12/18 23:48:08 packer: 2018/12/18 23:48:08 Floppy path: /var/folders/bc/2fdb2zxs0fl3q83d5ln3w5_80000gn/T/packer014947141
2018/12/18 23:48:08 packer: 2018/12/18 23:48:08 Initializing block device backed by temporary file
2018/12/18 23:48:08 packer: 2018/12/18 23:48:08 Formatting the block device with a FAT filesystem...
2018/12/18 23:48:08 packer: 2018/12/18 23:48:08 Initializing FAT filesystem on block device
2018/12/18 23:48:08 packer: 2018/12/18 23:48:08 Reading the root directory from the filesystem
qemu: Copying files flatly from floppy_files
qemu: Copying file: floppy/drivers/virtio-win-0.1.135/viostor/2k16/amd64/viostor.cat
qemu: Copying file: floppy/drivers/virtio-win-0.1.135/viostor/2k16/amd64/viostor.inf
qemu: Copying file: floppy/drivers/virtio-win-0.1.135/viostor/2k16/amd64/viostor.sys
qemu: Copying file: floppy/drivers/virtio-win-0.1.135/NetKVM/2k16/amd64/netkvm.cat
qemu: Copying file: floppy/drivers/virtio-win-0.1.135/NetKVM/2k16/amd64/netkvm.inf
qemu: Copying file: floppy/drivers/virtio-win-0.1.135/NetKVM/2k16/amd64/netkvm.sys
qemu: Copying file: floppy/drivers/virtio-win-0.1.135/NetKVM/2k16/amd64/netkvmco.dll
qemu: Copying file: floppy/common/firewall-disable.bat
qemu: Copying file: floppy/common/fixnetwork.ps1
qemu: Copying file: floppy/common/install-cygwin-sshd.bat
qemu: Copying file: floppy/common/install-cygwin-sshd.sh
qemu: Copying file: floppy/common/install-winrm.cmd
qemu: Copying file: floppy/common/zz-start-sshd.cmd
qemu: Copying file: floppy/windows-2016-standard/Autounattend.xml
qemu: Copying file: floppy/windows-2016-standard/configure.bat
qemu: Done copying files from floppy_files
qemu: Collecting paths from floppy_dirs
qemu: Resulting paths from floppy_dirs : []
qemu: Done copying paths from floppy_dirs
==> qemu: Creating hard drive...
2018/12/18 23:48:08 packer: 2018/12/18 23:48:08 Executing qemu-img: []string{"create", "-f", "qcow2", "output-windows-2016/windows-2016", "61440M"}
2018/12/18 23:48:08 packer: 2018/12/18 23:48:08 stdout: Formatting 'output-windows-2016/windows-2016', fmt=qcow2 size=64424509440 cluster_size=65536 lazy_refcounts=off refcount_bits=16
2018/12/18 23:48:08 packer: 2018/12/18 23:48:08 stderr:
2018/12/18 23:48:08 packer: 2018/12/18 23:48:08 Trying port: 8029
==> qemu: Starting HTTP server on port 8029
2018/12/18 23:48:08 packer: 2018/12/18 23:48:08 Looking for available communicator (SSH, WinRM, etc) port between 2222 and 4444
2018/12/18 23:48:08 packer: 2018/12/18 23:48:08 Trying port: 3930
==> qemu: Found port for communicator (SSH, WinRM, etc): 3930.
2018/12/18 23:48:08 packer: 2018/12/18 23:48:08 Looking for available port between 5900 and 6000 on 127.0.0.1
2018/12/18 23:48:08 packer: 2018/12/18 23:48:08 Trying port: 5912
==> qemu: Looking for available port between 5900 and 6000 on 127.0.0.1
2018/12/18 23:48:08 packer: 2018/12/18 23:48:08 Found available VNC port: 5912 on IP: 127.0.0.1
==> qemu: Starting VM, booting from CD-ROM
2018/12/18 23:48:08 packer: 2018/12/18 23:48:08 Qemu --version output: QEMU emulator version 3.1.0
2018/12/18 23:48:08 packer: Copyright (c) 2003-2018 Fabrice Bellard and the QEMU Project developers
2018/12/18 23:48:08 packer: 2018/12/18 23:48:08 Qemu version: 3.1.0
qemu: view the screen of the VM, connect via VNC without a password to
qemu: vnc://127.0.0.1:5912
qemu: The VM will be run headless, without a GUI. If you want to
qemu: view the screen of the VM, connect via VNC without a password to
qemu: The installation may take considerably longer to finish.
qemu:
qemu: vnc://127.0.0.1:5912
qemu: WARNING: The VM will be started with no hardware acceleration.
qemu: The installation may take considerably longer to finish.
qemu:
==> qemu: Overriding defaults Qemu arguments with QemuArgs...
2018/12/18 23:48:08 packer: 2018/12/18 23:48:08 Executing /usr/local/bin/qemu-system-x86_64: []string{"-netdev", "user,id=user.0,hostfwd=tcp::3930-:5985", "-m", "8096", "-cdrom", "/users/reza/Downloads/Windows_Server_2016_Datacenter_EVAL_en-us_14393_refresh.ISO", "-fda", "/var/folders/bc/2fdb2zxs0fl3q83d5ln3w5_80000gn/T/packer014947141", "-machine", "type=pc", "-boot", "once=d", "-vnc", "127.0.0.1:12", "-name", "windows-2016", "-smp", "cpus=4", "-drive", "file=output-windows-2016/windows-2016,if=virtio,cache=writeback,discard=ignore,format=qcow2,detect-zeroes=off", "-device", "virtio-net,netdev=user.0"}
2018/12/18 23:48:08 packer: 2018/12/18 23:48:08 Started Qemu. Pid: 4636
2018/12/18 23:48:08 packer: 2018/12/18 23:48:08 Qemu stderr: WARNING: Image format was not specified for '/var/folders/bc/2fdb2zxs0fl3q83d5ln3w5_80000gn/T/packer014947141' and probing guessed raw.
2018/12/18 23:48:08 packer: 2018/12/18 23:48:08 Qemu stderr: Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
2018/12/18 23:48:08 packer: 2018/12/18 23:48:08 Qemu stderr: Specify the 'raw' format explicitly to remove the restrictions.
==> qemu: Waiting 2s for boot...
==> qemu: Connecting to VM via VNC
2018/12/18 23:48:12 packer: 2018/12/18 23:48:12 Connected to VNC desktop: QEMU (windows-2016)
==> qemu: Typing the boot command over VNC...
==> qemu: Using winrm communicator to connect: 127.0.0.1
2018/12/18 23:48:12 packer: 2018/12/18 23:48:12 Waiting for WinRM, up to timeout: 2h46m40s
==> qemu: Waiting for WinRM to become available...
2018/12/18 23:48:17 packer: 2018/12/18 23:48:17 [INFO] Attempting WinRM connection...
2018/12/18 23:48:17 packer: 2018/12/18 23:48:17 [DEBUG] connecting to remote shell using WinRM
2018/12/18 23:49:33 packer: 2018/12/18 23:49:33 [ERROR] connection error: unknown error Post http://127.0.0.1:3930/wsman: read tcp 127.0.0.1:51077->127.0.0.1:3930: read: connection reset by peer
2018/12/18 23:49:33 packer: 2018/12/18 23:49:33 [ERROR] WinRM connection err: unknown error Post http://127.0.0.1:3930/wsman: read tcp 127.0.0.1:51077->127.0.0.1:3930: read: connection reset by peer
2018/12/18 23:49:38 packer: 2018/12/18 23:49:38 [INFO] Attempting WinRM connection...
2018/12/18 23:49:38 packer: 2018/12/18 23:49:38 [DEBUG] connecting to remote shell using WinRM
2018/12/18 23:50:53 packer: 2018/12/18 23:50:53 [ERROR] connection error: unknown error Post http://127.0.0.1:3930/wsman: read tcp 127.0.0.1:51082->127.0.0.1:3930: read: connection reset by peer
2018/12/18 23:50:53 packer: 2018/12/18 23:50:53 [ERROR] WinRM connection err: unknown error Post http://127.0.0.1:3930/wsman: read tcp 127.0.0.1:51082->127.0.0.1:3930: read: connection reset by peer
2018/12/18 23:50:58 packer: 2018/12/18 23:50:58 [INFO] Attempting WinRM connection...
2018/12/18 23:50:58 packer: 2018/12/18 23:50:58 [DEBUG] connecting to remote shell using WinRM
2018/12/18 23:52:13 packer: 2018/12/18 23:52:13 [ERROR] connection error: unknown error Post http://127.0.0.1:3930/wsman: read tcp 127.0.0.1:51085->127.0.0.1:3930: read: connection reset by peer
2018/12/18 23:52:13 packer: 2018/12/18 23:52:13 [ERROR] WinRM connection err: unknown error Post http://127.0.0.1:3930/wsman: read tcp 127.0.0.1:51085->127.0.0.1:3930: read: connection reset by peer
2018/12/18 23:52:18 packer: 2018/12/18 23:52:18 [INFO] Attempting WinRM connection...
2018/12/18 23:52:18 packer: 2018/12/18 23:52:18 [DEBUG] connecting to remote shell using WinRM
2018/12/18 23:53:33 packer: 2018/12/18 23:53:33 [ERROR] connection error: unknown error Post http://127.0.0.1:3930/wsman: read tcp 127.0.0.1:51108->127.0.0.1:3930: read: connection reset by peer
2018/12/18 23:53:33 packer: 2018/12/18 23:53:33 [ERROR] WinRM connection err: unknown error Post http://127.0.0.1:3930/wsman: read tcp 127.0.0.1:51108->127.0.0.1:3930: read: connection reset by peer
2018/12/18 23:53:38 packer: 2018/12/18 23:53:38 [INFO] Attempting WinRM connection...
2018/12/18 23:53:38 packer: 2018/12/18 23:53:38 [DEBUG] connecting to remote shell using WinRM
2018/12/18 23:54:53 packer: 2018/12/18 23:54:53 [ERROR] connection error: unknown error Post http://127.0.0.1:3930/wsman: read tcp 127.0.0.1:51120->127.0.0.1:3930: read: connection reset by peer
2018/12/18 23:54:53 packer: 2018/12/18 23:54:53 [ERROR] WinRM connection err: unknown error Post http://127.0.0.1:3930/wsman: read tcp 127.0.0.1:51120->127.0.0.1:3930: read: connection reset by peer
2018/12/18 23:54:58 packer: 2018/12/18 23:54:58 [INFO] Attempting WinRM connection...
2018/12/18 23:54:58 packer: 2018/12/18 23:54:58 [DEBUG] connecting to remote shell using WinRM
2018/12/18 23:56:13 packer: 2018/12/18 23:56:13 [ERROR] connection error: unknown error Post http://127.0.0.1:3930/wsman: read tcp 127.0.0.1:51123->127.0.0.1:3930: read: connection reset by peer
2018/12/18 23:56:13 packer: 2018/12/18 23:56:13 [ERROR] WinRM connection err: unknown error Post http://127.0.0.1:3930/wsman: read tcp 127.0.0.1:51123->127.0.0.1:3930: read: connection reset by peer
2018/12/18 23:56:18 packer: 2018/12/18 23:56:18 [INFO] Attempting WinRM connection...
2018/12/18 23:56:18 packer: 2018/12/18 23:56:18 [DEBUG] connecting to remote shell using WinRM
2018/12/18 23:57:33 packer: 2018/12/18 23:57:33 [ERROR] connection error: unknown error Post http://127.0.0.1:3930/wsman: read tcp 127.0.0.1:51127->127.0.0.1:3930: read: connection reset by peer
2018/12/18 23:57:33 packer: 2018/12/18 23:57:33 [ERROR] WinRM connection err: unknown error Post http://127.0.0.1:3930/wsman: read tcp 127.0.0.1:51127->127.0.0.1:3930: read: connection reset by peer
2018/12/18 23:57:38 packer: 2018/12/18 23:57:38 [INFO] Attempting WinRM connection...
2018/12/18 23:57:38 packer: 2018/12/18 23:57:38 [DEBUG] connecting to remote shell using WinRM
2018/12/18 23:58:53 packer: 2018/12/18 23:58:53 [ERROR] connection error: unknown error Post http://127.0.0.1:3930/wsman: read tcp 127.0.0.1:51128->127.0.0.1:3930: read: connection reset by peer
2018/12/18 23:58:53 packer: 2018/12/18 23:58:53 [ERROR] WinRM connection err: unknown error Post http://127.0.0.1:3930/wsman: read tcp 127.0.0.1:51128->127.0.0.1:3930: read: connection reset by peer
2018/12/18 23:58:58 packer: 2018/12/18 23:58:58 [INFO] Attempting WinRM connection...
2018/12/18 23:58:58 packer: 2018/12/18 23:58:58 [DEBUG] connecting to remote shell using WinRM
2018/12/19 00:00:13 packer: 2018/12/19 00:00:13 [ERROR] connection error: unknown error Post http://127.0.0.1:3930/wsman: read tcp 127.0.0.1:51131->127.0.0.1:3930: read: connection reset by peer
2018/12/19 00:00:13 packer: 2018/12/19 00:00:13 [ERROR] WinRM connection err: unknown error Post http://127.0.0.1:3930/wsman: read tcp 127.0.0.1:51131->127.0.0.1:3930: read: connection reset by peer
2018/12/19 00:00:18 packer: 2018/12/19 00:00:18 [INFO] Attempting WinRM connection...
2018/12/19 00:00:18 packer: 2018/12/19 00:00:18 [DEBUG] connecting to remote shell using WinRM
2018/12/19 00:01:33 packer: 2018/12/19 00:01:33 [ERROR] connection error: unknown error Post http://127.0.0.1:3930/wsman: read tcp 127.0.0.1:51150->127.0.0.1:3930: read: connection reset by peer
2018/12/19 00:01:33 packer: 2018/12/19 00:01:33 [ERROR] WinRM connection err: unknown error Post http://127.0.0.1:3930/wsman: read tcp 127.0.0.1:51150->127.0.0.1:3930: read: connection reset by peer
2018/12/19 00:01:38 packer: 2018/12/19 00:01:38 [INFO] Attempting WinRM connection...
2018/12/19 00:01:38 packer: 2018/12/19 00:01:38 [DEBUG] connecting to remote shell using WinRM
...
...
# Installation is in progress: https://imagebin.ca/v/4QQddBy6gTHO
...
...
2018/12/19 00:06:52 packer: 2018/12/19 00:06:52 [ERROR] connection error: unknown error Post http://127.0.0.1:3930/wsman: read tcp 127.0.0.1:51174->127.0.0.1:3930: read: connection reset by peer
2018/12/19 00:06:52 packer: 2018/12/19 00:06:52 [ERROR] WinRM connection err: unknown error Post http://127.0.0.1:3930/wsman: read tcp 127.0.0.1:51174->127.0.0.1:3930: read: connection reset by peer
2018/12/19 00:06:57 packer: 2018/12/19 00:06:57 [INFO] Attempting WinRM connection...
2018/12/19 00:06:57 packer: 2018/12/19 00:06:57 [DEBUG] connecting to remote shell using WinRM
2018/12/19 00:08:12 packer: 2018/12/19 00:08:12 [ERROR] connection error: unknown error Post http://127.0.0.1:3930/wsman: read tcp 127.0.0.1:51208->127.0.0.1:3930: read: connection reset by peer
2018/12/19 00:08:12 packer: 2018/12/19 00:08:12 [ERROR] WinRM connection err: unknown error Post http://127.0.0.1:3930/wsman: read tcp 127.0.0.1:51208->127.0.0.1:3930: read: connection reset by peer
2018/12/19 00:08:17 packer: 2018/12/19 00:08:17 [INFO] Attempting WinRM connection...
2018/12/19 00:08:17 packer: 2018/12/19 00:08:17 [DEBUG] connecting to remote shell using WinRM
2018/12/19 00:09:32 packer: 2018/12/19 00:09:32 [ERROR] connection error: unknown error Post http://127.0.0.1:3930/wsman: read tcp 127.0.0.1:51211->127.0.0.1:3930: read: connection reset by peer
2018/12/19 00:09:32 packer: 2018/12/19 00:09:32 [ERROR] WinRM connection err: unknown error Post http://127.0.0.1:3930/wsman: read tcp 127.0.0.1:51211->127.0.0.1:3930: read: connection reset by peer
2018/12/19 00:09:37 packer: 2018/12/19 00:09:37 [INFO] Attempting WinRM connection...
2018/12/19 00:09:37 packer: 2018/12/19 00:09:37 [DEBUG] connecting to remote shell using WinRM
2018/12/19 00:10:53 packer: 2018/12/19 00:10:53 [ERROR] connection error: unknown error Post http://127.0.0.1:3930/wsman: read tcp 127.0.0.1:51220->127.0.0.1:3930: read: connection reset by peer
2018/12/19 00:10:53 packer: 2018/12/19 00:10:53 [ERROR] WinRM connection err: unknown error Post http://127.0.0.1:3930/wsman: read tcp 127.0.0.1:51220->127.0.0.1:3930: read: connection reset by peer
2018/12/19 00:10:58 packer: 2018/12/19 00:10:58 [INFO] Attempting WinRM connection...
2018/12/19 00:10:58 packer: 2018/12/19 00:10:58 [DEBUG] connecting to remote shell using WinRM
2018/12/19 00:14:49 packer: 2018/12/19 00:14:49 Qemu stderr: Assertion failed: (s->gen_insn_end_off[num_insns] == off), function tcg_gen_code, file /private/tmp/qemu-20181213-23369-1m4e9yq/qemu-3.1.0/tcg/tcg.c, line 3569.
2018/12/19 00:14:49 packer: 2018/12/19 00:14:49 [ERROR] connection error: unknown error Post http://127.0.0.1:3930/wsman: read tcp 127.0.0.1:51267->127.0.0.1:3930: read: connection reset by peer
2018/12/19 00:14:49 packer: 2018/12/19 00:14:49 [ERROR] WinRM connection err: unknown error Post http://127.0.0.1:3930/wsman: read tcp 127.0.0.1:51267->127.0.0.1:3930: read: connection reset by peer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment