Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated configuration key: 'iso_checksum_type'. Please call packer fix against your template to update your template #141

Closed
binarytrails opened this issue Jun 6, 2021 · 6 comments

Comments

@binarytrails
Copy link

Fellow Archer here, got some issues seems to be similar to this one rapid7/metasploitable3#482

Here is a trace:

$ malboxes build win10_x64_analyst
Generating configuration files...
Configuration files are ready
Starting packer to generate the VM
----------------------------------
Error: Failed to prepare build: "virtualbox-iso"

1 error occurred:
	* Deprecated configuration key: 'iso_checksum_type'. Please call `packer fix`
against your template to update your template to be compatible with the current
version of Packer. Visit https://www.packer.io/docs/commands/fix/ for more
detail.





==> Wait completed after 3 microseconds

==> Builds finished but no artifacts were created.
----------------------------------
packer completed with return code: 1
Packer failed. Build failed. Exiting...

Thanks! :)

@Praveen1907
Copy link

i am also facing the same issues while i am running a malboxes tool. Any suggestions plz

@Svieg
Copy link
Collaborator

Svieg commented Aug 9, 2021

Sorry for the delay. have you tried the recommended packer fix command? Your command might also be packer-io fix.

Also, running malboxes with the -d switch will give you more output to debug from and can be really useful to troubleshoot.

If packer fix works, do not hesitate to send a PR so that others can benefit!

@binarytrails
Copy link
Author

the command in question to fix it:

packer fix -var-file=/home/$(whoami)/.cache/malboxes/packer_var_file.json /home/$(whoami)/.cache/malboxes/win10_x64_analyst.json > win10_x64_analyst.json.fixed

then, you have to run manually packer build since malboxes is generating and using the configuration:

packer build -var-file=/home/$(whoami)/.cache/malboxes/packer_var_file.json -on-error=abort win10_x64_analyst.json.fixed

still downloading the iso - quite heavy

@acidaniel
Copy link

For anyone still running into this issue, there was a PR that Drops the iso_checksum_type & iso_checksum_url fields In favor of simply using iso_checksum that will know what to do. So I simply removed that variable from the variables in the json files and is compiling correctly.

@Svieg
Copy link
Collaborator

Svieg commented Aug 20, 2021

Thx for the explanation, I created a PR so that everyone should get the fix :)

obilodeau added a commit that referenced this issue Aug 23, 2021
remove iso_checksum_type in win10 and win7 templates. Fix for #141
@obilodeau
Copy link
Member

Fix was merged in master. Thanks @Svieg for the fix, @binarytrails for the report and @acidaniel for the precise context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants