python

  1. O

    installing Prometheus exporter on latest Proxmox VE

    Hi there, i've updated proxmox 8.2.2 in lab and want to install prometheus exporter but got this error root@pm1:/etc/apt/sources.list.d# python3 -m pip install prometheus-pve-exporter Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen...
  2. L

    Try to use termproxy via Python and websockets

    I'm trying to connect programmatically in Python with the webshell over API. I first get an auth_ticket from API endpoint proxmox.access.ticket and a shell_ticket from API endpoint proxmox.nodes.localhost.termproxy. I can successfully connect via websocket and the first message should be the...
  3. T

    How to set up env variables while cloning a template using proxmoxer library in python

    Hi all, i need help to know that how to set up env variables while cloning a template using proxmoxer library in python I am cloning a template(Ubuntu) to create new vm's and i want to to set CLIENT_ID=client1/2/3.... env var in it
  4. M

    [SOLVED] apt-get upgrade isn't working

    Hi, I am not an administrator but using Proxmox to run some VMs as lab. I have the latest version PVE 8.2.4, From the web I was routinely updating the system but apt-get upgrade interrupted because of Power outage . Once the power is restored I tried apt-get upgrade once again but there is a...
  5. P

    [REST API] Most optimal way to obtain a list of all VMs and their configs?

    Currently, there doesn't appear to be a single http get to obtain all VMs in the cluster. Right now, I have to query the cluster to obtain the nodes, then query each node for what VMs they have, then on top of that, query each node again for each individual VM config. As you can imagine, when...
  6. O

    [SOLVED] Hi, i know proxmoxer is not developed by the proxmox team but

    Is it possible to post from within a flask application for example how do i start a container on button press.? i guess what i am asking is how this is done with proxmoxer api i can't find an example.
  7. G

    local socket programming wich port to open and where?

    Hey ive been writing a script in python, the purpose at the moment is a communicate Between Client and Server. I wrote a script for both sites, the Server gets a API key (in this moment its still a var (API_KEY) on both sites). Im only and really only a programmer, i have to admit i didnt...
  8. R

    How to clone with a proxmoxer VM from one node to the other node with a new name

    Hey guys, I have been looking for a way to clone a VM from one node to another with a proxmoxer library in Python, I have managed to set a connection to promox cluster. However, I have not found any way so far to clone the VMs, here is the code I have so far: def connect_proxmox(dc):proxmox =...
  9. Y

    Performance Testing

    Greetings my friends. I wish you a good ending of the week. I have this particular question on my mind it's been a while now. On my laptop, I run a Python code that takes about 30 seconds to compile and run. My objective is to run the same code on a cluster of 3 nodes and determine how much...
  10. S

    Clone multiple vms from a template at the same time (Proxmox API)

    Is it possible that you can clone a vm or a template multiple times at the same time? And if yes what parameter must i use in this python request. HTTP: POST /api2/json/nodes/{node}/qemu/{vmid}/clone And if no what would be the best way to achieve to clone a template or a vm multiple...
  11. S

    Is there a ternary conditional operator in Python?

    Is a ternary conditional operator available in Python? Update: I've got my answer from Scaler
  12. C

    dstat crash when shutting down VM

    Noticed a dstat crash while shutting down a VM. Just upgraded from Proxmox 6 to 7 yesterday, this was a fresh install of Proxmox 6 just a few days ago. No VM's had been made yet. Made a new VM today, Ubuntu Server 20.04. Used it for about an hour and then installed the qemu agent and did a...
  13. L

    Python watchdog and proxmox gui

    Hey all, i am trying to create a watchdog that will listen to proxmox firewall files and will alert me when a fw rule was modified. I am using python watchdog package. when I modify the file (directly from shell) my watchdog is notice that and alert me. When editing the same firewall file...
  14. V

    Proxmoxer possibily expire token

    Hi I integrated proxmox with cuckoo thanks to the use of proxmoxer, but after a few hours I have the error related to the lack of authentication: raise AuthenticationError ("Couldn't authenticate user: {0} to {1}". format (self.username, self.base_url + "/ access / ticket")) in...
  15. I

    [SOLVED] python : get lxc allocated ram\cores

    when running python script inside the lxc all the python functions i found return the original core count of the host, and it should return the amount of recesses allocated to the lxc. anyone got an idea ?
  16. Y

    PVE API for cloud-init drive

    hey guys, I'm working on extending current salt cloud module to support cloud-init (for qemu new vm's/clones) from a first look, looks quite simple, just add ide[n] config with the following for example: "ide0" : "local:101/vm-101-cloudinit.qcow2,media=cdrom" (this varies based on the next...

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!