VM ID management

k1ra56

New Member
Dec 9, 2024
2
0
1
Hi! The company has proxmox, where there is a pool of users.
Is there a way to assign a specific VM ID of virtual machines to a specific user?
For example, John will create VMs with only 100 to 150 IDs, and Sam from 150 to 200.
I use Google translate, I apologize for the mistakes)
 
Hi,
I haven't tested that, if it really behaves as expected, but you could try something like that on CLI pveum acl modify /vms/<vmid> --roles <roleToAssign> --user <userid@realm>. This works for existing and non-existing vms and prevents the user from using other vm ids, when creating a new vm.
But is has to be done for each and every vm id, meaning 51 entries for range 100-150 just for John and similar amount for Sam.
And of course, the user will need additional rights for network and datastore access.
 
Hi,
I haven't tested that, if it really behaves as expected, but you could try something like that on CLI pveum acl modify /vms/<vmid> --roles <roleToAssign> --user <userid@realm>. This works for existing and non-existing vms and prevents the user from using other vm ids, when creating a new vm.
But is has to be done for each and every vm id, meaning 51 entries for range 100-150 just for John and similar amount for Sam.
And of course, the user will need additional rights for network and datastore access.
Thanks! It's a really good idea, I'll definitely try it.