between qemu 2.9 and 2.11 there were added some new commands,
the guest agent inside the vm has to support these

Signed-off-by: Dominik Csapak <d.csa...@proxmox.com>
---
 PVE/API2/Qemu/Agent.pm | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/PVE/API2/Qemu/Agent.pm b/PVE/API2/Qemu/Agent.pm
index 24b44a9..40d9ff7 100644
--- a/PVE/API2/Qemu/Agent.pm
+++ b/PVE/API2/Qemu/Agent.pm
@@ -28,6 +28,11 @@ my $guest_agent_commands = [
     'suspend-ram',
     'suspend-disk',
     'shutdown',
+    # added since qemu 2.9
+    'get-host-name',
+    'get-osinfo',
+    'get-users',
+    'get-timezone',
     ];
 
 # properties for each command, optional
@@ -57,6 +62,18 @@ my $ga_cmd_properties =  {
     'info' => {
        method => 'GET',
     },
+    'get-host-name' => {
+       method => 'GET',
+    },
+    'get-osinfo' => {
+       method => 'GET',
+    },
+    'get-users' => {
+       method => 'GET',
+    },
+    'get-timezone' => {
+       method => 'GET',
+    },
 };
 
 __PACKAGE__->register_method({
-- 
2.11.0


_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to