Failed to initialize build 'vsphere-iso': error initializing builder 'vsphere-iso'

Getting this error when running packer. I am on 1.54

why is this happening?

packer build -var-file=vars.json windows-server-2016.json

Failed to initialize build ‘vsphere-iso’: error initializing builder ‘vsphere-iso’: Incompatible API version with plugin. Plugin version: 4, Ours: 5

2 Likes

This means it is finding a manually-installed copy of the vsphere-iso provider in you local system.

Check the permission of the vsphere-iso binaries and make sure u are keeping in the right path and not anywhere else

Did this solve it? I chmod 777 /usr/local/bin/packer-builder-vsphere-iso and still get this problem.
Should I downgrade the packer from 1.5.6 to 1.4.x?