Hello, I use APIs to create virtual machines. Do you need to manually go to the PVE server to change the configuration file for each virtual machine?Hi,
the easier method is to set up another VNC display for the VM as described here. Then you should be able to connect to the relevant port directly with your client.
No, you can set theHello, I use APIs to create virtual machines. Do you need to manually go to the PVE server to change the configuration file for each virtual machine?
args
parameter via API too (but only as root@pam
for security reasons, because it allows passing arbitrary arguments to kvm).thank youIs the VM running? You won't be able to access it via a browser, you need a VNC client.
Can I use the API to execute this command?View attachment 42766
I want to send a command to monitor through the API, but it does not work. What is my fault?AFAIK that's not currently possible via API. You could either set up a hook script for the VM and send the QMP commands there or instead, you might need to go for the approach with the vncproxy API endpoint after all.
EDIT: forgot to add the link to the hook script documentation.
Yes, using theI want to send a command to monitor through the API, but it does not work. What is my fault?View attachment 42769
/nodes/<node>/qemu/<ID>/monitor
endpoint should work. Do you have the Sys.Modify
permission on /
? Is the VM running? What error message do you get in the result?yes,vm is running,monitor don't have error messageIs the VM running? What error message do you get in the result of themonitor
request?
Thank you very much. My problem has been solved.Is the VM running? What error message do you get in the result of themonitor
request?
I can use the client to connect to my VNC, but I want to connect to the VNC of proxmox ve through my own VUE web page. What should I do?Is the VM running? What error message do you get in the result of themonitor
request?