qemu-server/PVE/QemuServer
Stefan Reiter d8f61794f6 fix #2612: allow input-data in guest exec and make command optional
'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>
2020-03-03 14:34:02 +01:00
..
Agent.pm fix #2612: allow input-data in guest exec and make command optional 2020-03-03 14:34:02 +01:00
Cloudinit.pm cloudinit: fix vm start hanging with disk on ZFS 2019-10-18 21:40:34 +02:00
CPUConfig.pm Add CPUConfig file and migrate some helpers 2020-01-22 15:47:32 +01:00
Helpers.pm add new helper to calculate timeout based on vm config 2020-01-15 17:36:16 +01:00
ImportDisk.pm qm importdisk: tell user to what VM disk we actually imported 2019-10-29 19:11:21 +01:00
Machine.pm version_guard scsi drive count 2020-02-12 10:32:57 +01:00
Makefile Add CPUConfig file and migrate some helpers 2020-01-22 15:47:32 +01:00
Memory.pm refactor: create QemuServer::Monitor for high-level QMP access 2019-11-20 16:29:23 +01:00
Monitor.pm mon_cmd: add explicit return 2019-11-30 17:24:55 +01:00
OVF.pm Initial support for importing OVF virtual machines 2017-09-25 13:31:55 +02:00
PCI.pm fix #2566: increase scsi limit to 31 2020-01-31 20:26:26 +01:00
USB.pm usb: Add USB3 capabilities to Spice USB devices 2019-09-21 13:22:17 +02:00