-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error creating VM: error creating VM: 403 Permission check failed #289
Comments
Hi @maksimsamt I found when testing #281 these were the permissions I needed to reproduce the build, I definitely didn't need to give any access to
If I add the I'll try to dig into where the issue lies in the API and raise an issue upstream if we can't work around it in the Packer plugin. |
I've confirmed that Raised issue Telmate/proxmox-api-go#366, will try to submit a fix PR for |
Overview of the Issue
New plugin version 1.2.0 introduced PVE pool regression #281.
Unfortunately, newer version 1.2.1 does not solve completely this issue.
It seems that too many permissions are required for Packer build user to create vm/template.
Meanwhile version 1.1.8 with the same setup and Packer build user persmision config works fine.
Similar issue is in the Proxmox upstream API and my workaround how to solve this.
Reproduction Steps
In Proxmox PVE create Packer build user's stuff with isolated permissions.
Build user has only the necessary permissions, no more, no less, for example, does not have
/
permission.Inspired by #184:
Further, in Packer build scripts use this
packer@pve
user and/pools/packer-pool
pool.As mentioned above, this setup works in plugin version 1.1.8.
Perhaps, you have to define in packer-plugin-proxmox
minimumPermissions
as it is in terraform-provider-proxmox and as mentioned above in my workaround how to solve this, will be enough to add onlySys.Audit
permission for the root/
.In this case will be necessary to add
PVESysAdmin
role for thepacker-group
group:Plugin and Packer version
Packer v1.11.2
Plugin v1.2.1
Proxmox PVE v8.2.2
Simplified Packer Buildfile
n/a
Operating system and Environment details
n/a
Log Fragments and crash.log files
The text was updated successfully, but these errors were encountered: