Hello,
I have created a client area to automatically create a vm when a client order one. The code is written in php and I am using the zzantares proxmox php library.
Here is the code of the creation in the proxmox side of my vm :
public function createVM(string $id_service, int $userid, int...
I cannot make DNS queries with PHP in LXC containers, in VM's it works without problems.
I have not changed anything in the Proxmox firewall settings, everything is set to default.
Normal DNS queries with "ping" work fine with PHP but not,
What could be the problem?
I'm a relatively new subscriber trying to get through Ceph install issues - and ended up having to open a pair of tickets in order to re-issue come licenses. After I was done I noticed that the page that should list open tickets was blank. I logged back in and refreshed the page and - yup -...
Hello everyone,
we use the API in Proxmox quite extensively, especially the agent -> exec function to execute commands in VMs.
After upgrading from Proxmox 7 to Proxmox 8, this specific function no longer works properly, we get specifically:
array(2) {
["data"]=>
NULL
["errors"]=>...
Hello
Im using PHP for connecting to the Proxmox API. Since the construction on how PHP is build, that means that there is at every page reload a new Connection with new ticket created (i think?)
So now im wondering if its possible to revoke a API ticket after every request and get a new one...
A little back story I have had many issues with setting up noVNC after countless hours of research I finally got everything working as designed. I would like to post a quick walkthrough of how I did this so people in the future will have less issues.
I am using the following API Wrapper for...
Hey Guys,
I am having a very hard time understanding the proxmox mail gateway's api calls...
I am 99% sure it's just me, so hopefully someone can help me?
How can I call for example the login function, and the GET /api2/json/config/domains/ function afterwards?
Also do I need to allow an IP...
Hello everyone,
I need help please. So, today I've been wrote script for update ip configuration using Proxmox VPE APi. I've read this the documentation https://pve.proxmox.com/pve-docs/api-viewer/index.html. From the parameter explanation, we can add the ip configuration with ipconfig[n]. It...
Guten Tag,
ich bin mittlerweile mit meinen nerven am Ende. Ich versuche gerade über meinen WebServer eine VNC Verbindung zum Proxmox Server aufzubauen. Steuerungen wie neustarten und stoppen von VMs mittels der Api funktioniert. Allerdings das einbinden der VNC geht nicht. Aber ich verstehe...
Hello.
I am trying to integrate Proxmox API into a PHP based tool we have, and I have been able to create a virtual machine, start it up and create a user.
I want to add the created user to the created VM as an administrator of that machine.
$fields = array(
'user' =>...
Hello,
Unable to retrieve data about the status of the machine, unfortunately no longer. The reason for this is that Proxmox version change.
Before:
root@prox:~# pvesh get /nodes/prox/lxc/101/status/current
running
root@prox:~#
So I could get data with PHP but with the new version it has...
We have 5 physical machines hosted at OVH. Each of them have Proxmox 5.2-10 installed
Machines are inside of OVH vRack.
we have separate LXC for database, separate LXC with loadbalancer and several separate instances with our web application stack (php and nginx).
When we put more LXCs with...
Hello, I'm trying to upload an iso image to proxmox server via web api using
CpuID/pve2-api-php-client
but it seems it's always error in "Undefined offset:1"
any solution for it?
this is my code
include (app_path().'/pve2-api-php-client/pve2_api.class.php');
$pve2 = new...
Hello, I have a problem with creation of LXC container via PHP.
API is connectig correctly with pve, because i can start / stop existing container, i am able to list nodes, and check what VIM is next. but while creating LXC i receive bool(false) value.
My code look's like that:
<?php
require...
Hello everyone,
I created from documentation the Client Api in 3 languages.
For now, supported languages are .Net, Php, Java.
For details see:
https://github.com/EnterpriseVE/eve2pve-api-dotnet
https://github.com/EnterpriseVE/eve2pve-api-php
https://github.com/EnterpriseVE/eve2pve-api-java...
The api (PHP) open the connection to the host and I see they get back time infos and something. The the api send a create statement and then I get every back the certificate error. I see in the host, that the remote host could not verify the certificate:
HTTP/1.1 200 OK
Cache-Control: max-age=0...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.