mirror of
https://git.proxmox.com/git/qemu-server
synced 2026-01-28 11:44:57 +00:00
'input-data' can be used to pass arbitrary data to a guest when running
an agent command with 'guest-exec'. Most guest-agent implementations
treat this as STDIN to the command given by "path"/"arg", but some go as
far as relying solely on this parameter, and even fail if "path" or
"arg" are set (e.g. Mikrotik Cloud Hosted Router) - thus "command" needs
to be made optional.
Via the API, an arbitrary string can be passed, on the command line ('qm
guest exec'), an additional '--pass-stdin' flag allows to forward STDIN
of the qm process to 'input-data', with a size limitation of 1 MiB to
not overwhelm QMP.
Without 'input-data' (API) or '--pass-stdin' (CLI) behaviour is unchanged.
Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
|
||
|---|---|---|
| .. | ||
| Agent.pm | ||
| Cloudinit.pm | ||
| CPUConfig.pm | ||
| Helpers.pm | ||
| ImportDisk.pm | ||
| Machine.pm | ||
| Makefile | ||
| Memory.pm | ||
| Monitor.pm | ||
| OVF.pm | ||
| PCI.pm | ||
| USB.pm | ||