Recent content by Daxcor

  1. D

    Token permissions and creating lxc container

    Ok, you can't even use rbd for the rootfs. <sigh>. So In reality only local host.
  2. D

    Token permissions and creating lxc container

    Ok I am still having the same issue. I moved the template to the local storage. { "vmid": 9011, "hostname": "harry", "ostemplate": "local:vztmpl/debian13-custom-20251002-dev.tar.gz", "rootfs": "volume=vm_pool,size=3G", "memory": 1536, "cores": 1, "cpulimit": 0.5...
  3. D

    Token permissions and creating lxc container

    So the issue, is the os template storage. The bind mount from cephfs is the action that is not permitted, not the rbd volumes. So I would have to make a copy of the template on each proxmox node in the local storage in order for this to work. Or, I use the root@pam via the ticket login...
  4. D

    Token permissions and creating lxc container

    Hello, I am trying to create a lxc via the 8.4 api. I created a apitoken on the root user with propagated permissions. Here is the content I am using to send to the api { vmid: 9011, hostname: 'harry', ostemplate: 'cephfs:vztmpl/debian13-custom-20251002-dev.tar.gz', storage...
  5. D

    Deleting backups via api - Unexpected Content error

    I am trying to delete backups for a specific vmid. here is the code: curl --location --request DELETE 'http://pve0.mgmt.local:8006/api2/json/nodes/pve0/storage/tempbackup/prunebackups' \ --header 'Authorization: PVEAPIToken=api@pve!apiToken=redacted' \ --header 'Content-Type: application/json'...
  6. D

    deleting vm via api, what does purge: true do?

    There is an option to purge when deleting a vm. The description is "Remove VMID from configurations, like backup & replication jobs and HA." Question, if it removes it from the backup configuration, does that cascade down to the proxmox backup server and delete the backups as well? Thanks
  7. D

    Creating VM via api - needs root privilages.

    Hello, I am using the api to create a fresh vm by importing a qcow2 image, in this case a default debain 12 qcow2 image. Here is my json string that I am using to create the vm . { "vmid": "222", "name": "jack", "agent": 1, "balloon": 512, "cores": 1, "description"...
  8. D

    Cloud Init and Snippets how?

    Hello, I am starting my journey in using a custom cloud-init via a snippet. I am creating the vms using the proxmox API interface. Reading the api docs I get this: cicustom: [meta=<volume>] [,network=<volume>] [,user=<volume>] [,vendor=<volume>] cipassword: Password citype:: configdrive2...
  9. D

    [SOLVED] Can't wipe old boot drive

    From another post Hi, if the disk is actively in use, it cannot be cleanly wiped (the old user might still think it owns the disk afterwards...). For the LVM disks, check the output of pvsand remove the volume groups on the disks you want to wipe with vgremove. For the device-mapped disks...
  10. D

    [SOLVED] Can't wipe old boot drive

    I have upgraded my cluster to new boot drives using zfs1 mirroring on sdc and sdd. All is going well. I want to remove the old drives from the chassis. I wanted to wipe the drives using proxmox before I do. I am trying to remove sda When I try to wipe the drive I get the error `disk/partition...
  11. D

    Reinstalling proxmox and ceph - keeping osd

    Hello, I wish to rebuild a host with a new installation of proxmox and ceph. Is it possible to "out" the osd, reinstall, and then "in" the osd? Is it that simple? I could destroy the osd do the reinstall and then rebuild the osd from replication , but I am trying not to do that. Any...
  12. D

    Help with api permissions

    Upon further reading The user needs 'VM.Backup' permissions on any VM, and 'Datastore.AllocateSpace' on the backup storage (and fleecing storage when fleecing is used). The 'tmpdir', 'dumpdir', 'script' and 'job-id' parameters are restricted to the 'root@pam' user. The 'maxfiles' and...
  13. D

    Help with api permissions

    Here is the identity & permissions I have setup. pveum user add foundry@pve --password "<redacted>" --email "admin@foundryserver.com" pveum user token add foundry@pve foundryApi --comment "API token for Foundry VM management" pveum role add FoundryApiRole --privs...
  14. D

    How to find out if a clone is complete via the api.

    You are correct, my whole code base uses the username as a primary index so I just continued here in proxmox. Once you pointed that out I can see that it can't work in this context.
  15. D

    How to find out if a clone is complete via the api.

    Ok, so far things are looking good. However, I am noticing that the name of the vm gets changed AFTER the clone has completed. So it starts out "VM 2000" and then eventually changes to "bob". It looks like when I search for the upid to find out if it is completed, I get an exitstatus = ok...