Skip to content

Instantly share code, notes, and snippets.

@dkirrane
Created January 29, 2019 16:24
Show Gist options
  • Save dkirrane/73979e9f7fbf8a1e2e704f6455b15339 to your computer and use it in GitHub Desktop.
Save dkirrane/73979e9f7fbf8a1e2e704f6455b15339 to your computer and use it in GitHub Desktop.
packer-builder-vsphere issues 126
2019/01/29 16:11:43 [INFO] Packer version: 1.3.3
2019/01/29 16:11:43 Packer Target OS/Arch: windows amd64
2019/01/29 16:11:43 Built with Go Version: go1.11.2
2019/01/29 16:11:43 [DEBUG] Discovered plugin: vsphere-clone = C:\apps\HashiCorp\packer-builder-vsphere-clone.exe
2019/01/29 16:11:43 [DEBUG] Discovered plugin: vsphere-iso = C:\apps\HashiCorp\packer-builder-vsphere-iso.exe
2019/01/29 16:11:43 Detected home directory from env var: C:\Users\myusername
2019/01/29 16:11:43 Using internal plugin for qemu
2019/01/29 16:11:43 Using internal plugin for triton
2019/01/29 16:11:43 Using internal plugin for vmware-vmx
2019/01/29 16:11:43 Using internal plugin for null
2019/01/29 16:11:43 Using internal plugin for oracle-oci
2019/01/29 16:11:43 Using internal plugin for parallels-pvm
2019/01/29 16:11:43 Using internal plugin for virtualbox-iso
2019/01/29 16:11:43 Using internal plugin for hyperv-vmcx
2019/01/29 16:11:43 Using internal plugin for lxc
2019/01/29 16:11:43 Using internal plugin for parallels-iso
2019/01/29 16:11:43 Using internal plugin for docker
2019/01/29 16:11:43 Using internal plugin for oracle-classic
2019/01/29 16:11:43 Using internal plugin for scaleway
2019/01/29 16:11:43 Using internal plugin for hyperv-iso
2019/01/29 16:11:43 Using internal plugin for vmware-iso
2019/01/29 16:11:43 Using internal plugin for amazon-ebs
2019/01/29 16:11:43 Using internal plugin for cloudstack
2019/01/29 16:11:43 Using internal plugin for file
2019/01/29 16:11:43 Using internal plugin for oneandone
2019/01/29 16:11:43 Using internal plugin for virtualbox-ovf
2019/01/29 16:11:43 Using internal plugin for amazon-ebssurrogate
2019/01/29 16:11:43 Using internal plugin for amazon-ebsvolume
2019/01/29 16:11:43 Using internal plugin for lxd
2019/01/29 16:11:43 Using internal plugin for alicloud-ecs
2019/01/29 16:11:43 Using internal plugin for googlecompute
2019/01/29 16:11:43 Using internal plugin for hcloud
2019/01/29 16:11:43 Using internal plugin for ncloud
2019/01/29 16:11:43 Using internal plugin for openstack
2019/01/29 16:11:43 Using internal plugin for amazon-instance
2019/01/29 16:11:43 Using internal plugin for azure-arm
2019/01/29 16:11:43 Using internal plugin for digitalocean
2019/01/29 16:11:43 Using internal plugin for amazon-chroot
2019/01/29 16:11:43 Using internal plugin for profitbricks
2019/01/29 16:11:43 Using internal plugin for puppet-masterless
2019/01/29 16:11:43 Using internal plugin for puppet-server
2019/01/29 16:11:43 Using internal plugin for shell-local
2019/01/29 16:11:43 Using internal plugin for windows-shell
2019/01/29 16:11:43 Using internal plugin for breakpoint
2019/01/29 16:11:43 Using internal plugin for chef-client
2019/01/29 16:11:43 Using internal plugin for chef-solo
2019/01/29 16:11:43 Using internal plugin for converge
2019/01/29 16:11:43 Using internal plugin for ansible-local
2019/01/29 16:11:43 Using internal plugin for salt-masterless
2019/01/29 16:11:43 Using internal plugin for shell
2019/01/29 16:11:43 Using internal plugin for ansible
2019/01/29 16:11:43 Using internal plugin for file
2019/01/29 16:11:43 Using internal plugin for powershell
2019/01/29 16:11:43 Using internal plugin for windows-restart
2019/01/29 16:11:43 Using internal plugin for docker-save
2019/01/29 16:11:43 Using internal plugin for shell-local
2019/01/29 16:11:43 Using internal plugin for vagrant-cloud
2019/01/29 16:11:43 Using internal plugin for vsphere
2019/01/29 16:11:43 Using internal plugin for artifice
2019/01/29 16:11:43 Using internal plugin for compress
2019/01/29 16:11:43 Using internal plugin for docker-push
2019/01/29 16:11:43 Using internal plugin for googlecompute-import
2019/01/29 16:11:43 Using internal plugin for manifest
2019/01/29 16:11:43 Using internal plugin for vagrant
2019/01/29 16:11:43 Using internal plugin for vsphere-template
2019/01/29 16:11:43 Using internal plugin for alicloud-import
2019/01/29 16:11:43 Using internal plugin for amazon-import
2019/01/29 16:11:43 Using internal plugin for docker-import
2019/01/29 16:11:43 Using internal plugin for docker-tag
2019/01/29 16:11:43 Using internal plugin for checksum
2019/01/29 16:11:43 Using internal plugin for googlecompute-export
2019/01/29 16:11:43 Detected home directory from env var: C:\Users\myusername
2019/01/29 16:11:43 Attempting to open config file: C:\Users\myusername\packer.config
2019/01/29 16:11:43 [WARN] Config file doesn't exist: C:\Users\myusername\packer.config
2019/01/29 16:11:43 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[vsphere-iso:C:\apps\HashiCorp\packer-builder-vsphere-iso.exe triton:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-triton cloudstack:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-cloudstack ncloud:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-ncloud digitalocean:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-digitalocean qemu:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu vmware-iso:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-iso amazon-ebs:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs alicloud-ecs:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-alicloud-ecs openstack:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-openstack amazon-instance:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-instance docker:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-docker hyperv-iso:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-iso oneandone:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oneandone virtualbox-ovf:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-ovf hcloud:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hcloud vsphere-clone:C:\apps\HashiCorp\packer-builder-vsphere-clone.exe vmware-vmx:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-vmx lxc:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxc profitbricks:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-profitbricks parallels-pvm:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-pvm virtualbox-iso:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-iso lxd:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxd hyperv-vmcx:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-vmcx oracle-classic:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-classic azure-arm:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-azure-arm file:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-file amazon-ebssurrogate:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebssurrogate googlecompute:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-googlecompute amazon-chroot:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-chroot null:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-null oracle-oci:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-oci parallels-iso:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-iso scaleway:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-scaleway amazon-ebsvolume:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebsvolume] PostProcessors:map[vsphere-template:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere-template googlecompute-export:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-export artifice:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-artifice compress:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-compress alicloud-import:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-alicloud-import docker-import:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-import docker-save:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-save manifest:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-manifest amazon-import:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-amazon-import checksum:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-checksum vagrant-cloud:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant-cloud vsphere:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere googlecompute-import:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-import vagrant:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant docker-tag:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-tag shell-local:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-shell-local docker-push:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-push] Provisioners:map[windows-shell:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-shell breakpoint:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-breakpoint puppet-masterless:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-masterless puppet-server:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-server shell-local:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell-local chef-solo:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-solo ansible:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible windows-restart:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-restart chef-client:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-client ansible-local:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible-local shell:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell powershell:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-powershell converge:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-converge salt-masterless:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-salt-masterless file:C:\apps\HashiCorp\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-file]}
2019/01/29 16:11:43 Detected home directory from env var: C:\Users\myusername
2019/01/29 16:11:43 Detected home directory from env var: C:\Users\myusername
2019/01/29 16:11:43 Setting cache directory: C:\DEV\kubernetes\kube-packer\stage1\packer_cache
2019/01/29 16:11:43 Loading builder: vsphere-iso
2019/01/29 16:11:43 Creating plugin client for path: C:\apps\HashiCorp\packer-builder-vsphere-iso.exe
2019/01/29 16:11:43 Starting plugin: C:\apps\HashiCorp\packer-builder-vsphere-iso.exe []string{"C:\\apps\\HashiCorp\\packer-builder-vsphere-iso.exe"}
2019/01/29 16:11:43 Waiting for RPC address for: C:\apps\HashiCorp\packer-builder-vsphere-iso.exe
2019/01/29 16:11:43 packer-builder-vsphere-iso.exe: 2019/01/29 16:11:43 Plugin minimum port: 10000
2019/01/29 16:11:43 packer-builder-vsphere-iso.exe: 2019/01/29 16:11:43 Plugin maximum port: 25000
2019/01/29 16:11:43 packer-builder-vsphere-iso.exe: 2019/01/29 16:11:43 Plugin address: tcp 127.0.0.1:10000
2019/01/29 16:11:43 packer-builder-vsphere-iso.exe: 2019/01/29 16:11:43 Waiting for connection...
2019/01/29 16:11:43 packer-builder-vsphere-iso.exe: 2019/01/29 16:11:43 Serving a plugin connection...
2019/01/29 16:11:43 Loading provisioner: shell
2019/01/29 16:11:43 Plugin could not be found. Checking same directory as executable.
2019/01/29 16:11:43 Current exe path: C:\apps\HashiCorp\packer.exe
2019/01/29 16:11:43 Creating plugin client for path: C:\apps\HashiCorp\packer.exe
2019/01/29 16:11:43 Starting plugin: C:\apps\HashiCorp\packer.exe []string{"C:\\apps\\HashiCorp\\packer.exe", "plugin", "packer-provisioner-shell"}
2019/01/29 16:11:43 Waiting for RPC address for: C:\apps\HashiCorp\packer.exe
2019/01/29 16:11:43 packer.exe: 2019/01/29 16:11:43 [INFO] Packer version: 1.3.3
2019/01/29 16:11:43 packer.exe: 2019/01/29 16:11:43 Packer Target OS/Arch: windows amd64
2019/01/29 16:11:43 packer.exe: 2019/01/29 16:11:43 Built with Go Version: go1.11.2
2019/01/29 16:11:43 packer.exe: 2019/01/29 16:11:43 Detected home directory from env var: C:\Users\myusername
2019/01/29 16:11:43 packer.exe: 2019/01/29 16:11:43 Attempting to open config file: C:\Users\myusername\packer.config
2019/01/29 16:11:43 packer.exe: 2019/01/29 16:11:43 [WARN] Config file doesn't exist: C:\Users\myusername\packer.config
2019/01/29 16:11:43 packer.exe: 2019/01/29 16:11:43 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2019/01/29 16:11:43 packer.exe: 2019/01/29 16:11:43 Detected home directory from env var: C:\Users\myusername
2019/01/29 16:11:43 packer.exe: 2019/01/29 16:11:43 Detected home directory from env var: C:\Users\myusername
2019/01/29 16:11:43 packer.exe: 2019/01/29 16:11:43 Setting cache directory: C:\DEV\kubernetes\kube-packer\stage1\packer_cache
2019/01/29 16:11:43 packer.exe: 2019/01/29 16:11:43 args: []string{"packer-provisioner-shell"}
2019/01/29 16:11:43 packer.exe: 2019/01/29 16:11:43 Plugin minimum port: 10000
2019/01/29 16:11:43 packer.exe: 2019/01/29 16:11:43 Plugin maximum port: 25000
2019/01/29 16:11:43 packer.exe: 2019/01/29 16:11:43 Plugin address: tcp 127.0.0.1:10000
2019/01/29 16:11:43 packer.exe: 2019/01/29 16:11:43 Waiting for connection...
2019/01/29 16:11:43 packer.exe: 2019/01/29 16:11:43 Serving a plugin connection...
2019/01/29 16:11:43 ui: vsphere-iso output will be in this color.
2019/01/29 16:11:43 ui:
2019/01/29 16:11:43 Build debug mode: false
2019/01/29 16:11:43 Force build: false
2019/01/29 16:11:43 On error: ask
2019/01/29 16:11:43 Preparing build: vsphere-iso
2019/01/29 16:11:44 packer-builder-vsphere-iso.exe: 2019/01/29 16:11:44 Unable to determine relative pathing; continuing with abspath.
2019/01/29 16:11:44 Waiting on builds to complete...
2019/01/29 16:11:44 Starting build run: vsphere-iso
2019/01/29 16:11:44 Running builder: vsphere-iso
2019/01/29 16:11:44 [INFO] (telemetry) Starting builder vsphere-iso
2019/01/29 16:11:47 ui: ==> vsphere-iso: Retrieving ISO
2019/01/29 16:11:47 packer-builder-vsphere-iso.exe: 2019/01/29 16:11:47 Acquiring lock to download: http://ftp.heanet.ie/pub/centos/7.6.1810/isos/x86_64/CentOS-7-x86_64-Minimal-1810.iso
2019/01/29 16:11:47 packer-builder-vsphere-iso.exe: 2019/01/29 16:11:47 Verifying checksum of C:\DEV\kubernetes\kube-packer\stage1\packer_cache\64ea5c155dbe87d626ccdffd05b6cfa30931fd6d45a5842927f195a3cf3d0913.iso
2019/01/29 16:11:50 ui: vsphere-iso: Found already downloaded, initial checksum matched, no download needed: http://ftp.heanet.ie/pub/centos/7.6.1810/isos/x86_64/CentOS-7-x86_64-Minimal-1810.iso
2019/01/29 16:11:50 ui: ==> vsphere-iso: Uploading 64ea5c155dbe87d626ccdffd05b6cfa30931fd6d45a5842927f195a3cf3d0913.iso to packer_cache/64ea5c155dbe87d626ccdffd05b6cfa30931fd6d45a5842927f195a3cf3d0913.iso
2019/01/29 16:11:50 ui: ==> vsphere-iso: File already upload
2019/01/29 16:11:50 ui: ==> vsphere-iso: Creating VM...
2019/01/29 16:11:51 ui: ==> vsphere-iso: Customizing hardware...
2019/01/29 16:11:51 ui: ==> vsphere-iso: Mount ISO images...
2019/01/29 16:11:51 ui: ==> vsphere-iso: Creating floppy disk...
2019/01/29 16:11:51 packer-builder-vsphere-iso.exe: 2019/01/29 16:11:51 Floppy path: C:\Users\myusername\AppData\Local\Temp\packer332683275
2019/01/29 16:11:51 packer-builder-vsphere-iso.exe: 2019/01/29 16:11:51 Initializing block device backed by temporary file
2019/01/29 16:11:51 packer-builder-vsphere-iso.exe: 2019/01/29 16:11:51 Formatting the block device with a FAT filesystem...
2019/01/29 16:11:51 packer-builder-vsphere-iso.exe: 2019/01/29 16:11:51 Initializing FAT filesystem on block device
2019/01/29 16:11:51 packer-builder-vsphere-iso.exe: 2019/01/29 16:11:51 Reading the root directory from the filesystem
2019/01/29 16:11:51 ui: vsphere-iso: Copying files flatly from floppy_files
2019/01/29 16:11:51 ui: vsphere-iso: Copying file: C:\DEV\kubernetes\kube-packer\stage1/../env/vcentergalvc01/ks.cfg
2019/01/29 16:11:51 ui: vsphere-iso: Done copying files from floppy_files
2019/01/29 16:11:51 ui: vsphere-iso: Collecting paths from floppy_dirs
2019/01/29 16:11:51 ui: vsphere-iso: Resulting paths from floppy_dirs : []
2019/01/29 16:11:51 ui: vsphere-iso: Done copying paths from floppy_dirs
2019/01/29 16:11:51 ui: ==> vsphere-iso: Uploading created floppy image
2019/01/29 16:11:51 ui: ==> vsphere-iso: Adding generated Floppy...
2019/01/29 16:11:52 ui: ==> vsphere-iso: Set boot order temporary...
2019/01/29 16:11:52 ui: ==> vsphere-iso: Power on VM...
2019/01/29 16:11:53 ui: ==> vsphere-iso: Waiting 10s for boot...
2019/01/29 16:12:03 ui: ==> vsphere-iso: Typing boot command...
2019/01/29 16:12:03 packer-builder-vsphere-iso.exe: 2019/01/29 16:12:03 Special code '<tab>' found, replacing with: CodeTab
2019/01/29 16:12:03 ui error: ==> vsphere-iso: error typing a boot command: ServerFaultCode: Cannot complete the operation due to an incorrect request to the server.
2019/01/29 16:12:03 ui: ==> vsphere-iso: Step "StepBootCommand" failed
2019/01/29 16:12:03 ui: ask: ==> vsphere-iso: [c] Clean up and exit, [a] abort without cleanup, or [r] retry step (build may fail even if retry succeeds)?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment