VM Create/Edit returning "only root can set 'affinity' config"

alaland

New Member
Apr 8, 2025
1
1
1
Hello, everyone,

I'm integrating the PVE with one application using the API, however, when I try to define an affinity on the VM, the API returns error 500 with the message "only root can set 'affinity' config".

Is there anything I can do to solve this issue?

API Endpoint used:

Create [POST] - /api2/json/nodes/{node}/qemu
Edit [POST] - /api2/json/nodes/{node}/qemu/{vmid}/config

Proxmox Version: 8.3.5
 
  • Like
Reactions: notgeneric
the linked bug report is about allowing affinity to be set by non-root users, if that is your issue, then yes.