We want to set up a automated virtual environment with Proxmox and CHR. We are wanting to communicate directly with CHR through the agent so that we don't have open web and ssh portals in our network that users could see. I currently have a CHR router set up in a proxmox host and confirmed that the agent works. The issue is that when I go to send a command using this link 'https://{proxhost}:8006/api2/json/nodes/{node}/qemu/{CHRVMID}/agent/exec?command="/ip address print"' or 'https://{proxhost}:8006/api2/json/nodes/{node}/qemu/{CHRVMID}/agent/exec?command=":ip address print"' it returns file not found.
The issue I am finding is that CHR is a router and does not allow you into the underlining file system and can not do for example 'bin/bash <commands>' and I am unsure how to get around this.
I have seen other posts about similar topic and none of them have seem to lead me to the resolution I need. We would like to avoid sshing into the servers and would like to stick with the API. How do you recommend I continue?
How would you normally/recommend go about sending a command to CHR with the QEMU agent?
Does the exec command need input-arguments and capture-output need implemented in /api2/json/nodes/{node}/qemu/{vmid}/agent/exec?
The issue I am finding is that CHR is a router and does not allow you into the underlining file system and can not do for example 'bin/bash <commands>' and I am unsure how to get around this.
I have seen other posts about similar topic and none of them have seem to lead me to the resolution I need. We would like to avoid sshing into the servers and would like to stick with the API. How do you recommend I continue?
How would you normally/recommend go about sending a command to CHR with the QEMU agent?
Does the exec command need input-arguments and capture-output need implemented in /api2/json/nodes/{node}/qemu/{vmid}/agent/exec?