Skip to content

Instantly share code, notes, and snippets.

@bstoots
Created November 11, 2018 17:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bstoots/8dea306ea1c67ef767fe6583079c8697 to your computer and use it in GitHub Desktop.
Save bstoots/8dea306ea1c67ef767fe6583079c8697 to your computer and use it in GitHub Desktop.
HashiCorp Packer Error downloading VBoxGuestAdditions.iso
packer build --only=virtualbox-iso ubuntu-18.04-debug-amd64.json
2018/11/11 12:45:04 [INFO] Packer version: 1.3.2
2018/11/11 12:45:04 Packer Target OS/Arch: windows amd64
2018/11/11 12:45:04 Built with Go Version: go1.11.1
2018/11/11 12:45:04 Using internal plugin for docker
2018/11/11 12:45:04 Using internal plugin for hyperv-vmcx
2018/11/11 12:45:04 Using internal plugin for ncloud
2018/11/11 12:45:04 Using internal plugin for openstack
2018/11/11 12:45:04 Using internal plugin for oracle-classic
2018/11/11 12:45:04 Using internal plugin for amazon-ebs
2018/11/11 12:45:04 Using internal plugin for amazon-ebssurrogate
2018/11/11 12:45:04 Using internal plugin for googlecompute
2018/11/11 12:45:04 Using internal plugin for lxc
2018/11/11 12:45:04 Using internal plugin for qemu
2018/11/11 12:45:04 Using internal plugin for amazon-chroot
2018/11/11 12:45:04 Using internal plugin for hcloud
2018/11/11 12:45:04 Using internal plugin for triton
2018/11/11 12:45:04 Using internal plugin for parallels-iso
2018/11/11 12:45:04 Using internal plugin for virtualbox-iso
2018/11/11 12:45:04 Using internal plugin for virtualbox-ovf
2018/11/11 12:45:04 Using internal plugin for vmware-vmx
2018/11/11 12:45:04 Using internal plugin for vmware-iso
2018/11/11 12:45:04 Using internal plugin for file
2018/11/11 12:45:04 Using internal plugin for hyperv-iso
2018/11/11 12:45:04 Using internal plugin for lxd
2018/11/11 12:45:04 Using internal plugin for parallels-pvm
2018/11/11 12:45:04 Using internal plugin for oracle-oci
2018/11/11 12:45:04 Using internal plugin for alicloud-ecs
2018/11/11 12:45:04 Using internal plugin for amazon-ebsvolume
2018/11/11 12:45:04 Using internal plugin for amazon-instance
2018/11/11 12:45:04 Using internal plugin for cloudstack
2018/11/11 12:45:04 Using internal plugin for digitalocean
2018/11/11 12:45:04 Using internal plugin for null
2018/11/11 12:45:04 Using internal plugin for oneandone
2018/11/11 12:45:04 Using internal plugin for azure-arm
2018/11/11 12:45:04 Using internal plugin for profitbricks
2018/11/11 12:45:04 Using internal plugin for scaleway
2018/11/11 12:45:04 Using internal plugin for ansible
2018/11/11 12:45:04 Using internal plugin for windows-restart
2018/11/11 12:45:04 Using internal plugin for chef-solo
2018/11/11 12:45:04 Using internal plugin for file
2018/11/11 12:45:04 Using internal plugin for puppet-masterless
2018/11/11 12:45:04 Using internal plugin for puppet-server
2018/11/11 12:45:04 Using internal plugin for chef-client
2018/11/11 12:45:04 Using internal plugin for converge
2018/11/11 12:45:04 Using internal plugin for salt-masterless
2018/11/11 12:45:04 Using internal plugin for shell-local
2018/11/11 12:45:04 Using internal plugin for ansible-local
2018/11/11 12:45:04 Using internal plugin for powershell
2018/11/11 12:45:04 Using internal plugin for shell
2018/11/11 12:45:04 Using internal plugin for windows-shell
2018/11/11 12:45:04 Using internal plugin for vagrant-cloud
2018/11/11 12:45:04 Using internal plugin for docker-import
2018/11/11 12:45:04 Using internal plugin for docker-save
2018/11/11 12:45:04 Using internal plugin for googlecompute-export
2018/11/11 12:45:04 Using internal plugin for artifice
2018/11/11 12:45:04 Using internal plugin for shell-local
2018/11/11 12:45:04 Using internal plugin for vsphere-template
2018/11/11 12:45:04 Using internal plugin for alicloud-import
2018/11/11 12:45:04 Using internal plugin for docker-tag
2018/11/11 12:45:04 Using internal plugin for vsphere
2018/11/11 12:45:04 Using internal plugin for docker-push
2018/11/11 12:45:04 Using internal plugin for googlecompute-import
2018/11/11 12:45:04 Using internal plugin for manifest
2018/11/11 12:45:04 Using internal plugin for vagrant
2018/11/11 12:45:04 Using internal plugin for amazon-import
2018/11/11 12:45:04 Using internal plugin for checksum
2018/11/11 12:45:04 Using internal plugin for compress
2018/11/11 12:45:04 Attempting to open config file: C:\Users\bstoots\AppData\Roaming\packer.config
2018/11/11 12:45:04 [WARN] Config file doesn't exist: C:\Users\bstoots\AppData\Roaming\packer.config
2018/11/11 12:45:04 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[vmware-vmx:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-vmx cloudstack:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-cloudstack digitalocean:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-digitalocean null:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-null scaleway:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-scaleway parallels-iso:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-iso amazon-ebsvolume:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebsvolume profitbricks:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-profitbricks docker:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-docker googlecompute:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-googlecompute hcloud:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hcloud virtualbox-iso:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-iso hyperv-iso:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-iso oracle-classic:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-classic alicloud-ecs:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-alicloud-ecs oneandone:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oneandone azure-arm:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-azure-arm amazon-ebssurrogate:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebssurrogate amazon-chroot:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-chroot vmware-iso:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-iso lxd:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxd oracle-oci:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-oci hyperv-vmcx:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-vmcx openstack:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-openstack lxc:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxc qemu:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu amazon-instance:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-instance ncloud:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-ncloud amazon-ebs:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs triton:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-triton virtualbox-ovf:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-ovf file:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-file parallels-pvm:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-pvm] PostProcessors:map[vsphere-template:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere-template alicloud-import:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-alicloud-import amazon-import:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-amazon-import compress:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-compress vagrant-cloud:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant-cloud googlecompute-export:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-export artifice:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-artifice shell-local:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-shell-local docker-tag:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-tag docker-push:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-push vsphere:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere googlecompute-import:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-import vagrant:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant checksum:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-checksum docker-import:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-import docker-save:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-save manifest:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-manifest] Provisioners:map[windows-restart:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-restart puppet-masterless:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-masterless puppet-server:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-server powershell:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-powershell ansible:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible file:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-file chef-client:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-client shell-local:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell-local ansible-local:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible-local shell:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell windows-shell:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-shell chef-solo:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-solo converge:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-converge salt-masterless:C:\HashiCorp\Packer\packer.exe-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-salt-masterless]}
2018/11/11 12:45:04 Setting cache directory: C:\Users\bstoots\files\dev\code\github\bstoots\packer-templates\packer_cache
2018/11/11 12:45:04 Loading builder: virtualbox-iso
2018/11/11 12:45:04 Plugin could not be found. Checking same directory as executable.
2018/11/11 12:45:04 Current exe path: C:\HashiCorp\Packer\packer.exe
2018/11/11 12:45:04 Creating plugin client for path: C:\HashiCorp\Packer\packer.exe
2018/11/11 12:45:04 Starting plugin: C:\HashiCorp\Packer\packer.exe []string{"C:\\HashiCorp\\Packer\\packer.exe", "plugin", "packer-builder-virtualbox-iso"}
2018/11/11 12:45:04 Waiting for RPC address for: C:\HashiCorp\Packer\packer.exe
2018/11/11 12:45:04 packer.exe: 2018/11/11 12:45:04 [INFO] Packer version: 1.3.2
2018/11/11 12:45:04 packer.exe: 2018/11/11 12:45:04 Packer Target OS/Arch: windows amd64
2018/11/11 12:45:04 packer.exe: 2018/11/11 12:45:04 Built with Go Version: go1.11.1
2018/11/11 12:45:04 packer.exe: 2018/11/11 12:45:04 Attempting to open config file: C:\Users\bstoots\AppData\Roaming\packer.config
2018/11/11 12:45:04 packer.exe: 2018/11/11 12:45:04 [WARN] Config file doesn't exist: C:\Users\bstoots\AppData\Roaming\packer.config
virtualbox-iso output will be in this color.
2018/11/11 12:45:04 packer.exe: 2018/11/11 12:45:04 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2018/11/11 12:45:04 packer.exe: 2018/11/11 12:45:04 Setting cache directory: C:\Users\bstoots\files\dev\code\github\bstoots\packer-templates\packer_cache
2018/11/11 12:45:04 packer.exe: 2018/11/11 12:45:04 args: []string{"packer-builder-virtualbox-iso"}
2018/11/11 12:45:04 packer.exe: 2018/11/11 12:45:04 Plugin minimum port: 10000
2018/11/11 12:45:04 packer.exe: 2018/11/11 12:45:04 Plugin maximum port: 25000
2018/11/11 12:45:04 packer.exe: 2018/11/11 12:45:04 Plugin address: tcp 127.0.0.1:10000
2018/11/11 12:45:04 packer.exe: 2018/11/11 12:45:04 Waiting for connection...
2018/11/11 12:45:04 packer.exe: 2018/11/11 12:45:04 Serving a plugin connection...
2018/11/11 12:45:04 Build debug mode: false
2018/11/11 12:45:04 Force build: false
2018/11/11 12:45:04 On error:
2018/11/11 12:45:04 Preparing build: virtualbox-iso
2018/11/11 12:45:04 Waiting on builds to complete...
2018/11/11 12:45:04 Starting build run: virtualbox-iso
2018/11/11 12:45:04 Running builder: virtualbox-iso
2018/11/11 12:45:04 [INFO] (telemetry) Starting builder virtualbox-iso
2018/11/11 12:45:04 packer.exe: 2018/11/11 12:45:04 [DEBUG] builder/virtualbox: VBOX_MSI_INSTALL_PATH = C:\Program Files\Oracle\VirtualBox\
2018/11/11 12:45:04 packer.exe: 2018/11/11 12:45:04 VBoxManage path: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe
2018/11/11 12:45:04 packer.exe: 2018/11/11 12:45:04 VBoxManage --version output: 5.2.22r126460
2018/11/11 12:45:04 packer.exe: 2018/11/11 12:45:04 VirtualBox version: 5.2.22
2018/11/11 12:45:04 packer.exe: 2018/11/11 12:45:04 guest_additions_url is blank; querying driver for iso.
2018/11/11 12:45:04 packer.exe: 2018/11/11 12:45:04 Found Default Guest Additions ISO: C:\Program Files\Oracle\VirtualBox/VBoxGuestAdditions.iso
2018/11/11 12:45:04 packer.exe: 2018/11/11 12:45:04 Guest additions URL: file:///C:/Program%20Files/Oracle/VirtualBox/VBoxGuestAdditions.iso
==> virtualbox-iso: Retrieving Guest additions
virtualbox-iso: Using file in-place: file:///C:/Program%20Files/Oracle/VirtualBox/VBoxGuestAdditions.iso
2018/11/11 12:45:04 packer.exe: 2018/11/11 12:45:04 Acquiring lock to download: file:///C:/Program%20Files/Oracle/VirtualBox/VBoxGuestAdditions.iso
==> virtualbox-iso: Retrieving ISO
2018/11/11 12:45:04 packer.exe: 2018/11/11 12:45:04 Parsed URL: &url.URL{Scheme:"file", Opaque:"", User:(*url.Userinfo)(nil), Host:"", Path:"/C:/Program Files/Oracle/VirtualBox/VBoxGuestAdditions.iso", RawPath:"", ForceQuery:false, RawQuery:"", Fragment:""}
2018/11/11 12:45:04 packer.exe: 2018/11/11 12:45:04 [DEBUG] Using local file: C:/Program Files/Oracle/VirtualBox/VBoxGuestAdditions.iso
2018/11/11 12:45:04 packer.exe: 2018/11/11 12:45:04 Acquiring lock to download: http://releases.ubuntu.com/18.04/ubuntu-18.04.1-server-amd64.iso
2018/11/11 12:45:04 packer.exe: 2018/11/11 12:45:04 Verifying checksum of C:\Users\bstoots\files\dev\code\github\bstoots\packer-templates\packer_cache\7ab881c839eaf95214da1f059e53691eace3e3d5c2e17e14ff6d6bf9acf517c2.iso
2018/11/11 12:45:04 packer.exe: 2018/11/11 12:45:04 Verifying checksum of C:\Users\bstoots\files\dev\code\github\bstoots\packer-templates\packer_cache\7ab881c839eaf95214da1f059e53691eace3e3d5c2e17e14ff6d6bf9acf517c2.iso
2018/11/11 12:45:04 packer.exe: 2018/11/11 12:45:04 Parsed URL: &url.URL{Scheme:"http", Opaque:"", User:(*url.Userinfo)(nil), Host:"releases.ubuntu.com", Path:"/18.04/ubuntu-18.04.1-server-amd64.iso", RawPath:"", ForceQuery:false, RawQuery:"", Fragment:""}
2018/11/11 12:45:04 packer.exe: 2018/11/11 12:45:04 [DEBUG] Downloading: http://releases.ubuntu.com/18.04/ubuntu-18.04.1-server-amd64.iso
2018/11/11 12:45:04 packer.exe: 2018/11/11 12:45:04 Starting download over HTTP: http://releases.ubuntu.com/18.04/ubuntu-18.04.1-server-amd64.iso
2018/11/11 12:45:05 packer.exe: 2018/11/11 12:45:05 [DEBUG] (download) Unexpected HTTP response during HEAD request: 404 Not Found
virtualbox-iso: Error downloading: Error making HTTP GET request: 404 Not Found
==> virtualbox-iso: ISO download failed.
2018/11/11 12:45:05 ui error: ==> virtualbox-iso: ISO download failed.
Build 'virtualbox-iso' errored: ISO download failed.
2018/11/11 12:45:05 [INFO] (telemetry) ending virtualbox-iso
2018/11/11 12:45:05 ui error: Build 'virtualbox-iso' errored: ISO download failed.
==> Some builds didn't complete successfully and had errors:
2018/11/11 12:45:05 Builds completed. Waiting on interrupt barrier...
--> virtualbox-iso: ISO download failed.
2018/11/11 12:45:05 machine readable: error-count []string{"1"}
2018/11/11 12:45:05 ui error:
==> Builds finished but no artifacts were created.
==> Some builds didn't complete successfully and had errors:
2018/11/11 12:45:05 machine readable: virtualbox-iso,error []string{"ISO download failed."}
2018/11/11 12:45:05 ui error: --> virtualbox-iso: ISO download failed.
==> Builds finished but no artifacts were created.
2018/11/11 12:45:05 [INFO] (telemetry) Finalizing.
2018/11/11 12:45:05 waiting for all plugin processes to complete...
2018/11/11 12:45:05 C:\HashiCorp\Packer\packer.exe: plugin process exited
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment