Thanks, I tried creating a token and filling in all the values in the script, but I get this error:
https://proxmox:8006/api2/json/nodes/proxmox/qemu/306/agent/exec
Gets executed in PID None
Traceback (most recent call last):
File...
Okay, thanks so much for your time. I think we'll move to the Ansible solution and check to see if the issue persists with a newer version of Proxmox as soon as we upgrade or open a ticket with our Proxmox subscription. Have a great day!
Thanks fba, yes, I'm currently using pvesh in scripts like this:
for vmid in 808 811 813 844; do
nodename=$(pvesh get /cluster/resources --type vm --output-format json | jq -r " .[] | select(.vmid == $vmid) | .node")
vmname=$(pvesh get...
Hi everyone, what's the best way to run commands from an host on a guest (Linux) that can also be on a different host?
Something like:
qm guest exec 100 --node node01 -- apt update -y, or:
pvesh set /nodes/node01/qemu/100/agent/exec -command...