Newest versions of Packer - 1.5.0 and 1.5.1 don't work with vsphere-iso builder
1.5.0
1.5.1
"builders": [
{
"type": "vsphere-iso",
Windows 10
Failed to initialize build 'vsphere-iso': error initializing builder 'vsphere-iso': exec: "C:\Packer": file does not exist
==> Builds finished but no artifacts were created.
I get the same result with "vsphere-clone", also on Windows 10.
Same issue with Packer 1.5.1 on CentOS 7.
v1.5.0 contains an API change which requires third party plugins to be updated. My understanding is that the vSphere iso plugin is essentially unmaintained at the moment. We're working on taking over ownership of the plugin, but until then, you'll have to just use v 1.4.5 or lower.
Pull https://github.com/hashicorp/packer/pull/8480 is where vsphere builders are being merged into packer for those following this bug.
Do the builds at https://circleci.com/gh/hashicorp/packer/26799#artifacts/containers/0 work for y'all? (this is the build of the branch that @jefftp linked above)
Hi,
I'm still seeing a similar result with this new build (Windows version). Using the same JSON specifications that work under 1.4.5 I see:
PS C:\local\dev\images\windows\stage1> C:\local\app\packer.exe version
Packer v1.5.2-dev
PS C:\local\dev\images\windows\stage1> c:\local\app\packer.exe validate -var-file='..\..\env-dev.json' -var-file='.\win10-ltsc.json' .\windows.json
Failed to initialize build 'vsphere-iso': error initializing builder 'vsphere-iso': exec: "C:\\local\\app": file does not exist
Thanks for all of your work on this! Please let me know if there's anything else I can do to help.
@drewbowering have you removed the vsphere-iso third party plugin from your .plugins folder or wherever you have it stored? This new build has it built right into the Packer core but if it's still installed on your computer separately Packer will give the non-built-in one preference.
@SwampDragons: No, I hadn't. That was the problem. However now that I have, I'm seeing this:
PS C:\local\dev\images\windows\stage1> c:\local\app\packer.exe validate -var-file='..\..\env-dev.json' -var-file='.\win10-ltsc.json' .\windows.json
Failed to initialize build 'vsphere-iso': error initializing builder 'vsphere-iso': Unknown builder vsphere-iso
Is there anything else I should be doing?
Thanks!
That's very odd. I can't reproduce. I don't think the issue is a .packerconfig that's still pointing to the third party plugin, since we have a bug in config loading now that would be causing a different error. What do you get if you set env var PACKER_LOG=1
?
I see what happened. The artifact linked above was for PR #8551, not #8480. Earlier today I actually pulled down the repository and compiled the merge-vsphere-builder branch myself, and that worked perfectly.
Thanks!
Wonderful!
I compiled and this is working perfectly (vphsere-iso), thanks to everyone!
This is also available as a nightly build, for those of you who don't want to have to compile your own binary: https://github.com/hashicorp/packer/releases/tag/nightly
When is the nightly going to be released into an actual version?
@andyfisher100, soon ! We are freezing the merges and this should happen soon-ish.
I'm going to lock this issue because it has been closed for _30 days_ โณ. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Most helpful comment
I compiled and this is working perfectly (vphsere-iso), thanks to everyone!