pvesh

  1. D

    pvesh snapshot snaptime syntax/format

    Hello, We are currently developing a script to get the creation date of a snapshot from a VM using this command : pvesh get "/nodes/$NODE/qemu/$VMID/snapshot" --output-format=json |jq .[].snaptime But we cannot understand the syntax/format of the output : 1734579627 1734423758 1734423290...
  2. J

    Get current disk size of LXC via API

    Hey everyone! I am trying to get the current disk size of a LXC with its rootfs on the local pool, ext4-based. Nothing tricky. This is on PVE 7.4. The command I am executing, from the node where the LXC is, is as follows: # pvesh get /nodes/proxmox6/lxc/109/config --output-format=json...
  3. M

    Small tags inconsistency

    Hello, I noticed that if I manually assign tags to a vm through the web interface, when retrieving the tags (i.e. with pvesh get nodes/<node>/qemu/<vmid>/config), they will be listed as tag1;tag2;tag3, while if I assign them through the command line (tested only at creation), when retrieving...
  4. W

    Unable to assign ISO for CDROM in VM via API

    First - I'm doing all with root API-key without limits. Previously doing with special limited key but not worked too. What I'm doing? I'm try to insert ISO in virtual CD-ROM. How I'm doing? See: ~: $ curl --insecure --silent -H "Authorization: PVEAPIToken=$PVEAPIToken" -X POST --data-urlencode...
  5. L

    [SOLVED] unable to create vm with qm

    So I'm unable to create a vm with qm or pvesh. I can create them with the webui no problem. The commands I use are bellow plus their output. root@proxmox:~# pvesm alloc VM-OS-Drives 106 vm-106-disk-0 1M --format raw successfully created 'VM-OS-Drives:vm-106-disk-0' root@proxmox:~# pvesm alloc...
  6. A

    API : Get all LV (disk and snap) to calculate the sum of all thin volume sizes

    Hello, I want to prevent this warning : I can list all LV with : lvs --units=g --nosuffix But, i want to get the list and calculate the sum from the API. I have try : pvesh get /nodes/<node>/scan/lvmthin --vg=<VGID> but the result is : However, the command behind this API endpoint is ...
  7. S

    proxmox 7.2-11 problem with 'pvesh' command speed response.

    Hello, I have problem with 'pvesh' command speed response. My cluster with 12x nodes with same kernel/proxmox version : CPU(s) 64 x AMD EPYC 7513 32-Core Processor (2 Sockets) Kernel Version Linux 5.19.7-2-pve #1 SMP PREEMPT_DYNAMIC PVE 5.19.7-2 (Tue, 04 Oct 2022 17:18:40 + PVE Manager Version...
  8. T

    pvesh meldet Fehler in ZFS.pm

    Hi, seit gestern meldet unser Monitoring UNKNOWN Meldungen bei Proxmox Checks. Die Checks benutzen pvesh auf der Maschine. Wenn ich als root pvesh auf der Console aufrufen kommt der Fehler: "my" variable $node masks earlier declaration in same scope at /usr/share/perl5/PVE/API2/Disks/ZFS.pm...
  9. M

    How to wipe and initialise disks with pvesh?

    Initialising with GTP: The command needed seems to be pvesh create /nodes/{node}/disks/initgpt (pve-docs) ...but I don't know hot to implement it. What would be the command to initialise /dev/sdc? Same problem with pvesh set /nodes/{node}/disks/wipedisk ...
  10. S

    API how to use 'GET /api2/json/nodes/{node}/qemu --full' via HTTP/proxmoxer

    Hello, How can I use HTTP style of CLI : pvesh get /nodes/{node}/qemu --full GET /api2/json/nodes/{node}/qemu --full ? here is working example from proxmoxer wrapper but without "full" def vm_current_all(targetnode): x = proxmox.nodes(targetnode).qemu().get() return x
  11. S

    proxmox 6.4-14 + influxdb metricserver missing stats

    Hello, I am using proxmox : Kernel Version Linux 5.4.174-2-pve #1 SMP PVE 5.4.174-2 (Thu, 10 Mar 2022 15:58:44 +0100) PVE Manager Version pve-manager/6.4-14/15e2bf61 and Influx : ii influxdb 1.8.10-1 amd64 Distributed time-series database. At...
  12. M

    Time Out pvesh on create vnc proxy

    Hi when i runn this code pvesh create /nodes/Mahmoudi/lxc/106/vncproxy i got this error on shell Timeout while waiting for port '5900' to get ready! but my gui consoles on proxmox worksfine and i want use this command for api thanks
  13. J

    My `pct create` script: seeking feedback, have questions about `--storage`

    1. can anyone find problems or offer general feedback on the script below? (The IP addresses have been redacted. Said script seems to run fine in initial testing.) 2. I have questions about the --rootfs vs --storage options as noted in my post reply below. 3. Is there a collection of...
  14. S

    API Question.

    I am running pve-manager/6.2-10 and have a VM running an old Natware 3.12 server system. The contents of the VM do not respond to shutdown commands. The only way to stop the VM is to enter the console and manually 'down' the server, exit to DOS then issue a 'stop'. I have written a hookscript...
  15. C

    Add firewall rule to whole cluster via pvesh

    Hi everyone, I would like to add a firewall rule via pvesh API to the cluster. First, my proxmox version: root@tfg ~ # pveversion -v proxmox-ve: 6.1-2 (running kernel: 4.19.0-8-amd64) pve-manager: 6.1-8 (running version: 6.1-8/806edfe1) pve-kernel-helper: 6.1-8 pve-kernel-5.3: 6.1-6...
  16. G

    [SOLVED] agent/exec-status and agent/file-read issue

    Aloha! Accoding to https://pve.proxmox.com/pve-docs/api-viewer/ api methods "GET /api2/json/nodes/{node}/qemu/{vmid}/agent/exec-status" and "GET /api2/json/nodes/{node}/qemu/{vmid}/agent/file-read" are using request type GET, there no present request type POST for this commands. However, for...
  17. J

    Error regarding "uninitialized value" using PVESH to update Alias value

    Hi Proxmox Devs, I am currently using the following version of Proxmox: root@pve1:/usr/share/perl5/PVE/API2/Firewall# pveversion pve-manager/6.0-5/f8a710d7 (running kernel: 5.0.18-1-pve) I am in the process of using pvesh to modify an alias and I am getting the following error...
  18. B

    Excecute commands on each node using pvesh

    I want to execute several commands to each one of my nodes, looking at Proxmox API is possible to send commands to a node using: pvesh create /nodes/{node}/execute --commands '["apt update", "apt upgrade pkg1, pkg2, pkg3"]' However I can't seem to find a proper way to create the JSON. Can...
  19. I

    Bug with CLI pvesh

    Hello i have problems with the command "pvesh create /nodes/{node}/migrateall". When i try from pve01: "pvesh create /nodes/pve03/migrateall -target pve01 -maxworkers 1 -vms 501" I can see the task and the migration in the webgui but in the cli i get following error: From pve03 the command...
  20. J

    [SOLVED] How to use pvesh set vm's sshkeys

    Hi, I can set cloud-init sshkey from Proxmox Web UI. But when I use "pvesh set /nodes/node1/qemu/1100/config --sshkeys "ssh-rsa AAAAB3NzaC1..." to set the sshkey, got the error: 400 Parameter verification failed. sshkeys: invalid format - invalid urlencoded string: ssh-rsa AAAA What is the...

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!