Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save StefanScherer/580258028a8ab98bd242d17879896921 to your computer and use it in GitHub Desktop.
Save StefanScherer/580258028a8ab98bd242d17879896921 to your computer and use it in GitHub Desktop.
packerbuilder
Windows PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.
PS C:\Users\demo> cd .\workspace\
PS C:\Users\demo\workspace> dir
Directory: C:\Users\demo\workspace
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 1/26/2018 2:47 PM packer-windows_my-PH7VQTN6RDUL23PJXSNDIGZXF5YME4XP2R3GVKXGJIWL7LIVCX5A
d----- 1/26/2018 2:47 PM packer-windows_my-PH7VQTN6RDUL23PJXSNDIGZXF5YME4XP2R3GVKXGJIWL7LIVCX5A
@tmp
PS C:\Users\demo\workspace> cd .\packer-windows_my-PH7VQTN6RDUL23PJXSNDIGZXF5YME4XP2R3GVKXGJIWL7LIVCX5A\
PS C:\Users\demo\workspace\packer-windows_my-PH7VQTN6RDUL23PJXSNDIGZXF5YME4XP2R3GVKXGJIWL7LIVCX5A> dir
Directory: C:\Users\demo\workspace\packer-windows_my-PH7VQTN6RDUL23PJXSNDIGZXF5YME4XP2R3GVKXGJIWL7LIVCX5A
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 1/26/2018 2:09 PM answer_files
d----- 1/26/2018 2:09 PM bin
d----- 1/26/2018 2:09 PM floppy
d----- 1/26/2018 2:09 PM iso
d----- 1/26/2018 2:09 PM nested
d----- 1/26/2018 2:12 PM packer_cache
d----- 1/26/2018 2:09 PM scripts
d----- 1/26/2018 2:09 PM test
-a---- 1/26/2018 2:09 PM 13 .gitattributes
-a---- 1/26/2018 2:09 PM 254 .gitignore
-a---- 1/26/2018 2:09 PM 246 appveyor.yml
-a---- 1/26/2018 2:09 PM 5352 AZURE.md
-a---- 1/26/2018 2:09 PM 408 build_windows_10.ps1
-a---- 1/26/2018 2:09 PM 2201 build_windows_10.sh
-a---- 1/26/2018 2:09 PM 196 build_windows_10_docker.sh
-a---- 1/26/2018 2:09 PM 444 build_windows_2016_core.sh
-a---- 1/26/2018 2:09 PM 390 build_windows_2016_dc.sh
-a---- 1/26/2018 2:09 PM 328 build_windows_2016_docker.ps1
-a---- 1/26/2018 2:09 PM 563 build_windows_2016_docker.sh
-a---- 1/26/2018 2:09 PM 85 build_windows_2016_docker_hyperv.ps1
-a---- 1/26/2018 2:09 PM 455 build_windows_server_1709_docker.sh
-a---- 1/26/2018 2:09 PM 241 build_windows_server_insider_docker.sh
-a---- 1/26/2018 2:09 PM 4295 CHANGELOG.md
-a---- 1/26/2018 2:09 PM 208 fix.sh
-a---- 1/26/2018 2:09 PM 454 Jenkinsfile
-a---- 1/26/2018 2:09 PM 1104 LICENSE
-a---- 1/26/2018 2:10 PM 16 path-to.vmx
-a---- 1/26/2018 2:09 PM 2644 README-rsync.md
-a---- 1/26/2018 2:09 PM 1065 README-shutdown_command.md
-a---- 1/26/2018 2:09 PM 5872 README.md
-a---- 1/26/2018 2:09 PM 1808 test.ps1
-a---- 1/26/2018 2:09 PM 1098 test.sh
-a---- 1/26/2018 2:09 PM 2511 vagrantfile-windows_10.template
-a---- 1/26/2018 2:09 PM 1972 vagrantfile-windows_2008_r2.template
-a---- 1/26/2018 2:09 PM 1966 vagrantfile-windows_2012.template
-a---- 1/26/2018 2:09 PM 1972 vagrantfile-windows_2012_r2.template
-a---- 1/26/2018 2:09 PM 2408 vagrantfile-windows_2016.template
-a---- 1/26/2018 2:09 PM 2089 vagrantfile-windows_2016_core.template
-a---- 1/26/2018 2:09 PM 1960 vagrantfile-windows_7.template
-a---- 1/26/2018 2:09 PM 1962 vagrantfile-windows_81.template
-a---- 1/26/2018 2:09 PM 5669 windows_10.json
-a---- 1/26/2018 2:09 PM 2245 windows_10_docker.json
-a---- 1/26/2018 2:09 PM 5400 windows_10_insider.json
-a---- 1/26/2018 2:09 PM 3065 windows_2008_r2.json
-a---- 1/26/2018 2:09 PM 2976 windows_2008_r2_core.json
-a---- 1/26/2018 2:09 PM 3021 windows_2012.json
-a---- 1/26/2018 2:09 PM 3221 windows_2012_r2.json
-a---- 1/26/2018 2:09 PM 3100 windows_2012_r2_core.json
-a---- 1/26/2018 2:09 PM 3170 windows_2012_r2_hyperv.json
-a---- 1/26/2018 2:09 PM 5267 windows_2016.json
-a---- 1/26/2018 2:09 PM 4684 windows_2016_core.json
-a---- 1/26/2018 2:09 PM 5919 windows_2016_dc.json
-a---- 1/26/2018 2:09 PM 6264 windows_2016_docker.json
-a---- 1/26/2018 2:09 PM 2399 windows_2016_docker_azure.json
-a---- 1/26/2018 2:09 PM 4583 windows_2016_hyperv.json
-a---- 1/26/2018 2:09 PM 3663 windows_7.json
-a---- 1/26/2018 2:09 PM 3583 windows_81.json
-a---- 1/26/2018 2:09 PM 5279 windows_server_1709.json
-a---- 1/26/2018 2:09 PM 6418 windows_server_1709_docker.json
-a---- 1/26/2018 2:09 PM 4841 windows_server_insider.json
-a---- 1/26/2018 2:09 PM 5452 windows_server_insider_docker.json
PS C:\Users\demo\workspace\packer-windows_my-PH7VQTN6RDUL23PJXSNDIGZXF5YME4XP2R3GVKXGJIWL7LIVCX5A> $env:PACKER_LOG="1"
PS C:\Users\demo\workspace\packer-windows_my-PH7VQTN6RDUL23PJXSNDIGZXF5YME4XP2R3GVKXGJIWL7LIVCX5A> packer build --only hyperv-iso windows_2016.json
2018/01/26 15:40:45 [INFO] Packer version: 1.1.3
2018/01/26 15:40:45 Packer Target OS/Arch: windows amd64
2018/01/26 15:40:45 Built with Go Version: go1.9
2018/01/26 15:40:45 Using internal plugin for qemu
2018/01/26 15:40:45 Using internal plugin for virtualbox-iso
2018/01/26 15:40:45 Using internal plugin for virtualbox-ovf
2018/01/26 15:40:45 Using internal plugin for lxc
2018/01/26 15:40:45 Using internal plugin for null
2018/01/26 15:40:45 Using internal plugin for oneandone
2018/01/26 15:40:45 Using internal plugin for parallels-iso
2018/01/26 15:40:45 Using internal plugin for alicloud-ecs
2018/01/26 15:40:45 Using internal plugin for hyperv-iso
2018/01/26 15:40:45 Using internal plugin for hyperv-vmcx
2018/01/26 15:40:45 Using internal plugin for amazon-ebs
2018/01/26 15:40:45 Using internal plugin for cloudstack
2018/01/26 15:40:45 Using internal plugin for parallels-pvm
2018/01/26 15:40:45 Using internal plugin for triton
2018/01/26 15:40:45 Using internal plugin for oracle-oci
2018/01/26 15:40:45 Using internal plugin for lxd
2018/01/26 15:40:45 Using internal plugin for docker
2018/01/26 15:40:45 Using internal plugin for googlecompute
2018/01/26 15:40:45 Using internal plugin for vmware-iso
2018/01/26 15:40:45 Using internal plugin for vmware-vmx
2018/01/26 15:40:45 Using internal plugin for amazon-ebssurrogate
2018/01/26 15:40:45 Using internal plugin for amazon-instance
2018/01/26 15:40:45 Using internal plugin for azure-arm
2018/01/26 15:40:45 Using internal plugin for digitalocean
2018/01/26 15:40:45 Using internal plugin for file
2018/01/26 15:40:45 Using internal plugin for amazon-chroot
2018/01/26 15:40:45 Using internal plugin for amazon-ebsvolume
2018/01/26 15:40:45 Using internal plugin for openstack
2018/01/26 15:40:45 Using internal plugin for profitbricks
2018/01/26 15:40:45 Using internal plugin for chef-solo
2018/01/26 15:40:45 Using internal plugin for puppet-server
2018/01/26 15:40:45 Using internal plugin for salt-masterless
2018/01/26 15:40:45 Using internal plugin for shell
2018/01/26 15:40:45 Using internal plugin for windows-restart
2018/01/26 15:40:45 Using internal plugin for windows-shell
2018/01/26 15:40:45 Using internal plugin for ansible-local
2018/01/26 15:40:45 Using internal plugin for converge
2018/01/26 15:40:45 Using internal plugin for file
2018/01/26 15:40:45 Using internal plugin for shell-local
2018/01/26 15:40:45 Using internal plugin for ansible
2018/01/26 15:40:45 Using internal plugin for chef-client
2018/01/26 15:40:45 Using internal plugin for powershell
2018/01/26 15:40:45 Using internal plugin for puppet-masterless
2018/01/26 15:40:45 Using internal plugin for alicloud-import
2018/01/26 15:40:45 Using internal plugin for vsphere
2018/01/26 15:40:45 Using internal plugin for vsphere-template
2018/01/26 15:40:45 Using internal plugin for amazon-import
2018/01/26 15:40:45 Using internal plugin for googlecompute-export
2018/01/26 15:40:45 Using internal plugin for compress
2018/01/26 15:40:45 Using internal plugin for docker-import
2018/01/26 15:40:45 Using internal plugin for docker-save
2018/01/26 15:40:45 Using internal plugin for docker-tag
2018/01/26 15:40:45 Using internal plugin for vagrant
2018/01/26 15:40:45 Using internal plugin for artifice
2018/01/26 15:40:45 Using internal plugin for atlas
2018/01/26 15:40:45 Using internal plugin for checksum
2018/01/26 15:40:45 Using internal plugin for docker-push
2018/01/26 15:40:45 Using internal plugin for manifest
2018/01/26 15:40:45 Using internal plugin for shell-local
2018/01/26 15:40:45 Using internal plugin for vagrant-cloud
2018/01/26 15:40:45 Attempting to open config file: C:\Users\demo\AppData\Roaming\packer.config
2018/01/26 15:40:45 [WARN] Config file doesn't exist: C:\Users\demo\AppData\Roaming\packer.config
2018/01/26 15:40:45 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[amazon-ebsvolume:C:\ProgramDat
a\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebsvolume qemu:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-pl
ugin-PACKERSPACE-packer-builder-qemu hyperv-vmcx:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-vmcx parallels-pvm:C:
\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-pvm amazon-ebssurrogate:C:\ProgramData\chocolatey\lib\packer\tools\pa
cker.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebssurrogate amazon-instance:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-p
acker-builder-amazon-instance azure-arm:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-azure-arm digitalocean:C:\ProgramData
\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-digitalocean null:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-
PACKERSPACE-packer-builder-null amazon-chroot:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-chroot virtualbox-ovf:C:
\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-ovf alicloud-ecs:C:\ProgramData\chocolatey\lib\packer\tools\packer.e
xe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-alicloud-ecs amazon-ebs:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amaz
on-ebs cloudstack:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-cloudstack file:C:\ProgramData\chocolatey\lib\packer\tools\
packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-file profitbricks:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-pr
ofitbricks docker:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-docker lxc:C:\ProgramData\chocolatey\lib\packer\tools\packe
r.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxc oneandone:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oneandone o
racle-oci:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-oci vmware-iso:C:\ProgramData\chocolatey\lib\packer\tools\pa
cker.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-iso parallels-iso:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-build
er-parallels-iso triton:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-triton virtualbox-iso:C:\ProgramData\chocolatey\lib\p
acker\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-iso hyperv-iso:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPA
CE-packer-builder-hyperv-iso lxd:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxd googlecompute:C:\ProgramData\chocolatey\
lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-googlecompute vmware-vmx:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKE
RSPACE-packer-builder-vmware-vmx openstack:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-openstack] PostProcessors:map[vsph
ere:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere compress:C:\ProgramData\chocolatey\lib\packer\tools\packer
.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-compress vsphere-template:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-p
ost-processor-vsphere-template amazon-import:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-amazon-import checksum:C:
\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-checksum alicloud-import:C:\ProgramData\chocolatey\lib\packer\tools\pack
er.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-alicloud-import vagrant:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-p
ost-processor-vagrant atlas:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-atlas manifest:C:\ProgramData\chocolatey\l
ib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-manifest shell-local:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PAC
KERSPACE-packer-post-processor-shell-local googlecompute-export:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-google
compute-export docker-import:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-import docker-save:C:\ProgramData\
chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-save docker-tag:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSP
ACE-plugin-PACKERSPACE-packer-post-processor-docker-tag artifice:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-artif
ice docker-push:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-push vagrant-cloud:C:\ProgramData\chocolatey\li
b\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant-cloud] Provisioners:map[puppet-masterless:C:\ProgramData\chocolatey\lib\packer\tools\packe
r.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-masterless puppet-server:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-pack
er-provisioner-puppet-server file:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-file ansible:C:\ProgramData\chocolatey\
lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible chef-client:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKER
SPACE-packer-provisioner-chef-client chef-solo:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-solo shell-local:C:\P
rogramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell-local windows-shell:C:\ProgramData\chocolatey\lib\packer\tools\packer.e
xe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-shell converge:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provision
er-converge powershell:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-powershell salt-masterless:C:\ProgramData\chocolat
ey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-salt-masterless shell:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-P
ACKERSPACE-packer-provisioner-shell windows-restart:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-restart ansib
le-local:C:\ProgramData\chocolatey\lib\packer\tools\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible-local]}
2018/01/26 15:40:45 Setting cache directory: C:\Users\demo\workspace\packer-windows_my-PH7VQTN6RDUL23PJXSNDIGZXF5YME4XP2R3GVKXGJIWL7LIVCX5A\packer_cache
2018/01/26 15:40:45 Loading builder: hyperv-iso
2018/01/26 15:40:45 Plugin could not be found. Checking same directory as executable.
2018/01/26 15:40:45 Current exe path: C:\ProgramData\chocolatey\lib\packer\tools\packer.exe
2018/01/26 15:40:45 Creating plugin client for path: C:\ProgramData\chocolatey\lib\packer\tools\packer.exe
2018/01/26 15:40:45 Starting plugin: C:\ProgramData\chocolatey\lib\packer\tools\packer.exe []string{"C:\\ProgramData\\chocolatey\\lib\\packer\\tools\\packer.exe", "plugin", "pac
ker-builder-hyperv-iso"}
2018/01/26 15:40:45 Waiting for RPC address for: C:\ProgramData\chocolatey\lib\packer\tools\packer.exe
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 [INFO] Packer version: 1.1.3
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Packer Target OS/Arch: windows amd64
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Built with Go Version: go1.9
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Attempting to open config file: C:\Users\demo\AppData\Roaming\packer.config
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 [WARN] Config file doesn't exist: C:\Users\demo\AppData\Roaming\packer.config
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:ma
p[] PostProcessors:map[] Provisioners:map[]}
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Setting cache directory: C:\Users\demo\workspace\packer-windows_my-PH7VQTN6RDUL23PJXSNDIGZXF5YME4XP2R3GVKXGJIWL7LIVCX5A\packe
r_cache
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 args: []string{"packer-builder-hyperv-iso"}
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Plugin minimum port: 10000
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Plugin maximum port: 25000
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Plugin address: tcp 127.0.0.1:10000
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Waiting for connection...
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Serving a plugin connection...
2018/01/26 15:40:45 Loading provisioner: windows-shell
2018/01/26 15:40:45 Plugin could not be found. Checking same directory as executable.
2018/01/26 15:40:45 Current exe path: C:\ProgramData\chocolatey\lib\packer\tools\packer.exe
2018/01/26 15:40:45 Creating plugin client for path: C:\ProgramData\chocolatey\lib\packer\tools\packer.exe
2018/01/26 15:40:45 Starting plugin: C:\ProgramData\chocolatey\lib\packer\tools\packer.exe []string{"C:\\ProgramData\\chocolatey\\lib\\packer\\tools\\packer.exe", "plugin", "pac
ker-provisioner-windows-shell"}
2018/01/26 15:40:45 Waiting for RPC address for: C:\ProgramData\chocolatey\lib\packer\tools\packer.exe
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 [INFO] Packer version: 1.1.3
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Packer Target OS/Arch: windows amd64
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Built with Go Version: go1.9
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Attempting to open config file: C:\Users\demo\AppData\Roaming\packer.config
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 [WARN] Config file doesn't exist: C:\Users\demo\AppData\Roaming\packer.config
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:ma
p[] PostProcessors:map[] Provisioners:map[]}
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Setting cache directory: C:\Users\demo\workspace\packer-windows_my-PH7VQTN6RDUL23PJXSNDIGZXF5YME4XP2R3GVKXGJIWL7LIVCX5A\packe
r_cache
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 args: []string{"packer-provisioner-windows-shell"}
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Plugin minimum port: 10000
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Plugin maximum port: 25000
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Plugin address: tcp 127.0.0.1:10000
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Waiting for connection...
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Serving a plugin connection...
2018/01/26 15:40:45 Loading provisioner: powershell
2018/01/26 15:40:45 Plugin could not be found. Checking same directory as executable.
2018/01/26 15:40:45 Current exe path: C:\ProgramData\chocolatey\lib\packer\tools\packer.exe
2018/01/26 15:40:45 Creating plugin client for path: C:\ProgramData\chocolatey\lib\packer\tools\packer.exe
2018/01/26 15:40:45 Starting plugin: C:\ProgramData\chocolatey\lib\packer\tools\packer.exe []string{"C:\\ProgramData\\chocolatey\\lib\\packer\\tools\\packer.exe", "plugin", "pac
ker-provisioner-powershell"}
2018/01/26 15:40:45 Waiting for RPC address for: C:\ProgramData\chocolatey\lib\packer\tools\packer.exe
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 [INFO] Packer version: 1.1.3
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Packer Target OS/Arch: windows amd64
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Built with Go Version: go1.9
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Attempting to open config file: C:\Users\demo\AppData\Roaming\packer.config
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 [WARN] Config file doesn't exist: C:\Users\demo\AppData\Roaming\packer.config
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:ma
p[] PostProcessors:map[] Provisioners:map[]}
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Setting cache directory: C:\Users\demo\workspace\packer-windows_my-PH7VQTN6RDUL23PJXSNDIGZXF5YME4XP2R3GVKXGJIWL7LIVCX5A\packe
r_cache
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 args: []string{"packer-provisioner-powershell"}
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Plugin minimum port: 10000
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Plugin maximum port: 25000
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Plugin address: tcp 127.0.0.1:10000
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Waiting for connection...
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Serving a plugin connection...
2018/01/26 15:40:45 Loading provisioner: windows-restart
2018/01/26 15:40:45 Plugin could not be found. Checking same directory as executable.
2018/01/26 15:40:45 Current exe path: C:\ProgramData\chocolatey\lib\packer\tools\packer.exe
2018/01/26 15:40:45 Creating plugin client for path: C:\ProgramData\chocolatey\lib\packer\tools\packer.exe
2018/01/26 15:40:45 Starting plugin: C:\ProgramData\chocolatey\lib\packer\tools\packer.exe []string{"C:\\ProgramData\\chocolatey\\lib\\packer\\tools\\packer.exe", "plugin", "pac
ker-provisioner-windows-restart"}
2018/01/26 15:40:45 Waiting for RPC address for: C:\ProgramData\chocolatey\lib\packer\tools\packer.exe
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 [INFO] Packer version: 1.1.3
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Packer Target OS/Arch: windows amd64
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Built with Go Version: go1.9
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Attempting to open config file: C:\Users\demo\AppData\Roaming\packer.config
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 [WARN] Config file doesn't exist: C:\Users\demo\AppData\Roaming\packer.config
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:ma
p[] PostProcessors:map[] Provisioners:map[]}
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Setting cache directory: C:\Users\demo\workspace\packer-windows_my-PH7VQTN6RDUL23PJXSNDIGZXF5YME4XP2R3GVKXGJIWL7LIVCX5A\packe
r_cache
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 args: []string{"packer-provisioner-windows-restart"}
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Plugin minimum port: 10000
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Plugin maximum port: 25000
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Plugin address: tcp 127.0.0.1:10000
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Waiting for connection...
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Serving a plugin connection...
2018/01/26 15:40:45 Loading provisioner: windows-shell
2018/01/26 15:40:45 Plugin could not be found. Checking same directory as executable.
2018/01/26 15:40:45 Current exe path: C:\ProgramData\chocolatey\lib\packer\tools\packer.exe
2018/01/26 15:40:45 Creating plugin client for path: C:\ProgramData\chocolatey\lib\packer\tools\packer.exe
2018/01/26 15:40:45 Starting plugin: C:\ProgramData\chocolatey\lib\packer\tools\packer.exe []string{"C:\\ProgramData\\chocolatey\\lib\\packer\\tools\\packer.exe", "plugin", "pac
ker-provisioner-windows-shell"}
2018/01/26 15:40:45 Waiting for RPC address for: C:\ProgramData\chocolatey\lib\packer\tools\packer.exe
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 [INFO] Packer version: 1.1.3
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Packer Target OS/Arch: windows amd64
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Built with Go Version: go1.9
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Attempting to open config file: C:\Users\demo\AppData\Roaming\packer.config
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 [WARN] Config file doesn't exist: C:\Users\demo\AppData\Roaming\packer.config
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:ma
p[] PostProcessors:map[] Provisioners:map[]}
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Setting cache directory: C:\Users\demo\workspace\packer-windows_my-PH7VQTN6RDUL23PJXSNDIGZXF5YME4XP2R3GVKXGJIWL7LIVCX5A\packe
r_cache
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 args: []string{"packer-provisioner-windows-shell"}
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Plugin minimum port: 10000
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Plugin maximum port: 25000
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Plugin address: tcp 127.0.0.1:10000
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Waiting for connection...
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Serving a plugin connection...
2018/01/26 15:40:45 Loading post-processor: vagrant
2018/01/26 15:40:45 Plugin could not be found. Checking same directory as executable.
2018/01/26 15:40:45 Current exe path: C:\ProgramData\chocolatey\lib\packer\tools\packer.exe
2018/01/26 15:40:45 Creating plugin client for path: C:\ProgramData\chocolatey\lib\packer\tools\packer.exe
2018/01/26 15:40:45 Starting plugin: C:\ProgramData\chocolatey\lib\packer\tools\packer.exe []string{"C:\\ProgramData\\chocolatey\\lib\\packer\\tools\\packer.exe", "plugin", "pac
ker-post-processor-vagrant"}
2018/01/26 15:40:45 Waiting for RPC address for: C:\ProgramData\chocolatey\lib\packer\tools\packer.exe
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 [INFO] Packer version: 1.1.3
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Packer Target OS/Arch: windows amd64
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Built with Go Version: go1.9
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Attempting to open config file: C:\Users\demo\AppData\Roaming\packer.config
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 [WARN] Config file doesn't exist: C:\Users\demo\AppData\Roaming\packer.config
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:ma
p[] PostProcessors:map[] Provisioners:map[]}
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Setting cache directory: C:\Users\demo\workspace\packer-windows_my-PH7VQTN6RDUL23PJXSNDIGZXF5YME4XP2R3GVKXGJIWL7LIVCX5A\packe
r_cache
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 args: []string{"packer-post-processor-vagrant"}
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Plugin minimum port: 10000
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Plugin maximum port: 25000
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Plugin address: tcp 127.0.0.1:10000
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Waiting for connection...
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 Serving a plugin connection...
hyperv-iso output will be in this color.
2018/01/26 15:40:45 ui: hyperv-iso output will be in this color.
2018/01/26 15:40:45 ui:
2018/01/26 15:40:45 Build debug mode: false
2018/01/26 15:40:45 Force build: false
2018/01/26 15:40:45 On error:
2018/01/26 15:40:45 Preparing build: hyperv-iso
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 DiskSize: 61440
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 RamSize: 2048
2018/01/26 15:40:45 packer.exe: 2018/01/26 15:40:45 VMName: WindowsServer2016
2018/01/26 15:40:48 packer.exe: 2018/01/26 15:40:48 Using switch packer-hyperv-iso
2018/01/26 15:40:48 packer.exe: 2018/01/26 15:40:48 SwitchName: packer-hyperv-iso
2018/01/26 15:40:49 ui: Warnings for build 'hyperv-iso':
2018/01/26 15:40:49 ui: * For nested virtualization, when virtualization extension is enabled, mac spoofing should be allowed.
2018/01/26 15:40:49 ui: * For nested virtualization, when virtualization extension is enabled, there should be 4GB or more memory set for the vm, otherwise Hyper-V may fail to s
tart any nested VMs.
2018/01/26 15:40:49 ui:
2018/01/26 15:40:49 Waiting on builds to complete...
2018/01/26 15:40:49 Starting build run: hyperv-iso
2018/01/26 15:40:49 Running builder: hyperv-iso
2018/01/26 15:40:49 [INFO] (telemetry) Starting builder hyperv-iso
2018/01/26 15:40:49 packer.exe: 2018/01/26 15:40:49 Enter method: verifyPSVersion
Warnings for build 'hyperv-iso':
* For nested virtualization, when virtualization extension is enabled, mac spoofing should be allowed.
* For nested virtualization, when virtualization extension is enabled, there should be 4GB or more memory set for the vm, otherwise Hyper-V may fail to start any nested VMs.
2018/01/26 15:40:49 packer.exe: 2018/01/26 15:40:49 $host.version.Major output: 5
2018/01/26 15:40:49 packer.exe: 2018/01/26 15:40:49 Enter method: verifyPSHypervModule
2018/01/26 15:40:49 packer.exe: 2018/01/26 15:40:49 Enter method: verifyHypervPermissions
2018/01/26 15:40:50 ui: ==> hyperv-iso: Creating temporary directory...
2018/01/26 15:40:50 ui: ==> hyperv-iso: Downloading or copying ISO
==> hyperv-iso: Creating temporary directory...
2018/01/26 15:40:50 packer.exe: 2018/01/26 15:40:50 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
2018/01/26 15:40:50 packer.exe: 2018/01/26 15:40:50 Verifying checksum of C:\Users\demo\workspace\packer-windows_my-PH7VQTN6RDUL23PJXSNDIGZXF5YME4XP2R3GVKXGJIWL7LIVCX5A\packer_c
ache\49f719e23c56a779a991c4b4ad1680b8363918cd0bfd9ac6b52697d78a309855.iso
==> hyperv-iso: Downloading or copying ISO
2018/01/26 15:41:37 ui: hyperv-iso: Found already downloaded, initial checksum matched, no download needed: http://care.dlservice.microsoft.com/dl/download/1/4/9/149D5452-9B
29-4274-B6B3-5361DBDA30BC/14393.0.161119-1705.RS1_REFRESH_SERVER_EVAL_X64FRE_EN-US.ISO
hyperv-iso: Found already downloaded, initial checksum matched, no download needed: http://care.dlservice.microsoft.com/dl/download/1/4/9/149D5452-9B29-4274-B6B3-5361DBDA30B
C/14393.0.161119-1705.RS1_REFRESH_SERVER_EVAL_X64FRE_EN-US.ISO
2018/01/26 15:41:37 ui: ==> hyperv-iso: Creating floppy disk...
2018/01/26 15:41:37 packer.exe: 2018/01/26 15:41:37 Floppy path: C:\Users\demo\AppData\Local\Temp\3\packer405948047
2018/01/26 15:41:37 packer.exe: 2018/01/26 15:41:37 Initializing block device backed by temporary file
2018/01/26 15:41:37 packer.exe: 2018/01/26 15:41:37 Formatting the block device with a FAT filesystem...
==> hyperv-iso: Creating floppy disk...
2018/01/26 15:41:37 packer.exe: 2018/01/26 15:41:37 Initializing FAT filesystem on block device
2018/01/26 15:41:37 packer.exe: 2018/01/26 15:41:37 Reading the root directory from the filesystem
2018/01/26 15:41:37 ui: hyperv-iso: Copying files flatly from floppy_files
2018/01/26 15:41:37 ui: hyperv-iso: Copying file: ./answer_files/2016/Autounattend.xml
hyperv-iso: Copying files flatly from floppy_files
hyperv-iso: Copying file: ./answer_files/2016/Autounattend.xml
2018/01/26 15:41:37 ui: hyperv-iso: Copying file: ./scripts/disable-screensaver.ps1
2018/01/26 15:41:37 ui: hyperv-iso: Copying file: ./scripts/disable-winrm.ps1
2018/01/26 15:41:37 ui: hyperv-iso: Copying file: ./scripts/enable-winrm.ps1
2018/01/26 15:41:37 ui: hyperv-iso: Copying file: ./scripts/microsoft-updates.bat
hyperv-iso: Copying file: ./scripts/disable-screensaver.ps1
hyperv-iso: Copying file: ./scripts/disable-winrm.ps1
hyperv-iso: Copying file: ./scripts/enable-winrm.ps1
hyperv-iso: Copying file: ./scripts/microsoft-updates.bat
2018/01/26 15:41:37 ui: hyperv-iso: Copying file: ./scripts/unattend.xml
hyperv-iso: Copying file: ./scripts/unattend.xml
2018/01/26 15:41:37 ui: hyperv-iso: Copying file: ./scripts/sysprep.bat
hyperv-iso: Copying file: ./scripts/sysprep.bat
2018/01/26 15:41:37 ui: hyperv-iso: Copying file: ./scripts/win-updates.ps1
hyperv-iso: Copying file: ./scripts/win-updates.ps1
2018/01/26 15:41:37 ui: hyperv-iso: Done copying files from floppy_files
2018/01/26 15:41:37 ui: hyperv-iso: Collecting paths from floppy_dirs
2018/01/26 15:41:37 ui: hyperv-iso: Resulting paths from floppy_dirs : []
2018/01/26 15:41:37 ui: hyperv-iso: Done copying paths from floppy_dirs
hyperv-iso: Done copying files from floppy_files
hyperv-iso: Collecting paths from floppy_dirs
hyperv-iso: Resulting paths from floppy_dirs : []
hyperv-iso: Done copying paths from floppy_dirs
2018/01/26 15:41:37 ui: ==> hyperv-iso: Creating switch 'packer-hyperv-iso' if required...
==> hyperv-iso: Creating switch 'packer-hyperv-iso' if required...
2018/01/26 15:41:39 ui: ==> hyperv-iso: switch 'packer-hyperv-iso' already exists. Will not delete on cleanup...
==> hyperv-iso: switch 'packer-hyperv-iso' already exists. Will not delete on cleanup...
==> hyperv-iso: Creating virtual machine...
2018/01/26 15:41:39 ui: ==> hyperv-iso: Creating virtual machine...
2018/01/26 15:41:39 packer.exe: 2018/01/26 15:41:39 No existing virtual harddrive, not attaching.
2018/01/26 15:41:46 ui: ==> hyperv-iso: Enabling Integration Service...
==> hyperv-iso: Enabling Integration Service...
2018/01/26 15:41:48 ui: ==> hyperv-iso: Setting boot drive to os dvd drive C:\Users\demo\workspace\packer-windows_my-PH7VQTN6RDUL23PJXSNDIGZXF5YME4XP2R3GVKXGJIWL7LIVCX5A\packer_
cache\49f719e23c56a779a991c4b4ad1680b8363918cd0bfd9ac6b52697d78a309855.iso ...
==> hyperv-iso: Setting boot drive to os dvd drive C:\Users\demo\workspace\packer-windows_my-PH7VQTN6RDUL23PJXSNDIGZXF5YME4XP2R3GVKXGJIWL7LIVCX5A\packer_cache\49f719e23c56a779a9
91c4b4ad1680b8363918cd0bfd9ac6b52697d78a309855.iso ...
==> hyperv-iso: Mounting os dvd drive C:\Users\demo\workspace\packer-windows_my-PH7VQTN6RDUL23PJXSNDIGZXF5YME4XP2R3GVKXGJIWL7LIVCX5A\packer_cache\49f719e23c56a779a991c4b4ad1680b
8363918cd0bfd9ac6b52697d78a309855.iso ...
2018/01/26 15:41:48 ui: ==> hyperv-iso: Mounting os dvd drive C:\Users\demo\workspace\packer-windows_my-PH7VQTN6RDUL23PJXSNDIGZXF5YME4XP2R3GVKXGJIWL7LIVCX5A\packer_cache\49f719e
23c56a779a991c4b4ad1680b8363918cd0bfd9ac6b52697d78a309855.iso ...
2018/01/26 15:41:49 packer.exe: 2018/01/26 15:41:49 Copying floppy to temp location: C:\Users\demo\AppData\Local\Temp\3\packer520318267\floppy.vfd
2018/01/26 15:41:49 ui: ==> hyperv-iso: Mounting floppy drive...
==> hyperv-iso: Mounting floppy drive...
2018/01/26 15:41:50 ui: ==> hyperv-iso: Skipping mounting Integration Services Setup Disk...
==> hyperv-iso: Skipping mounting Integration Services Setup Disk...
2018/01/26 15:41:50 ui: ==> hyperv-iso: Mounting secondary DVD images...
2018/01/26 15:41:50 ui: ==> hyperv-iso: Configuring vlan...
2018/01/26 15:41:50 ui: ==> hyperv-iso: Starting the virtual machine...
==> hyperv-iso: Mounting secondary DVD images...
==> hyperv-iso: Configuring vlan...
==> hyperv-iso: Starting the virtual machine...
2018/01/26 15:41:59 ui: ==> hyperv-iso: Host IP for the HyperV machine: 169.254.104.148
==> hyperv-iso: Host IP for the HyperV machine: 169.254.104.148
==> hyperv-iso: Typing the boot command...
2018/01/26 15:41:59 ui: ==> hyperv-iso: Typing the boot command...
2018/01/26 15:41:59 ui: ==> hyperv-iso: Waiting for WinRM to become available...
2018/01/26 15:41:59 packer.exe: 2018/01/26 15:41:59 Waiting for WinRM, up to timeout: 2h0m0s
==> hyperv-iso: Waiting for WinRM to become available...
2018/01/26 15:42:06 packer.exe: 2018/01/26 15:42:06 [DEBUG] Error getting WinRM host: No ip address.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment