[pve-devel] [PATCH qemu-server v2 0/8] improve qemu-guest-agent api

Dominik Csapak d.csapak at proxmox.com
Thu Feb 15 14:04:45 CET 2018


this series aims to improve the guest agent api (but maintains compatibility)
by adding an api call for each command, making some commands
a GET call instead of POST (important for the webui)
and adds some new commands added in qemu since 2.9

also this splits the code from Qemu.pm in its own file

changes from v1:
* use SOURCES in Makefile
* use a hash only for commands instead of array+hash
* simplify permission override (string and hash only)
* method is no longer optional
* new patch 8/8 to include the error from guest agent we get one

Dominik Csapak (8):
  improve PVE/API2/Makefile
  add agent flag to vm status api call
  move guest agent api call to its own file
  make an api call for each guest agent command
  add an guest agent index call
  change some guest agent commands to GET api calls
  add new guest-agent commands
  return error from guest-agent

 PVE/API2/Makefile      |   8 +-
 PVE/API2/Qemu.pm       |  72 ++----------------
 PVE/API2/Qemu/Agent.pm | 193 +++++++++++++++++++++++++++++++++++++++++++++++++
 PVE/API2/Qemu/Makefile |   6 ++
 PVE/CLI/qm.pm          |   3 +-
 PVE/QMPClient.pm       |   2 +
 6 files changed, 216 insertions(+), 68 deletions(-)
 create mode 100644 PVE/API2/Qemu/Agent.pm
 create mode 100644 PVE/API2/Qemu/Makefile

-- 
2.11.0





More information about the pve-devel mailing list