[pve-devel] [PATCH qemu-server] Document shutdown behaviour when qemu-guest-agent is running

Emmanuel Kasper e.kasper at proxmox.com
Mon Oct 17 10:52:26 CEST 2016


---
 PVE/API2/Qemu.pm | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm
index ad7a0c0..f64a77c 100644
--- a/PVE/API2/Qemu.pm
+++ b/PVE/API2/Qemu.pm
@@ -1858,8 +1858,10 @@ __PACKAGE__->register_method({
     method => 'POST',
     protected => 1,
     proxyto => 'node',
-    description => "Shutdown virtual machine. This is similar to pressing the power button on a physical machine." .
-	"This will send an ACPI event for the guest OS, which should then proceed to a clean shutdown.",
+    description => "Shutdown virtual machine. The default behaviour is to send an ACPI event for the guest OS, similar " .
+    "to pressing the power button on a physical machine. The guest OS should then proceed to a clean shutdown. " .
+    "If the Qemu GuestAgent is configured and running in the VM, the shutdown will be initiated by the guest OS himself, " .
+    "calling the OS ExWindowsEx() function on Windows guests, or the 'shutdown -P' command on posix guests.",
     permissions => {
 	check => ['perm', '/vms/{vmid}', [ 'VM.PowerMgmt' ]],
     },
-- 
2.1.4





More information about the pve-devel mailing list