Closed NoobPeng97 closed 2 years ago
Second this. Image file 404s. Can fix by finding the replacement link for the image
[$ sudo packer build --only=qemu ./packer/templates/windows_2008_r2.json qemu: output will be in this color. ==> qemu: Retrieving ISO ==> qemu: Trying http://download.microsoft.com/download/7/5/E/75EC4E54-5B02-42D6-8879-D8D3A25FBEF7/7601.17514.101119-1850_x64fre_server_eval_en-us-GRMSXEVAL_EN_DVD.iso ==> qemu: Trying http://download.microsoft.com/download/7/5/E/75EC4E54-5B02-42D6-8879-D8D3A25FBEF7/7601.17514.101119-1850_x64fre_server_eval_en-us-GRMSXEVAL_EN_DVD.iso?checksum=md5%3A4263be2cf3c59177c45085c0a7bc6ca5 ==> qemu: Download failed bad response code: 404 ==> qemu: error downloading ISO: [bad response code: 404] Build 'qemu' errored after 788 milliseconds 842 microseconds: error downloading ISO: [bad response code: 404] ==> Wait completed after 788 milliseconds 979 microseconds ==> Some builds didn't complete successfully and had errors: --> qemu: error downloading ISO: [bad response code: 404] ==> Builds finished but no artifacts were created.
I opened ./packer/templates/windows_2008_r2.json and replaced the existing "iso_url": URL with another mirror for the same image and re-launched the script and it works just fine. Here is the link to a working file: "iso_url": "http://download.microsoft.com/download/4/1/D/41DEA7E0-B30D-4012-A1E3-F24DC03BA1BB/7601.17514.101119-1850_x64fre_server_eval_en-us-GRMSXEVAL_EN_DVD.iso",
Hmm for some reason it downloaded and booted but am getting an error related to "Windows could not apply the unattended answer file's
So now I am trying to just extract the virtualbox image as suggested in issue: 447
Same issue. Download failed with HTTP 404.
download https://vagrantcloud.com/rapid7/boxes/metasploitable3-win2k8/versions/0.1.0-weekly/providers/virtualbox.box , you can look this link ,work for me
This looks like a duplicate of #526 and #559. And it looks like PR #563 fixes the problem. The work-around is effectively what @truvatech mentioned... tweak the template JSON files & you're good to go.
Edit: Also notes from #559 indicate future versions will allow the user to specify the download URL to manage this easier as MSFT moves their URL around.
The download issue here was from vagrantcloud
and not related to the other 404 issues for building with packer. The 416
reported suggest you had a previous download cached from vagrantcloud
that needs to be removed to start fresh.
Issue Description
I have followed the quick-start guide on https://github.com/rapid7/metasploitable3 , i run the command listed one by one on powershell(admin) but it was unable to install the metasploitable 3-win2k8. It gave me this error 416 error code.
Host System
Command Output
==> win2k8: Box 'rapid7/metasploitable3-win2k8' could not be found. Attempting to find and install... win2k8: Box Provider: virtualbox win2k8: Box Version: >= 0 ==> win2k8: Loading metadata for box 'rapid7/metasploitable3-win2k8' win2k8: URL: https://vagrantcloud.com/rapid7/metasploitable3-win2k8 ==> win2k8: Adding box 'rapid7/metasploitable3-win2k8' (v0.1.0-weekly) for provider: virtualbox win2k8: Downloading: https://vagrantcloud.com/rapid7/boxes/metasploitable3-win2k8/versions/0.1.0-weekly/providers/virtualbox.box ==> win2k8: Box download is resuming from prior download progress win2k8: An error occurred while downloading the remote file. The error message, if any, is reproduced below. Please fix this error and try again.
The requested URL returned error: 416 PS C:\Windows\system32\metasploitable3-workspace>