mwrock / packer-templates

Templates for creating vagrant boxes
Other
536 stars 250 forks source link

Server 2016 broken link #119

Open demoklion opened 6 years ago

demoklion commented 6 years ago

ISO path is broken, see the website itself

λ 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:///C:/Program%20Files/Oracle/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.

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).

vbrinza commented 6 years ago

Try using https://software-download.microsoft.com/download/pr/Windows_Server_2016_Datacenter_EVAL_en-us_14393_refresh.ISO instead

dayne commented 5 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.

yves-vogl commented 5 years ago

@dayne This is related to the Windows Server ISO. The coharence in the log is a little bit misleading.

virtualbox-iso: Retrieving ISOis 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 [=>----------------------------------------------------------------------------------------------------------------------------------------------------------------]