Hi,
I trying to use Packer with the Packer Proxmox ISO Builder but I do get a 401 error on ProxMox 8.1.3.
I have created this user/apikey and role assigned with this:
The Packer code
This is the error output
Does anybody know why this is failing? Thanks
I trying to use Packer with the Packer Proxmox ISO Builder but I do get a 401 error on ProxMox 8.1.3.
I have created this user/apikey and role assigned with this:
- pveum user add packer@pam
- pveum aclmod / -user packer@pam -role Administrator. <----- Just for testing purposes
- pveum user token add packer@pam packer-token --privsep=0
The Packer code
variables {
proxmox_url = "https://proxmox.xxxxx.xx:8006/api2/json"
proxmox_username = "packer@pam"
proxmox_apitoken = "packer@pam!packer-token=daa7f68e-8196-4131-881f-0d0675f02529" <--- Is a dummy value
}
packer {
required_plugins {
proxmox = {
version = " >= 1.1.6"
source = "github.com/hashicorp/proxmox"
}
}
}
source "proxmox-iso" "proxmox-test" {
proxmox_url = var.proxmox_url
username = var.proxmox_username
token = var.proxmox_apitoken
}
This is the error output
proxmox-iso.proxmox-test: output will be in this color.
==> proxmox-iso.proxmox-test: Creating VM
==> proxmox-iso.proxmox-test: No VM ID given, getting next free from Proxmox
==> proxmox-iso.proxmox-test: 401 no such user ('packer@pam=packer@pam')
Build 'proxmox-iso.proxmox-test' errored after 3 seconds 119 milliseconds: 401 no such user ('packer@pam=packer@pam')
Does anybody know why this is failing? Thanks