1. P

    Getting Status Code 500 when trying to create a vm through api

    "POST", f"/api2/json/nodes/{node}/qemu", data = {"node": node, "vmid": vmid, "memory": ram, "cores": cores, "scsi0": size, "storage": storage, "ide2": os_location, "ostype": ostype, "net0": net0} ("ORD2", 123, 2048, 2, "OneTBSSD:vm-123-disk-0,size=20G", "OneTBSSD"...
  2. W

    [SOLVED] Proxmox API - Token authentication error for vncshell (value 'root@pam!Test01' does not look like a valid user name)

    Hi, I'm currently testing the PVE-API and I've come across a strange behavior. To access the API I use API Tokens according to the instructions at https://pve.proxmox.com/wiki/Proxmox_VE_API. Almost all ednpoints work fine, but endpoints: HTTP: POST /api2/json/nodes/{node}/vncshell and HTTP...
  3. W

    OIDC Token question

    Hey Folks, New to Proxmox and was trying to poke around the API. I stumbled on a openid path ("/api2/json/access/openid") which holds 'auth-url' and 'login' endpoints. Does anyone have experience in using these endpoints to get a API ticket? I currently have working OIDC setup with Google and...
  4. E

    [SOLVED] API : User does not doe get responses, while being admin

    The issue is kind of strange: I'm using a service account to provision template using packer. This user, for debug purposes, is admin (is in a "service" group that has "/" administrator permissions) I created a token for it with NO privilege separation, that works fine through packer (tho I am...
  5. K

    Proxmox VE API: 596 Broken Pipe

    Hello guys, first it might be good to know what I'm trying to archieve with my program: Currently I'm building a Backend for a Hosting Company, wich has to create and Manage multiple Proxmox KVM Servers. For changing hostname etc. etc. we're using the guest-agent wich is also documented in the...
  6. S

    [SOLVED] Execute command in node with API

    Hi, i'm trying to do this : $params = array("commands" => json_encode(array( "pct exec ". $lxcid." -- bash -c 'echo PermitRootLogin Yes >> /etc/ssh/sshd_config'" )))); if($pve->post("/nodes/proxmox/execute/", $params){ echo '{"result": "good", "desc": "cmd 1 ok"}'; }else{ echo...
  7. C

    ACME API endpoint: 403 Permission check failed (user != root@pam) - despite user being root@pam

    The title says pretty much it all. :) I'm writing an API client and a Terraform provider for Proxmox VE. So far the `version` and `storage` endpoints are working (albeit not necessarily complete :D ). I'm now trying to create an ACME account but I get a `403 Permission check failed (user !=...
  8. U

    Proxmox API file-write special characters in content

    Hi, I-m trying to copy the content of script through the Proxmox guest agent to a windows client in Powershell. However, when I have a curly brackets "{" in the script the file-write will fail with the error {}":"property is not defined in schema and the schema does not allow additional...
  9. D

    Unable to create LXC via API PVE 7.1-8

    More details in this Github issue: https://github.com/ansible-collections/community.general/issues/3956 I am unable to create an LXC container in v7 via the API if I use the rootfs option to specify the disk size. If I omit the rootfs option, the container is created successfully. I have tried...
  10. R

    [SOLVED] Proxmox API?

    Hi folks, I`m new there, just want ask does proxmox have some kind of API for managing virtual machines? Like create\destroy, power on\off, maybe change settings, etc... ?
  11. K

    VM creation with API interface got timeout

    My application creates VMs step by step, But usually some VM creation gets error. trying to acquire lock... TASK ERROR: unable to create VM 105 - can't lock file '/var/lock/pve-manager/pve-storage-local' - got timeout It is a very simple configuration. There is only one directory storage with...
  12. C

    [SOLVED] sendkey to VM in pool?

    Hi! I'm experimenting with adding resource pool support for the Packer Proxmox builder, but I'm running into problems that the `sendkey` API call doesn't seem to work for users restricted to a pool (`Permission check failed (/, Sys.Modify) (403)`). Is this by design, or is it something that...
  13. 3

    API doc for automatic container rootfs initialization

    Hello! I'm using the REST API to create LXC containers, and one problem I had is that I could not find any documentation on how the rootfs parameter should be passed to have PVE to automatically create and format the root volume, and copy the template there. After some googling, I found on...
  14. A

    [SOLVED] proxmox cluster error get status

    Summary: Create cluster, add nodes (work only by --use_ssh), When try look at another node status - request https://node-a:8006/api2/json/nodes/node-b/storage/local/status - fail with error: 596 Connection time out But if login on each nodes - status returned Connection is direct, no any proxy...
  15. D

    API disk, diskread, diskwrite report '0'

    Hi, I am gathering stats from Proxmox 3.x and 4.x hosts using the JSON API (api2). However, all my VMs have 'diskread', 'diskwrite', and 'disk' reporting '0'. I have confirmed it's not just my API client either, as running `pvesh` and doing a `get /nodes/{node}/qemu` also shows those properties...
  16. N

    [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" ...
  17. V

    PVE API for qemu-guest-agent

    The qemu-guest-agent now support these qemu-guest-agent commands now as the below pic. And I wonder that if there is a patch to support more commands like 'guest-exec', 'guest-exec-status' ?
  18. S

    how to get ip and network details through rest api

    i have installed proxmox on centOS i am creating VM through REST api's provided VM are created through (qemu) i have installed agent on the created VM. when i try to get the ip of the VM created through REST "/api2/json/nodes/{node}/qemu/{vmid}/agent" it does not give the IP . i followed the...
  19. M

    Saltstack LXC Deployment not working

    Hi, we want to use salt cloud provider to deploy lxc & qemu. I am able to connect to the proxmox host, am able to list images and nodes, but when I try to deploy a container, I get following error: [DEBUG ] MasterEvent PULL socket URI: /var/run/salt/master/master_event_pull.ipc [DEBUG ]...


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!