Hi, Not sure this right forum or not for my issue but would be happy if it can be redirected to the correct one.
I am trying to create packer image for automating the VM creation by using vsphere iso but when I run packer init , it says 'no release version found for the github.com/hashicorp/vsphere plugin matching the constraint(s): ">= 0.0.1' , I am calling highlighted source from packer template.
Below is the required plugin block which I have written in packer config file.
packer {
required_plugins {
vsphere = {
version = ">= 0.0.1"
source = "github.com/hashicorp/vsphere"
}
}
}
Also tried to copy the plugin file manually in required location and build it but it get fails fail with below error message.
PS C:\packer\Windows_base> packer build .\windows2019.json.pkr.hcl
vsphere-iso.autogenerated_1: output will be in this color.
==> vsphere-iso.autogenerated_1: Creating VM...
Build 'vsphere-iso.autogenerated_1' errored after 993 milliseconds 638 microseconds: error creating vm: resource pool 'CRL IMP CLUSTER/Resources/Build' not found
==> Wait completed after 994 milliseconds 853 microseconds
==> Some builds didn't complete successfully and had errors:
--> vsphere-iso.autogenerated_1: error creating vm: resource pool 'CRL IMP CLUSTER/Resources/Build' not found
Below is the plugin downloaded and copied on the packer plugin directory.
https://github.com/hashicorp/packer-plugin-vsphere/releases/tag/v0.0.1/packer-plugin-vsphere_v0.0.1_x5.0_windows_amd64.zip
Early response appreciated.