-
Notifications
You must be signed in to change notification settings - Fork 13
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
Unable to get Plugin to proceed with installation with Packer v1.3.4 #5
Comments
@attacktac If it helps, you can try the following post-processor:
With VirtualBox installed/present, this should help you to generate a .vhd file from an existing .vmdk. Again, either of builders 'virtualbox-iso' or 'virtualbox-ovf' can help to generate .vmdk file. Same thing should also be achievable via adding the above command equivalent in the 'vboxmanage_post' block as its a 'VBoxManage' command. |
Thanks for the bug report. It's very likely the internal Packer API changed. I will look at fixing this shortly. If I recall correctly, the post-processor plugin works with 0.11. You can try that version as a temporary measure. You can download the older version from here: |
Packer 1.4.0 introduced breaking changes to the plugin interface[1]: 1. Builder, provisioner, and post-processor plugins now require a `context.Context`. 2. Post-processor plugins also return a Boolean indicating whether the plugin should ignore `keep_input_artifact`. As of writing, these changes are not documented in the plugin documentation or release notes[2][3]. References: 1. hashicorp/packer#7440 2. https://github.com/hashicorp/packer/blob/4639f92f638a5186e5dcefd733dd1f77ee44de35/website/source/docs/extending/custom-post-processors.html.md 3. https://github.com/hashicorp/packer/blob/4639f92f638a5186e5dcefd733dd1f77ee44de35/CHANGELOG.md Fixes: #5 (#5)
Packer 1.4.0 introduced a breaking change to the plugin interface (hashicorp/packer#7440, hashicorp/packer#7581). I updated the package for the new interface. Could you try running this pre-release version? https://github.com/benwebber/packer-post-processor-vhd/releases/tag/v1.0.0-rc.1 |
I tried the darwin release but still could not see the post-processor 'vhd' running nor the .vhd file. I tried keeping the plugin file after renaming it to following places:
|
If your Packer template is not confidential or sensitive, could you share it here or publish it in a Gist? I'd like to reproduce the issue. |
Well, let me trim down my template so that its sharable. Will test it once again and will share you the template. Quick query though - is it ok to skip the 'provisioners' altogether and still expect the 'vhd' post-processor to generate .vhd from the 'virtualbox-iso' builder's .ovf/.vmdk file? |
Thanks. A minimum working example (e.g., ISO → OVA → VHD) would be great.
Yep, post-processors only need the build artefact. So the template only needs to contain the builders and post-processors configuration. |
Hi, apologies for the delayed response. Here is the trimmed but complete JSON file that has workflow: ISO -> OVF -> post-processing to VHD file.
Also, the required http/ks.cfg is as follows (password hash is not valid in pasted code - but should not be a problem considering we just want to see build artifacts):
After successful completion of packer build the artifacts generated are:
So, no VHD file got generated. |
@benwebber any updates on this? |
Not working for me even after trying multiple ways:
Logs below:
So, tried alternate way of installing plugin via Go but got the following error:
So, maybe some changes in core Packer code has broken the interface contract here. So is it possible to know which is the latest stable Packer version with which the plugin works nicely.
Also, really thanks for this nice post-processor project. Hope I can make it work for me.
The text was updated successfully, but these errors were encountered: