Good news that you found what causing this. Thank you.
I also completely agree with your recomendation about more reliable code.
But while I am developing first "prototype" I am not using complex checks with re-sending requests nor even "try-catch".
I am not considering "border cases" or any...
Thanks a lot! Main goal was to get attention of developers or QA team. Currently I am in "progress of development" so this problem not urgent for me. Project is quite ambitious so I want to be sure how Proxmox Api will work under load. I was also testing "GET vm config" and found that "under...
So okay. Seems like I found what it was. UPID parsing working just fine.
Root cause is that sometimes Proxmox answer with "'{"data":null}'" for config change request (POST). So my script can not find UPID.
Example of request and response from logs of my script:
request was: curl -X POST -k...
Hello.
I am testing my script which uses Proxmox API (7.3-3) for creation/removing network interfaces (or other things in vm config).
While testing it was common situation to have 20+ network interfaces on vm.
So I wrote something like:
const hv = require('../hv')
//177 is vmid
for (let i...
Thank you!
It's working great.
I will add example for future readers:
curl -X PUT -k -b PVEAuthCookie= -H "CSRFPreventionToken:" -d delete=net24 https://192.168.1.222:8006/api2/json/nodes/node1/qemu/177/config -H 'Authorization...
Hello.
I can add network interface using this command:
curl -X PUT -k -b PVEAuthCookie= -H "CSRFPreventionToken:" -d net24=model%3Dvirtio%2Cbridge%3Dvmbr3334 https://192.168.1.222:8006/api2/json/nodes/node1/qemu/177/config -H 'Authorization...
Thank you for this information!
Is there any way to remove this restriction?
Proxmox codebase is quite large. Can you please point to what direction (in source code) I need to dig in order to change this behavior?
Hello.
I am trying to set vm vnc port using api.
Previously when I was performing this using "PVEAuthCookie authorization schema" everything worked fine.
Now I am trying to switch my script to "PVEAPIToken schema".
Problem is that my request does not change args and return '{"data":null}'...
Hello.
After I issue command "shutdown now" inside my linux guest (Centos 7) it stops for short moment and then starts again. Is this behavior correct?
How can I shutdown vm from OS?
Start on boot = no.
Qemu-agent installed and running.
ACPID installed and running.
VM is enabled in HA with...
Migration of another vm between same nodes:
2019-04-03 17:51:48 migration speed: 1170.29 MB/s - downtime 140 ms
2019-04-03 17:51:48 migration status: completed
2019-04-03 17:51:51 migration finished successfully (duration 00:00:20)
TASK OK
VM has 16 gb of ram.
Weird...
Hello.
HA migration of VM between two nodes was really slow (speed: 9.19 MB/s).
Total ram of VM is 8 gb.
Storage is shared (Ceph external).
Network speed between nodes is 10 Gbits/sec.
Usually migration speed is something like in this example: (1365.33 MB/s - downtime 90 ms).
Can you please...
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.