ddelnano / packer-plugin-xenserver

A builder plugin for Packer.IO to support building XenServer images.
Mozilla Public License 2.0
73 stars 37 forks source link

packer init examples/ubuntu/ubuntu-2004.pkr.hcl fails #46

Open vmjfk opened 2 years ago

vmjfk commented 2 years ago

Failed getting the "github.com/ddelnano/xenserver" plugin: 1 error occurred:

ddelnano commented 2 years ago

@vmjfk what packer version are you using? If you aren't using the latest version, you will run into https://github.com/ddelnano/packer-plugin-xenserver/issues/40#issuecomment-1153326549.

Also please share the files necessary to reproduce the issue. Version 1.0.0 does not exist.

fanuelsen commented 2 years ago

try to specifiy the current version in the required_plugins section

packer { required_plugins { xenserver= { version = "v0.5.0" source = "github.com/ddelnano/xenserver" } } }

BMeach commented 1 year ago

I had the same issue as desribed above and this fixed it for me, seems to just need the docs updated?

dyipon commented 1 year ago

same here

piotrkochan commented 1 year ago

I'm getting error:

Build 'xenserver-iso.ubuntu-2004' errored after 2 seconds 47 milliseconds: Post "https://<sensitive>": dial tcp <sensitive>:443: connect: connection refused
==> Wait completed after 2 seconds 47 milliseconds

2023/01/27 01:23:07 machine readable: error-count []string{"1"}
==> Wait completed after 2 seconds 47 milliseconds
==> Some builds didn't complete successfully and had errors:

2023/01/27 01:23:07 machine readable: xenserver-iso.ubuntu-2004,error []string{"Post \"https://<sensitive>\": dial tcp <sensitive>:443: connect: connection refused"}
==> Some builds didn't complete successfully and had errors:
==> Builds finished but no artifacts were created.
--> xenserver-iso.ubuntu-2004: Post "https://<sensitive>": dial tcp <sensitive>:443: connect: connection refused
2023/01/27 01:23:07 [INFO] (telemetry) Finalizing.

==> Builds finished but no artifacts were created.
2023/01/27 01:23:07 waiting for all plugin processes to complete...
2023/01/27 01:23:07 /home/<sensitive>/.config/packer/plugins/github.com/ddelnano/xenserver/packer-plugin-xenserver_v0.5.1_x5.0_linux_amd64: plugin process exited
4censord commented 1 year ago

@piotrkochan The machine running packer can not connect to your Xcp-ng host. Note that packer connects directly to the xcp-ng server, (the pool primary), and not to Xen-Orchestra

pedroalvesbatista commented 1 year ago

try to specifiy the current version in the required_plugins section

packer { required_plugins { xenserver= { version = "v0.5.0" source = "github.com/ddelnano/xenserver" } } }

I tried this, still keep getting this error.

Should I give any extra permission for Packer binary ?