Recent content by Domenico

  1. D

    [TUTORIAL] API automation, Power ON/OFF vm and else.

    I've solved in another thread with the help of Folke (Proxmox Staff member): # notice the -r in the jq command to prevent the result from being enclosed in quotation marks and escaped curl -f -s -S -k --data-urlencode "username=root@pam" --data-urlencode "password=$PASSWORD"...
  2. D

    proxmox access with curl and TFA

    Thank you Folke, you really save my day!
  3. D

    [TUTORIAL] API automation, Power ON/OFF vm and else.

    Hi, what if the apiuser has TFA enable? How should I change the curl?
  4. D

    proxmox access with curl and TFA

    Hi Folke, I can't get it working, can you post an example of the "curl" command I should write?
  5. D

    proxmox access with curl and TFA

    anyone can help here? my goal is to adapt the script /usr/share/doc/pve-manager/examples/spice-example-sh in order to use oauth token......
  6. D

    proxmox access with curl and TFA

    Hi Folke, I've tried to rewrite it as you say, but it's not working: curl -f -s -S -k --data-urlencode "username=USERNAME" --data-urlencode "password=PASSWORD" "https://172.16.199.12:8006/api2/json/access/ticket"|jq '.data.ticket' > cookie then curl --silent --insecure --data...
  7. D

    proxmox access with curl and TFA

    anyone knows how to get a valid ticket with curl using TFA? I usually use this: curl -f -s -S -k --data-urlencode "username=USERNAME" --data-urlencode "password=PASSWORD" "https://172.16.199.12:8006/api2/json/access/ticket"|jq '.data.ticket' but how do I get a valid one when user has TFA?
  8. D

    can't migrate vm .... as it's a clone of ....

    Hi to all, I've got 2 server with proxmox 5.4 with replicated storage between the two using local ZFS filesystem in combination with replication feature included in proxmox. We have about 20 VM, not all of them always running, many of them being linked clone; I'm currently replicating all those...
  9. D

    Cannot boot Proxmox after Single Drive Chosen ZFS Raid 0

    Hi, I've quite the same configuration as Gurnsee, and I've made it working by going into BIOS and adding LEGACY as the 1st booting device. Hope this can help.