Black Friday Black Friday SALE: 40% off every resource until December 1. Shop the sale

Preparing Proxmox

The role, pool, user and API token Proxmox VE needs.

On this page

The extension only needs access to its own pool, storages and bridge. Run these commands on a Proxmox node as root and change the pool, storage and bridge names to yours.

1. Create a role#

pveum role add PaymenterProxmox -privs "VM.Allocate VM.Clone VM.Audit VM.PowerMgmt VM.Console VM.Backup VM.Snapshot VM.Snapshot.Rollback VM.Config.CDROM VM.Config.CPU VM.Config.Cloudinit VM.Config.Disk VM.Config.HWType VM.Config.Memory VM.Config.Network VM.Config.Options VM.GuestAgent.Audit VM.GuestAgent.Unrestricted Datastore.AllocateSpace Datastore.Audit Pool.Audit SDN.Use"

On Proxmox VE 8, replace VM.GuestAgent.Audit VM.GuestAgent.Unrestricted with VM.Monitor.

2. Create a pool, a user and the permissions#

pveum pool add customers
pveum user add paymenter@pve
pveum acl modify /pool/customers -user paymenter@pve -role PaymenterProxmox
pveum acl modify /storage/local-zfs -user paymenter@pve -role PaymenterProxmox
pveum acl modify /storage/local -user paymenter@pve -role PaymenterProxmox
pveum acl modify /sdn/zones/localnetwork -user paymenter@pve -role PaymenterProxmox
pveum acl modify /nodes -user paymenter@pve -role PVEAuditor

local-zfs holds the disks, local holds the container templates and backups. Use your own storages if they are different.

3. Create the API token#

pveum user token add paymenter@pve billing --privsep 0

Copy the token ID (paymenter@pve!billing) and the secret into the server settings in Paymenter. The secret is shown only once.

Last updated

Still stuck? Open a ticket on the help page or ask in Discord. Mention your version and what you tried.