chriswayg / packer-proxmox-templates

:package: Packer templates for building Proxmox KVM images from ISO
171 stars 49 forks source link

Build problem: Error creating VM: 596 tls_process_server_certificate: certificate verify failed, error status #10

Open rkorzeniewski opened 3 years ago

rkorzeniewski commented 3 years ago

Hello,

Do you have any idea how to resolve it?

==> proxmox: Error creating VM: 596 tls_process_server_certificate: certificate verify failed, error status: (params: map[agent:1 boot:cdn cores:2 cpu:kvm64 description:Packer ephemeral build VM hotplug: ide2:local:iso/debian-10.7.0-amd64-netinst.iso,media=cdrom memory:1024 name:deb10-tmpl net0:virtio=A6:C3:EF:D4:D4:F7,bridge=vmbr1 numa:false onboot:false ostype:l26 scsi0:media=disk,size=8G,file=local:12000/vm-12000-disk-0.qcow2,format=qcow2 scsihw:lsi sockets:1 vmid:12000])

Radek

stephanGarland commented 3 years ago

I had two issues, either of which probably contributed to this problem.

First, my node is called pve, and the script is looking for proxmox. I first aliased it with /etc/hosts, but that didn't work. I had to change node in $OS_TEMPLATE/$OS_TEMPLATE.json from proxmox to pve.

Second, I used a domain name I had to get a cert via ACME/DNS.

Not sure which one of these fixed it. I did these out of order; the last thing I did before it started working was changing proxmox to pve in the JSON.

BenjaminM007 commented 2 years ago

I had two issues, either of which probably contributed to this problem.

First, my node is called pve, and the script is looking for proxmox. I first aliased it with /etc/hosts, but that didn't work. I had to change node in $OS_TEMPLATE/$OS_TEMPLATE.json from proxmox to pve.

Second, I used a domain name I had to get a cert via ACME/DNS.

Not sure which one of these fixed it. I did these out of order; the last thing I did before it started working was changing proxmox to pve in the JSON.

We had the same issue. Installing a cert resolved the issue rather than using the self signed one.