Open demoklion opened 6 years ago
I am seeing the same thing here. I dont' think this is related to the WIndows Server ISO.
You can see the 2012 build starts off trying to grab the VBoxGuestAdditions.iso file also but using the same URL but that one is successful.
┌─[±][master ✓][packer-templates][]
└─▪ elektron $ packer build -force -only virtualbox-iso vbox-2016.json
virtualbox-iso output will be in this color.
==> virtualbox-iso: Retrieving Guest additions
virtualbox-iso: Using file in-place: file:///usr/share/virtualbox/VBoxGuestAdditions.iso
==> virtualbox-iso: Retrieving ISO
virtualbox-iso: Error downloading: Error making HTTP GET request: 404 Not Found
==> virtualbox-iso: ISO download failed.
Build 'virtualbox-iso' errored: ISO download failed.
==> Some builds didn't complete successfully and had errors:
--> virtualbox-iso: ISO download failed.
==> Builds finished but no artifacts were created.
However a build of vbox-2012r2 starts of with same ISO download goal and same file:// URL but it works and builds up a new VM image.
┌─[±][master ✓][packer-templates][]
└─▪ elektron $ packer build -force -only virtualbox-iso vbox-2012r2.json
virtualbox-iso output will be in this color.
==> virtualbox-iso: Retrieving Guest additions
virtualbox-iso: Using file in-place: file:///usr/share/virtualbox/VBoxGuestAdditions.iso
==> virtualbox-iso: Retrieving ISO
Would be interested to hear if @demoklion managed to debug this issue. Starting my own debug now and will report back if I find anything further.
@dayne This is related to the Windows Server ISO. The coharence in the log is a little bit misleading.
virtualbox-iso: Retrieving ISO
is related to the ISO specified in iso_url
and not guest_additions_url
.
$ packer build templates/windows-server-2016.json
virtualbox-iso output will be in this color.
==> virtualbox-iso: Retrieving Guest additions
virtualbox-iso: Using file in-place: file:///Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso
==> virtualbox-iso: Retrieving ISO
virtualbox-iso: Error downloading: Error making HTTP GET request: 404 Not Found
==> virtualbox-iso: ISO download failed.
Build 'virtualbox-iso' errored: ISO download failed.
==> Some builds didn't complete successfully and had errors:
--> virtualbox-iso: ISO download failed.
==> Builds finished but no artifacts were created.
# Now replacing the URL as mention by @vbrinza
$ packer build templates/windows-server-2016.json
virtualbox-iso output will be in this color.
==> virtualbox-iso: Retrieving Guest additions
virtualbox-iso: Using file in-place: file:///Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso
==> virtualbox-iso: Retrieving ISO
1 items: 73.48 MiB / 6.49 GiB [=>----------------------------------------------------------------------------------------------------------------------------------------------------------------]
ISO path is broken, see the website itself
Tried replacing it but still doesn't seem to work for me. My issue may be somewhere else though (I'm new to VM orchestration).