pvesh

  1. 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
  2. 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...
  3. 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...
  4. 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...
  5. [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...
  6. 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...
  7. 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...
  8. 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...
  9. [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...
  10. pvesh command list

    Hi, I tried to run a command via the new qemu command api endpoint via pvesh, but do not know how to format this correctly. I haven't found any hints or usage examples in the usual places. root@proxmox ~ > pvesh create /nodes/proxmox/qemu/109/agent/exec -command id ┌─────┬───────┐ │ key │...
  11. add new disk to VM (via qm/pvesh) ?

    Is there a way do add a new disk to a VM using pvesh ? I use pvesh create /nodes/$(hostname -s)/storage/local/content -filename vm-XXXX-disk-0 -format raw -size 10G -vmid XXXX to create a new disk, then I run pvesh create /nodes/$(hostname -s)/qemu ..., but how can I add a 2nd / 3rd / ... disk...
  12. [SOLVED] No longer getting JSON response after update for pvesh get /cluster/resources --type vm

    We updated some of our servers last night to 5.2-9 and since then the "pvesh get /cluster/resources --type vm" command that used to return JSON now returns a text table with information. Since I use this in some code, is there any way to display/get it in JSON format as opposed to this table...
  13. Cannot query HA resource details with pvesh

    Proxmox version: 5.2-8/fdf39912 I'm trying to find out, which node a vm is currently routed to, so I thought this command might be useful: pvesh get /cluster/ha/resources/vm:101 However, it only sends back the following error message: Use of uninitialized value in string eq at...
  14. pvesh (better documentation)

    I am trying to automate the creation of QEMU images, but there isn't a lot of documentation that I can find about all the options that I can pass to the newest version of 'pvesh'. The man page is very lacking and even googling doesn't give many options.
  15. [SOLVED] pvesh output changes

    Within the last month or so pvesh has changed from outputting json to "pretty" output by default. I'm trying to obtain json output again but cant figure out how; pvesh refers to format options: # pvesh USAGE: pvesh set <api_path> [OPTIONS] [FORMAT_OPTIONS] Call API PUT on <api_path>...
  16. pvesh creation of lxc sends prompt to background?

    I notice that when I try to create an LXC container using the command line tool "pvesh", that after I create a new image from container it creates successfully but then the CLI sends the "pvesh" process to the background, and then i have to issue "fg" to bring the prompt back? pve:/> create...
  17. [SOLVED] API Changelog

    I have written a python wrapper for pvesh that integrates with Salt-Stack (not Salt Cloud). Going forward, I need to establish a review process for new releases of Proxmox VE so that API changes can be identified before we apply updates. I've looked through the pve-docs distributed with Proxmox...
  18. [SOLVED] PVESH or API: get cluster/backup/id not working

    The command `pvesh get cluster/backup` returns a list of defined backups in the following format: 200 OK [ { "compress" : "lzo", "dow" : "mon,tue,wed,thu,fri,sat,sun", "enabled" : "", "id" : "7d3875b8db02bfcb258d1904f0c6745af64db4ea:1", "mailnotification" ...
  19. pvesh and description

    If the description contains non-alphabetic characters, you can not create a snapshot on another server Run the command from the server p1 root@p1 # pvesh create /nodes/p1/qemu/125/snapshot -snapname "ss_test1" -description "automatically created" -vmstate false 200 OK root@p1 # pvesh create...

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE 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 your own in 60 seconds.

Buy now!