Skip to content

Instantly share code, notes, and snippets.

@mikejr83
Created August 3, 2017 15:39
Show Gist options
  • Save mikejr83/5e6cb5cbc3d53395fafc1971401c2115 to your computer and use it in GitHub Desktop.
Save mikejr83/5e6cb5cbc3d53395fafc1971401c2115 to your computer and use it in GitHub Desktop.
PACKER_LOG=1 packer build ../git/project/packer-hyper-v.json
2017/08/03 11:37:58 [INFO] Packer version: 1.0.3
2017/08/03 11:37:58 Packer Target OS/Arch: windows amd64
2017/08/03 11:37:58 Built with Go Version: go1.8.1
2017/08/03 11:37:58 Using internal plugin for amazon-instance
2017/08/03 11:37:58 Using internal plugin for parallels-pvm
2017/08/03 11:37:58 Using internal plugin for profitbricks
2017/08/03 11:37:58 Using internal plugin for vmware-vmx
2017/08/03 11:37:58 Using internal plugin for alicloud-ecs
2017/08/03 11:37:58 Using internal plugin for cloudstack
2017/08/03 11:37:58 Using internal plugin for docker
2017/08/03 11:37:58 Using internal plugin for oneandone
2017/08/03 11:37:58 Using internal plugin for vmware-iso
2017/08/03 11:37:58 Using internal plugin for amazon-ebs
2017/08/03 11:37:58 Using internal plugin for amazon-ebssurrogate
2017/08/03 11:37:58 Using internal plugin for azure-arm
2017/08/03 11:37:58 Using internal plugin for digitalocean
2017/08/03 11:37:58 Using internal plugin for file
2017/08/03 11:37:58 Using internal plugin for hyperv-iso
2017/08/03 11:37:58 Using internal plugin for parallels-iso
2017/08/03 11:37:58 Using internal plugin for qemu
2017/08/03 11:37:58 Using internal plugin for amazon-chroot
2017/08/03 11:37:58 Using internal plugin for virtualbox-ovf
2017/08/03 11:37:58 Using internal plugin for virtualbox-iso
2017/08/03 11:37:58 Using internal plugin for googlecompute
2017/08/03 11:37:58 Using internal plugin for null
2017/08/03 11:37:58 Using internal plugin for openstack
2017/08/03 11:37:58 Using internal plugin for triton
2017/08/03 11:37:58 Using internal plugin for amazon-ebsvolume
2017/08/03 11:37:58 Using internal plugin for windows-shell
2017/08/03 11:37:58 Using internal plugin for powershell
2017/08/03 11:37:58 Using internal plugin for puppet-masterless
2017/08/03 11:37:58 Using internal plugin for salt-masterless
2017/08/03 11:37:58 Using internal plugin for shell
2017/08/03 11:37:58 Using internal plugin for windows-restart
2017/08/03 11:37:58 Using internal plugin for ansible
2017/08/03 11:37:58 Using internal plugin for converge
2017/08/03 11:37:58 Using internal plugin for chef-solo
2017/08/03 11:37:58 Using internal plugin for file
2017/08/03 11:37:58 Using internal plugin for puppet-server
2017/08/03 11:37:58 Using internal plugin for shell-local
2017/08/03 11:37:58 Using internal plugin for ansible-local
2017/08/03 11:37:58 Using internal plugin for chef-client
2017/08/03 11:37:58 Using internal plugin for manifest
2017/08/03 11:37:58 Using internal plugin for shell-local
2017/08/03 11:37:58 Using internal plugin for vagrant-cloud
2017/08/03 11:37:58 Using internal plugin for artifice
2017/08/03 11:37:58 Using internal plugin for atlas
2017/08/03 11:37:58 Using internal plugin for docker-tag
2017/08/03 11:37:58 Using internal plugin for googlecompute-export
2017/08/03 11:37:58 Using internal plugin for amazon-import
2017/08/03 11:37:58 Using internal plugin for compress
2017/08/03 11:37:58 Using internal plugin for docker-push
2017/08/03 11:37:58 Using internal plugin for alicloud-import
2017/08/03 11:37:58 Using internal plugin for docker-save
2017/08/03 11:37:58 Using internal plugin for checksum
2017/08/03 11:37:58 Using internal plugin for docker-import
2017/08/03 11:37:58 Using internal plugin for vagrant
2017/08/03 11:37:58 Using internal plugin for vsphere
2017/08/03 11:37:58 Attempting to open config file: C:\Users\mgardner\AppData\Roaming\packer.config
2017/08/03 11:37:58 [WARN] Config file doesn't exist: C:\Users\mgardner\AppData\Roaming\packer.config
2017/08/03 11:37:58 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[vmware-iso:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-iso amazon-ebs:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs azure-arm:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-azure-arm hyperv-iso:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-iso parallels-iso:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-iso parallels-pvm:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-pvm profitbricks:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-profitbricks vmware-vmx:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-vmx amazon-chroot:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-chroot virtualbox-ovf:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-ovf file:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-file qemu:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu virtualbox-iso:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-iso googlecompute:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-googlecompute triton:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-triton amazon-instance:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-instance alicloud-ecs:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-alicloud-ecs cloudstack:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-cloudstack amazon-ebsvolume:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebsvolume null:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-null oneandone:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oneandone amazon-ebssurrogate:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebssurrogate digitalocean:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-digitalocean docker:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-docker openstack:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-openstack] PostProcessors:map[manifest:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-manifest atlas:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-atlas docker-tag:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-tag amazon-import:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-amazon-import docker-import:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-import vsphere:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere vagrant-cloud:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant-cloud docker-save:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-save checksum:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-checksum shell-local:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-shell-local artifice:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-artifice googlecompute-export:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-export alicloud-import:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-alicloud-import compress:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-compress docker-push:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-push vagrant:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant] Provisioners:map[puppet-masterless:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-masterless salt-masterless:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-salt-masterless chef-solo:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-solo puppet-server:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-server powershell:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-powershell shell:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell windows-restart:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-restart ansible-local:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible-local converge:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-converge shell-local:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell-local chef-client:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-client windows-shell:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-shell ansible:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible file:D:\packerio\bin\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-file]}
2017/08/03 11:37:58 Setting cache directory: D:\test\packer_cache
2017/08/03 11:37:58 Loading builder: hyperv-iso
2017/08/03 11:37:58 Plugin could not be found. Checking same directory as executable.
2017/08/03 11:37:58 Current exe path: D:\packerio\bin\packer.exe
2017/08/03 11:37:58 Creating plugin client for path: D:\packerio\bin\packer.exe
2017/08/03 11:37:58 Starting plugin: D:\packerio\bin\packer.exe []string{"D:\\packerio\\bin\\packer.exe", "plugin", "packer-builder-hyperv-iso"}
2017/08/03 11:37:58 Waiting for RPC address for: D:\packerio\bin\packer.exe
2017/08/03 11:37:59 packer.exe: 2017/08/03 11:37:59 [INFO] Packer version: 1.0.3
2017/08/03 11:37:59 packer.exe: 2017/08/03 11:37:59 Packer Target OS/Arch: windows amd64
2017/08/03 11:37:59 packer.exe: 2017/08/03 11:37:59 Built with Go Version: go1.8.1
2017/08/03 11:37:59 packer.exe: 2017/08/03 11:37:59 Attempting to open config file: C:\Users\mgardner\AppData\Roaming\packer.config
2017/08/03 11:37:59 packer.exe: 2017/08/03 11:37:59 [WARN] Config file doesn't exist: C:\Users\mgardner\AppData\Roaming\packer.config
2017/08/03 11:37:59 packer.exe: 2017/08/03 11:37:59 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2017/08/03 11:37:59 packer.exe: 2017/08/03 11:37:59 Setting cache directory: D:\test\packer_cache
2017/08/03 11:37:59 packer.exe: 2017/08/03 11:37:59 args: []string{"packer-builder-hyperv-iso"}
2017/08/03 11:37:59 packer.exe: 2017/08/03 11:37:59 Plugin minimum port: 10000
2017/08/03 11:37:59 packer.exe: 2017/08/03 11:37:59 Plugin maximum port: 25000
2017/08/03 11:37:59 packer.exe: 2017/08/03 11:37:59 Plugin address: tcp 127.0.0.1:10000
2017/08/03 11:37:59 packer.exe: 2017/08/03 11:37:59 Waiting for connection...
2017/08/03 11:37:59 packer.exe: 2017/08/03 11:37:59 Serving a plugin connection...
2017/08/03 11:37:59 Loading provisioner: shell
2017/08/03 11:37:59 Plugin could not be found. Checking same directory as executable.
2017/08/03 11:37:59 Current exe path: D:\packerio\bin\packer.exe
2017/08/03 11:37:59 Creating plugin client for path: D:\packerio\bin\packer.exe
2017/08/03 11:37:59 Starting plugin: D:\packerio\bin\packer.exe []string{"D:\\packerio\\bin\\packer.exe", "plugin", "packer-provisioner-shell"}
2017/08/03 11:37:59 Waiting for RPC address for: D:\packerio\bin\packer.exe
2017/08/03 11:37:59 packer.exe: 2017/08/03 11:37:59 [INFO] Packer version: 1.0.3
2017/08/03 11:37:59 packer.exe: 2017/08/03 11:37:59 Packer Target OS/Arch: windows amd64
2017/08/03 11:37:59 packer.exe: 2017/08/03 11:37:59 Built with Go Version: go1.8.1
2017/08/03 11:37:59 packer.exe: 2017/08/03 11:37:59 Attempting to open config file: C:\Users\mgardner\AppData\Roaming\packer.config
2017/08/03 11:37:59 packer.exe: 2017/08/03 11:37:59 [WARN] Config file doesn't exist: C:\Users\mgardner\AppData\Roaming\packer.config
2017/08/03 11:37:59 packer.exe: 2017/08/03 11:37:59 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2017/08/03 11:37:59 packer.exe: 2017/08/03 11:37:59 Setting cache directory: D:\test\packer_cache
2017/08/03 11:37:59 packer.exe: 2017/08/03 11:37:59 args: []string{"packer-provisioner-shell"}
2017/08/03 11:37:59 packer.exe: 2017/08/03 11:37:59 Plugin minimum port: 10000
2017/08/03 11:37:59 packer.exe: 2017/08/03 11:37:59 Plugin maximum port: 25000
2017/08/03 11:37:59 packer.exe: 2017/08/03 11:37:59 Plugin address: tcp 127.0.0.1:10000
2017/08/03 11:37:59 packer.exe: 2017/08/03 11:37:59 Waiting for connection...
2017/08/03 11:37:59 packer.exe: 2017/08/03 11:37:59 Serving a plugin connection...
2017/08/03 11:37:59 ui: hyperv-iso output will be in this color.
2017/08/03 11:37:59 ui:
2017/08/03 11:37:59 Build debug mode: false
2017/08/03 11:37:59 Force build: false
2017/08/03 11:37:59 On error:
2017/08/03 11:37:59 Preparing build: hyperv-iso
2017/08/03 11:37:59 packer.exe: 2017/08/03 11:37:59 DiskSize: 21440
2017/08/03 11:37:59 packer.exe: 2017/08/03 11:37:59 RamSize: 1024
2017/08/03 11:37:59 packer.exe: 2017/08/03 11:37:59 VMName: nodejs_microservice_host
2017/08/03 11:38:03 packer.exe: 2017/08/03 11:38:03 Using switch packer-hyperv-iso
2017/08/03 11:38:03 packer.exe: 2017/08/03 11:38:03 SwitchName: packer-hyperv-iso
2017/08/03 11:38:03 Waiting on builds to complete...
2017/08/03 11:38:03 Starting build run: hyperv-iso
2017/08/03 11:38:03 Running builder: hyperv-iso
2017/08/03 11:38:03 [INFO] (telemetry) Starting builder hyperv-iso
2017/08/03 11:38:03 packer.exe: 2017/08/03 11:38:03 Enter method: verifyPSVersion
2017/08/03 11:38:04 packer.exe: 2017/08/03 11:38:04 $host.version.Major output: 5
2017/08/03 11:38:04 packer.exe: 2017/08/03 11:38:04 Enter method: verifyPSHypervModule
2017/08/03 11:38:04 packer.exe: 2017/08/03 11:38:04 Enter method: verifyHypervPermissions
2017/08/03 11:38:06 [INFO] (telemetry) ending hyperv-iso
2017/08/03 11:38:06 [INFO] (telemetry) found error: Failed creating Hyper-V driver: PowerShell error: Exception calling "IsInRole" with "1" argument(s): "The trust relationship between the primary domain and the trusted domain failed.
"
At C:\Users\mgardner\AppData\Local\Temp\ps083746495.ps1:1 char:1
+ ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIden ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : SystemException
2017/08/03 11:38:06 ui error: Build 'hyperv-iso' errored: Failed creating Hyper-V driver: PowerShell error: Exception calling "IsInRole" with "1" argument(s): "The trust relationship between the primary domain and the trusted domain failed."
At C:\Users\mgardner\AppData\Local\Temp\ps083746495.ps1:1 char:1
+ ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIden ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : SystemException
2017/08/03 11:38:06 Builds completed. Waiting on interrupt barrier...
2017/08/03 11:38:06 machine readable: error-count []string{"1"}
2017/08/03 11:38:06 ui error:
==> Some builds didn't complete successfully and had errors:
2017/08/03 11:38:06 machine readable: hyperv-iso,error []string{"Failed creating Hyper-V driver: PowerShell error: Exception calling \"IsInRole\" with \"1\" argument(s): \"The trust relationship between the primary domain and the trusted domain failed.\r\n\"\r\nAt C:\\Users\\mgardner\\AppData\\Local\\Temp\\ps083746495.ps1:1 char:1\r\n+ ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIden ...\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n + CategoryInfo : NotSpecified: (:) [], MethodInvocationException\r\n + FullyQualifiedErrorId : SystemException"}
2017/08/03 11:38:06 ui error: --> hyperv-iso: Failed creating Hyper-V driver: PowerShell error: Exception calling "IsInRole" with "1" argument(s): "The trust relationship between the primary domain and the trusted domain failed.
"
At C:\Users\mgardner\AppData\Local\Temp\ps083746495.ps1:1 char:1
+ ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIden ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : SystemException
2017/08/03 11:38:06 ui:
==> Builds finished but no artifacts were created.
2017/08/03 11:38:06 waiting for all plugin processes to complete...
2017/08/03 11:38:06 D:\packerio\bin\packer.exe: plugin process exited
2017/08/03 11:38:06 D:\packerio\bin\packer.exe: plugin process exited
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment