chriswayg / packer-proxmox-templates

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

Error creating VM: 596 tls_process_server_certificate: certificate verify failed #8

Closed dmit2k closed 3 years ago

dmit2k commented 3 years ago

Hello,

would someone please help? While trying to build VM I'm getting the error:

--> 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/ubuntu-20.04.1-legacy-server-amd64.iso,media=cdrom kvm:true memory:1024 name:ubuntu2004-tmpl net0:virtio=DE:B4:8D:53:D0:00,bridge=vmbr1,firewall=false numa:false onboot:false ostype:l26 scsi0:media=disk,size=8G,file=local:21000/vm-21000-disk-0.qcow2,iothread=false,format=qcow2 scsihw:lsi sockets:1 vmid:21000])

I'm using Proxmox 6.2-14 and Letsencrypt certificates. Also tried self-signed certs but with the same error.

insecure_skip_tls_verify is set to false

Any ideas or suggestions?.. Thanks in advance!

dmit2k commented 3 years ago

One more thing, I also get the following line in /var/log/pveproxy/access.log when running build.sh (same 596 response code):

"POST /api2/json/nodes/proxmox/storage/local/content HTTP/1.1" 596 -

dmit2k commented 3 years ago

RESOLVED

the problem was with proxmox_host setting in the build.conf file: actually it should be a node name (not host name or fqdn)