Matteo Calorio's latest activity

  • M
    Matteo Calorio replied to the thread Run commands on a guest.
    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...
  • M
    Matteo Calorio replied to the thread Run commands on a guest.
    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!
  • M
    Matteo Calorio replied to the thread Run commands on a guest.
    Here it is: # socat - /var/run/qemu-server/3006.qga {"execute": "guest-exec", "arguments": {"path": "/bin/bash", "arg": ["-c", "apt update"], "capture-output": true}} {"return": {"pid": 3566564}} {"execute": "guest-exec-status", "arguments"...
  • M
    Matteo Calorio replied to the thread Run commands on a guest.
    Sure, thanks! proxmox-ve: 8.0.2 (running kernel: 6.2.16-18-pve) pve-manager: 8.0.4 (running version: 8.0.4/d258a813cfa6b390) proxmox-kernel-helper: 8.0.3 pve-kernel-5.19: 7.2-15 proxmox-kernel-6.2.16-18-pve: 6.2.16-18 proxmox-kernel-6.2...
  • M
    Matteo Calorio replied to the thread Run commands on a guest.
    pvesh create /nodes/node01/qemu/906/agent/exec -command "apt" -command "update"
  • M
    Matteo Calorio replied to the thread Run commands on a guest.
    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...
  • M
    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...